forked from prettier/prettier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.yml
88 lines (88 loc) · 1.71 KB
/
.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
root: true
env:
es6: true
node: true
extends:
- eslint:recommended
- plugin:prettier/recommended
parserOptions:
ecmaVersion: 2018
plugins:
- import
- unicorn
rules:
curly: error
dot-notation: error
eqeqeq:
- error
- always
- null: ignore
import/no-extraneous-dependencies:
- error
- devDependencies: ["tests*/**", "scripts/**"]
no-else-return: error
no-inner-declarations: error
no-unneeded-ternary: error
no-useless-return: error
no-unused-vars:
- error
- ignoreRestSiblings: true
no-var: error
object-shorthand: error
one-var:
- error
- never
prefer-arrow-callback: error
prefer-const: error
prefer-destructuring:
- error
- VariableDeclarator:
array: false
object: true
AssignmentExpression:
array: false
object: false
- enforceForRenamedProperties: false
prefer-object-spread: error
prefer-rest-params: error
prefer-spread: error
quotes:
- error
- double
- avoidEscape: true
strict: error
symbol-description: error
yoda:
- error
- never
- exceptRange: true
unicorn/better-regex: error
unicorn/new-for-builtins: error
unicorn/prefer-includes: error
unicorn/prefer-string-slice: error
overrides:
- files:
- scripts/**/*.js
rules:
no-console: off
- files:
- scripts/build/shims/*.js
parserOptions:
sourceType: module
- files:
- "{tests,tests_config,tests_integration}/**/*.js"
env:
jest: true
- files:
- tests/**/*.js
rules:
strict: off
globals:
run_spec: false
- files:
- src/cli/**/*.js
rules:
no-restricted-modules:
- error
- patterns:
- ".."