-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
40 lines (35 loc) · 1.01 KB
/
.eslintrc.js
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
module.exports = {
extends: [
'eslint:recommended',
// @see https://github.com/getify/eslint-plugin-proper-ternary
"plugin:@getify/proper-ternary/getify-says",
],
overrides: [
{
files: ['*.js'],
// NOTE(dabrady) Jest takes advantage of some ES6 syntax which I usually avoid in order to provide some nice,
// concise test semantics, so I'm excluding them from certain rule enforcement.
excludedFiles: 'tests/**/*.js',
extends: [
// @see https://github.com/getify/eslint-plugin-proper-arrows
"plugin:@getify/proper-arrows/getify-says"
]
}
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
},
env: {
browser: true,
node: true,
es6: true
,
},
rules: {
// NOTE(dabrady) Double-equals has its place: triple-equals should not be the only comparator.
eqeqeq: 'off',
// NOTE(dabrady) Fallthrough is one of the main reasons to _use_ `switch` statements. Let it be.
noFallthrough: 'off',
}
};