-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.cjs
47 lines (46 loc) · 1.22 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
const unused_vars_config = {
argsIgnorePattern: '^_[a-z]?',
varsIgnorePattern: '^_[a-z]?',
};
module.exports = {
env: {
//'commonjs': true,
browser: true,
es2021: true,
node: true,
},
parserOptions: {
sourceType: 'module',
},
extends: [
'eslint:recommended',
'plugin:svelte/recommended',
],
plugins: [
],
// NOTE: please keep these alphabetical!! (ignoring leading special chars)
rules: {
'indent': ['error', 4, { SwitchCase: 1, ignoreComments: true }],
'linebreak-style': ['error', 'unix'],
'no-console': ['warn'],
'no-inner-declarations': ['off'],
'no-unused-vars': ['warn', unused_vars_config],
'prefer-const': ['off'],
'quotes': ['off'],
'semi': ['error', 'always'],
},
overrides: [
{
files: 'test/**/*.test.js',
globals: {
'afterAll': 'readonly',
'afterEach': 'readonly',
'beforeAll': 'readonly',
'beforeEach': 'readonly',
'describe': 'readonly',
'expect': 'readonly',
'it': 'readonly',
},
},
],
};