-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
30 lines (29 loc) · 873 Bytes
/
.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
module.exports = {
extends: 'eslint:recommended',
globals: {module: false},
env: {
browser: true,
},
parserOptions: {
ecmaFeatures: {
jsx: true,
},
sourceType: 'module',
},
plugins: ['react'],
rules: {
'react/jsx-uses-vars': ['error'],
'no-unused-vars': ['error', {varsIgnorePattern: '^h$'}],
'max-len': ['error', 120],
'indent': ['error', 4],
'linebreak-style': ['error', 'unix'],
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'never'],
'comma-dangle': ['error', 'always-multiline'],
'no-extra-parens': ['error', 'all'],
'quotes': ['error', 'single'],
'semi': ['error', 'never'],
'quote-props': ['error', 'consistent-as-needed'],
'no-console': [0],
},
}