-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
56 lines (55 loc) · 1.55 KB
/
.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = {
'env': {
'browser': true,
'commonjs': true,
'es2021': true
},
'extends': [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:wdio/recommended'
],
'overrides': [
{
'env': {
'node': true
},
'files': [
'.eslintrc.{js,cjs}'
],
'parserOptions': {
'sourceType': 'script'
}
}
],
'parser': '@typescript-eslint/parser',
'parserOptions': {
'ecmaVersion': 'latest'
},
'plugins': [
'wdio',
'@typescript-eslint'
],
'rules': {
'semi': ['error', 'always'],
'indent': [2, 4],
'no-multiple-empty-lines': [2, { 'max': 1, 'maxEOF': 1 }],
'array-bracket-spacing': ['error', 'never'],
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'camelcase': ['error', { properties: 'never' }],
'comma-spacing': ['error', { before: false, after: true }],
'no-lonely-if': 'error',
'no-else-return': 'error',
'no-tabs': 'error',
'no-trailing-spaces': ['error', {
'skipBlankLines': false,
'ignoreComments': false,
}],
'quotes': ['error', 'single', { avoidEscape: true }],
'unicode-bom': ['error', 'never'],
'object-curly-spacing': ['error', 'always'],
'keyword-spacing': ['error'],
'require-atomic-updates': 0,
'no-unexpected-multiline': 0,
},
};