-
Notifications
You must be signed in to change notification settings - Fork 38
/
.eslintrc.cjs
41 lines (41 loc) · 991 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
module.exports = {
parser: '@babel/eslint-parser', // For supporting "import assert" syntax (see: https://github.com/eslint/eslint/discussions/15305)
parserOptions: {
requireConfigFile: false,
babelOptions: {
plugins: [
'@babel/plugin-syntax-import-assertions'
],
},
},
env: {
node: true, // Enable Node.js global variables
browser: true
},
rules: {
'linebreak-style': [
'error',
'unix'
],
'curly': [ 'error', 'all' ],
'quotes': [
'error',
'single',
{ 'allowTemplateLiterals': true }
],
'semi': [ 'error', 'always' ],
'no-trailing-spaces': [ 'error' ],
'no-unused-vars': [
'error',
{
'vars': 'all',
'args': 'after-used',
'ignoreRestSiblings': true,
'argsIgnorePattern': '^_',
'varsIgnorePattern': '^_'
}
],
'array-bracket-spacing': [ 'error', 'always' ],
'object-curly-spacing': [ 'error', 'always' ]
}
};