forked from rootCircle/docFiller
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
55 lines (52 loc) · 1.31 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
module.exports = {
env: {
browser: true,
node: true,
es6: true,
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
parserOptions: {
ecmaVersion: 2021,
sourceType: 'module',
},
rules: {
// Possible Errors
'no-console': 'off',
'no-debugger': 'error',
// Best Practices
'consistent-return': 'error',
'no-else-return': 'error',
'no-empty-function': 'error',
'no-eval': 'error',
'no-implied-eval': 'error',
'no-multi-spaces': 'error',
'no-useless-return': 'error',
'array-callback-return': 'error',
'dot-notation': 'error',
eqeqeq: 'error',
'no-extend-native': 'error',
'no-global-assign': 'error',
'no-loop-func': 'error',
'no-new-func': 'error',
'no-control-regex': 'off',
'no-case-declarations': 'off',
// Variables
'no-unused-vars': 'warn',
'no-shadow': 'error',
'no-undef': 'error',
'no-unused-expressions': 'error',
// Stylistic Issues
// 'indent': ['error', 'tab'],
// 'quotes': ['error', 'single'],
semi: ['error', 'always'],
'comma-dangle': ['error', 'always-multiline'],
'brace-style': 'error',
'array-bracket-spacing': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
// ES6
'arrow-spacing': 'error',
'arrow-parens': ['error', 'always'],
'arrow-body-style': 'error',
'no-duplicate-imports': 'error',
},
};