-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.cjs
42 lines (42 loc) · 1022 Bytes
/
.eslintrc.cjs
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
module.exports = {
env: {
browser: true,
es2021: true,
node: true,
},
extends: 'eslint:recommended',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
rules: {
'no-unsafe-optional-chaining': 0,
'no-use-before-define': 2,
'no-async-promise-executor': 0,
'no-mixed-spaces-and-tabs': 2,
'no-dupe-keys': 1,
'no-global-assign': 0,
camelcase: 2,
curly: 2,
'no-whitespace-before-property': 2,
quotes: [2, 'single'],
'padding-line-between-statements': [
2,
{
blankLine: 'always',
prev: ['const', 'let', 'var'],
next: '*',
},
{
blankLine: 'any',
prev: ['const', 'let', 'var'],
next: ['const', 'let', 'var'],
},
{ blankLine: 'always', prev: ['if', 'for', 'function', 'block'], next: '*' },
{ blankLine: 'always', next: ['if', 'for', 'function', 'block'], prev: '*' },
{ blankLine: 'always', next: '*', prev: ['import'] },
{ blankLine: 'any', prev: ['import'], next: ['import'] },
],
},
ignorePatterns: ['.eslintrc.cjs'],
};