-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
53 lines (45 loc) · 1.13 KB
/
Copy patheslint.config.js
File metadata and controls
53 lines (45 loc) · 1.13 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
import importPlugin from 'eslint-plugin-import';
export default [{
files: ['**/*.js'],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: {'import': importPlugin},
rules: {
'block-spacing': ['error', 'never'],
'consistent-return': 'off',
'import/no-unresolved': 'off',
'import/prefer-default-export': 'off',
'keyword-spacing': [
'error',
{
after: false,
overrides: {
case: { after: true },
const: { after: true },
do: { after: true },
else: { after: true },
from: { after: true },
import: { after: true },
return: { after: true },
try: { after: true },
}
}
],
'no-continue': 'off',
'no-plusplus': 'off',
'no-shadow': 'off',
'no-unused-vars': [
'error',
{
argsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
},
],
'no-use-before-define': ['error', { functions: false }],
'no-param-reassign': 'off',
'object-curly-spacing': ['error', 'never'],
'space-infix-ops': 'off',
},
}];