-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
.eslintrc.js
40 lines (38 loc) · 867 Bytes
/
.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 = {
root: true,
extends: ['eslint:recommended', 'plugin:node/recommended', 'prettier'],
plugins: ['prettier', 'node'],
parserOptions: {
ecmaVersion: 2017,
},
env: {
node: true,
},
rules: {
'prettier/prettier': ['error', { singleQuote: true, trailingComma: 'es5' }],
},
overrides: [
{
files: ['scripts/*.js'],
rules: {
'no-console': 'off',
},
},
{
files: ['tests/*.test.js'],
plugins: ['jest'],
extends: ['plugin:jest/recommended'],
env: {
jest: true,
},
},
{
files: ['scripts/**/*.js', 'tests/**/*.js'],
rules: {
// prevent fallback to node 4 only support, this package only distributes *.json
// node version isn't super important...
'node/no-unsupported-features': 'off',
},
},
],
};