-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
40 lines (40 loc) · 1.38 KB
/
Copy patheslint.config.js
File metadata and controls
40 lines (40 loc) · 1.38 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
export default [
{
rules: {
'array-bracket-spacing': ['warn', 'never'],
'brace-style': ['warn', '1tbs', { allowSingleLine: true }],
'comma-spacing': 'warn',
'comma-style': ['warn', 'first'],
'computed-property-spacing': ['warn', 'never'],
'constructor-super': 'error',
'function-call-argument-newline': ['warn', 'consistent'],
indent: ['warn', 2],
'jsx-quotes': ['warn', 'prefer-double'],
'key-spacing': ['warn', { beforeColon: false, afterColon: true }],
'max-len': ['warn', { ignoreTrailingComments: true }],
'newline-before-return': 'warn',
'newline-per-chained-call': 'warn',
'no-console': 'warn',
'no-const-assign': 'error',
'no-else-return': 'warn',
'no-empty': 'warn',
'no-eq-null': 'warn',
'no-mixed-spaces-and-tabs': 'warn',
'no-multiple-empty-lines': 'warn',
'no-tabs': 'warn',
'no-trailing-spaces': 'warn',
'no-unneeded-ternary': 'warn',
'no-useless-return': 'warn',
'no-warning-comments': 'warn',
'prefer-destructuring': 'warn',
quotes: ['warn', 'single', { avoidEscape: true }],
'rest-spread-spacing': ['warn', 'never'],
'semi-spacing': ['warn', { before: false, after: false }],
'semi-style': ['warn', 'last'],
},
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
]