-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
35 lines (33 loc) · 951 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
31
32
33
34
35
module.exports = {
env: {
browser: true,
node: true,
es2020: true,
jest: true
},
extends: [
'eslint:recommended'
],
rules: {
// Possible Errors
'no-console': 'off',
'no-empty': ['error', { 'allowEmptyCatch': true }],
// Stylistic Issues
'semi': ['warn'],
'indent': ['warn', 2, { 'SwitchCase': 1, 'ignoredNodes': ['TemplateLiteral'] }],
'quotes': ['warn', 'single', { 'allowTemplateLiterals': true }],
'brace-style': ['warn'],
'no-multiple-empty-lines': ['warn', { 'max': 1 }],
'no-trailing-spaces': ['warn'],
'no-unneeded-ternary': ['warn'],
'comma-spacing': ['warn'],
'comma-style': ['warn'],
'comma-dangle': ['warn'],
'eol-last': ['warn'],
'jsx-quotes': ['warn', 'prefer-double'],
// Best Practices
'eqeqeq': ['error', 'always', { 'null': 'ignore' }],
'no-multi-spaces': ['warn', { 'ignoreEOLComments': true }],
'curly': ['warn']
}
};