-
Notifications
You must be signed in to change notification settings - Fork 0
/
eslint.config.mjs
51 lines (50 loc) · 1.68 KB
/
eslint.config.mjs
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
import pluginCypress from 'eslint-plugin-cypress/flat'
export default [
{
plugins: {
cypress: pluginCypress
},
rules: {
'indent': ['error', 2],
'semi': ['error', 'never'],
'quotes': ['error', 'single',
{ avoidEscape: true, allowTemplateLiterals: false }],
'no-unused-vars': ['error', {
args: 'none',
caughtErrors: 'none',
ignoreRestSiblings: true,
vars: 'all'
}],
'keyword-spacing': ['error', { before: true, after: true }],
'eqeqeq': ['error', 'always', { null: 'ignore' }],
'space-infix-ops': 'error',
'comma-spacing': ['error', { before: false, after: true }],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'curly': ['error', 'multi-line'],
'no-multiple-empty-lines': ['error'],
'operator-linebreak': ['error', 'after',
{overrides: { '?': 'before', ':': 'before', '|>': 'before' } }],
'one-var': ['error', { initialized: 'never' }],
'no-cond-assign': 'error',
'block-spacing': ['error', 'always'],
'comma-dangle': ['error', {
arrays: 'never',
objects: 'never',
imports: 'never',
exports: 'never',
functions: 'never'
}],
'comma-style': ['error', 'last'],
'dot-location': ['error', 'property'],
'eol-last': 'error',
'func-call-spacing': ['error', 'never'],
'key-spacing': ['error', { beforeColon: false, afterColon: true }],
'new-cap': ['error',
{ newIsCap: true, capIsNew: false, properties: true }],
'new-parens': 'error',
'max-len': ['error',
{ code: 100, ignoreComments: true, ignoreUrls: true }
]
}
}
]