-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy path.eslintrc.js
More file actions
32 lines (32 loc) · 801 Bytes
/
.eslintrc.js
File metadata and controls
32 lines (32 loc) · 801 Bytes
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
module.exports = {
env: {
commonjs: true,
es2020: true,
node: true,
jest: true
},
extends: [
'eslint:recommended'
],
parserOptions: {
ecmaVersion: 11,
sourceType: 'module'
},
ignorePatterns: [
'dist/*',
'*fixture*',
'*custom*'
],
rules: {
'comma-dangle': ['error', 'never'],
'eol-last': ['error', 'never'],
'indent': ['error', 4],
'keyword-spacing': ['error', { before: true }],
'no-path-concat': ['off'],
'no-undef': ['off'],
'no-unused-vars': ['off'],
'object-curly-spacing': ['error', 'always'],
'quotes': ['error', 'single', 'avoid-escape'],
'space-before-function-paren': ['error', 'always']
}
};