-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
69 lines (68 loc) · 1.64 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
/* eslint "sort-keys-fix/sort-keys-fix": "error" */
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
'eslint:recommended',
'airbnb',
'plugin:@typescript-eslint/eslint-recommended',
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: 6,
sourceType: 'module',
},
plugins: [
'@typescript-eslint',
'react',
'sort-keys-fix',
],
root: true,
rules: {
'@typescript-eslint/no-unused-vars': ['error', {
args: 'none',
ignoreRestSiblings: false,
vars: 'all',
}],
'comma-dangle': ['error', 'always-multiline'],
'eol-last': ['error', 'always'],
'import/extensions': ['error', 'never'],
'import/no-default-export': 'error',
'import/prefer-default-export': 'off',
'indent': ['error', 2],
'jsx-a11y/label-has-associated-control': ['error', {
required: {
some: ['nesting', 'id'],
},
}],
'linebreak-style': ['error', 'unix'],
'no-multiple-empty-lines': ['error', {
max: 2,
maxBOF: 0,
maxEOF: 1,
}],
'no-trailing-spaces': ['error'],
'no-unused-vars': 'off',
'quote-props': ['error', 'consistent-as-needed'],
'quotes': ['error', 'single'],
'react/jsx-filename-extension': ['error', { extensions: ['.tsx'] }],
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/prop-types': 'off',
'semi': ['error', 'always'],
'unicode-bom': ['error', 'never'],
},
settings: {
'import/resolver': {
node: {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
};