-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
53 lines (53 loc) · 1.76 KB
/
.eslintrc.js
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
env: {
browser: true,
es2020: true,
},
extends: ['plugin:react/recommended', 'airbnb-typescript', 'prettier'],
parserOptions: {
ecmaVersion: 2020,
sourceType: 'module',
project: './tsconfig.json',
},
plugins: ['prettier', '@typescript-eslint'],
rules: {
indent: 'off',
curly: ['warn', 'multi-line'],
radix: 'off',
'arrow-parens': 'off',
'import/extensions': 'off',
'import/no-unresolved': 'off',
'import/no-cycle': 'off',
'import/no-absolute-path': 'off',
'no-prototype-builtins': 'off',
'prettier/prettier': 'error',
'no-param-reassign': 'off',
'no-underscore-dangle': 'off',
// TODO - Get team preferences on below rules
'nonblock-statement-body-position': ['error', 'beside'],
'no-trailing-spaces': 'off',
'operator-linebreak': 'off',
'no-shadow': 'off',
'@typescript-eslint/no-shadow': 'warn',
'max-len': 'off',
'comma-dangle': 'off',
'no-console': 'off',
'function-paren-newline': 'off',
'implicit-arrow-linebreak': 'off',
'arrow-body-style': 'off',
'one-var': 'off',
'consistent-return': 'off',
'object-curly-newline': 'off',
'no-use-before-define': 'off',
'no-alert': 'off',
'class-methods-use-this': 'off',
'no-fallthrough': 'off',
camelcase: 'off',
'prefer-arrow-callback': ['warn', { allowNamedFunctions: true }],
'@typescript-eslint/naming-convention': 'off',
'import/no-extraneous-dependencies': 'off',
'@typescript-eslint/no-unused-vars': 'off',
},
};