-
Notifications
You must be signed in to change notification settings - Fork 6
/
.eslintrc.cjs
48 lines (48 loc) · 984 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
42
43
44
45
46
47
48
module.exports = {
plugins: ['html'],
extends: [
'eslint:recommended',
'prettier',
'eslint-config-prettier',
'plugin:import/recommended',
],
parserOptions: {
ecmaVersion: 2020,
},
env: {
es6: true,
node: true,
browser: true,
},
ignorePatterns: ['**/node_modules/**'],
rules: {
quotes: ['error', 'single', { avoidEscape: true, allowTemplateLiterals: true }],
'no-var': 'error',
indent: ['error', 2, { SwitchCase: 1 }],
'no-multi-spaces': 'error',
'space-in-parens': 'error',
'no-multiple-empty-lines': 'error',
'prefer-const': 'error',
},
overrides: [
{
files: ['**/*.html'],
rules: {
'no-unused-vars': ['off'],
'max-lines-per-function': ['off'],
},
},
{
files: ['**/*-otp.html'],
rules: {
'no-undef': ['off'],
},
},
{
files: ['**/*-otp.js'],
rules: {
'no-unused-vars': ['off'],
},
},
],
};