-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.eslintrc.js
More file actions
64 lines (64 loc) Β· 1.97 KB
/
.eslintrc.js
File metadata and controls
64 lines (64 loc) Β· 1.97 KB
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
module.exports = {
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'react-hooks'],
extends: [
'airbnb', // or airbnb-base
'plugin:react/recommended',
'plugin:jsx-a11y/recommended', // μ€μΉ νκ²½μ°
'plugin:import/errors', // μ€μΉν κ²½μ°
'plugin:import/warnings', // μ€μΉν κ²½μ°
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': 0,
'func-names': 0,
'object-shorthand': 0,
'no-param-reassign': 0,
'no-shadow': 0,
'no-plusplus': 0,
'no-continue': 0,
'react/no-array-index-key': 0,
'no-nested-ternary': 0,
'no-useless-escape': 0,
'no-unused-expressions': 0,
'jsx-a11y/click-events-have-key-events': 0,
'import/no-unresolved': 0,
'jsx-a11y/no-static-element-interactions': 0,
'jsx-a11y/no-noninteractive-element-interactions': 0,
'jsx-a11y/accessible-emoji': 0,
// νμ₯μ νμ© (JSX not allowed in files with extension '.tsx')
'react/jsx-filename-extension': [2, { extensions: ['.js', '.jsx', '.ts', '.tsx'] }],
// μ μλκΈ° μ μ μ¬μ©λλλ‘ νμ© ('React' was used before it was defined)
'no-use-before-define': 'off',
'@typescript-eslint/no-use-before-define': [0],
// airbnb ESLint ꡬμ±μ λ¬Έμ λ₯Ό ν΄κ²°νκΈ° μν¨
'react/jsx-props-no-spreading': 'off',
'import/extensions': [
'error',
'ignorePackages',
{
js: 'never',
jsx: 'never',
ts: 'never',
tsx: 'never',
},
],
'jsx-a11y/label-has-associated-control': 'off',
'jsx-a11y/label-has-for': 'off',
'react/jsx-boolean-value': 'off',
'no-underscore-dangle': 'off',
'import/no-mutable-exports': 0,
'consistent-return': 'off',
'no-lonely-if': 0,
'import/no-unresolved': 0,
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
ignorePatterns: ['dist/'],
};