forked from betagouv/secretariat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yml
47 lines (42 loc) · 889 Bytes
/
.eslintrc.yml
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
env:
browser: true
commonjs: true
es2021: true
node: true
mocha: true
extends:
- eslint:recommended
- plugin:node/recommended
- airbnb-base
parserOptions:
ecmaVersion: 12
rules:
no-underscore-dangle: "off"
no-unused-vars: "off"
no-inner-declarations: "off"
no-console: "off"
camelcase: "warn"
no-param-reassign: ["error", { "props": false }]
func-names: "off"
max-len: ["warn", 140, 2, {
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}]
no-restricted-syntax: "warn"
guard-for-in: "warn"
eqeqeq: "warn"
indent:
- "error"
- 2
- MemberExpression: "off"
node/no-unpublished-require: "off"
ignorePatterns:
- "static/**/*.js"
overrides:
- files:
- "tests/*.js"
rules:
no-unused-expressions: "off"