-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
91 lines (91 loc) · 2.58 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = {
extends: [
'airbnb-typescript',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'prettier',
'prettier/react',
'prettier/@typescript-eslint',
'plugin:prettier/recommended'
],
plugins: ['react', '@typescript-eslint'],
env: {
browser: true,
es6: true,
},
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
modules: true,
legacyDecorators: true,
},
ecmaVersion: 8,
sourceType: 'module',
project: './tsconfig.json',
},
rules: {
'linebreak-style': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-use-before-define': ['error'],
'@typescript-eslint/no-loop-func': 'off',
'@typescript-eslint/no-redeclare': 'off',
'@typescript-eslint/no-shadow': 'off',
'no-use-before-define': 'off',
'no-case-declarations': 'off',
'global-require': 'off',
'no-empty': 0,
'no-unused-vars': 'off',
'no-console': 'off',
'func-names': 'off',
'no-restricted-syntax': 0,
'no-await-in-loop': 0,
'no-param-reassign': 0,
'no-confusing-arrow': 0,
'no-nested-ternary': 0,
'camelcase': 0,
'arrow-parens': ['error', 'as-needed'],
'import/extensions': 0,
'import/prefer-default-export': 0,
'import/no-unresolved': 0,
'react/jsx-filename-extension': 0,
'react/require-default-props': 0,
'react/sort-comp': 0,
'react/prop-types': 0,
'react/jsx-props-no-spreading': 'off',
'react/jsx-closing-bracket-location': 0,
'react/forbid-prop-types': 0,
'react/destructuring-assignment': 0,
'react/no-access-state-in-setstate': 0,
'react/jsx-one-expression-per-line': 0,
'react/jsx-wrap-multilines': 0,
'react/jsx-indent': 0,
'jsx-a11y/anchor-is-valid': 0,
'jsx-a11y/click-events-have-key-events': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
'prettier/prettier': [
'error',
{
'printWidth': 120,
'semi': true,
'useTabs': false,
'singleQuote': true,
'trailingComma': 'es5',
'bracketSpacing': true,
'jsxBracketSameLine': true,
'arrowParens': 'avoid',
}
],
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn'
},
};