-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
35 lines (33 loc) · 1.02 KB
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
module.exports = {
parser: '@typescript-eslint/parser',
overrides: [
{
files: ['*.ts', '*.tsx'],
extends: [
// Use the recommended rules from the @typescript-eslint/eslint-plugin
'plugin:@typescript-eslint/recommended',
],
parserOptions: {
project: [__dirname + '/tsconfig.json'],
},
rules: {
'@typescript-eslint/no-inferrable-types': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/ban-types': 'off',
},
},
{
files: ['*.mjs', '*.js', '*.jsx', '*.es', '*.cjs'],
},
],
plugins: ['@typescript-eslint', 'prettier'],
rules: {
'prettier/prettier': 'error',
'no-console': 'off',
'no-bitwise': 'off',
quotes: ['error', 'single'],
'max-len': ['error', 120],
'arrow-parens': 'off',
indent: ['error', 4],
},
};