forked from eemeli/yaml
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.yaml
41 lines (38 loc) · 809 Bytes
/
.eslintrc.yaml
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
root: true
parser: babel-eslint
env:
node: true
extends:
- eslint:recommended
- plugin:prettier/recommended
rules:
array-callback-return: error
camelcase: error
consistent-return: error
eqeqeq: [error, always, 'null': ignore]
no-constant-condition: [error, checkLoops: false]
no-control-regex: 0
no-implicit-globals: error
no-template-curly-in-string: warn
no-unused-labels: 0
no-var: error
prefer-const: [warn, destructuring: all]
prettier/prettier: error
overrides:
- files: src/**/*.js
env:
es6: true
node: false
- files: playground/src/**/*.js
env:
browser: true
es6: true
node: false
- files:
- tests/**/*.js
- playground/browser-test/**/*.js
env:
es6: true
jest: true
rules:
camelcase: 0