-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
71 lines (71 loc) · 1.45 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
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
'use strict';
module.exports = {
env: {
node: true,
browser: false
},
parser: 'babel-eslint',
extends: [
'ash-nazg/sauron-node',
'plugin:node/recommended-script'
],
settings: {
polyfills: [
// Not sure why compat is reporting for non-Node
'Promise',
'Promise.all',
'URL'
]
},
overrides: [
{
files: ['test/**'],
extends: [
'plugin:node/recommended-module'
],
parserOptions: {
sourceType: 'module'
},
env: {
mocha: true,
node: true
},
globals: {
__filename: 'readonly',
__dirname: 'readonly',
expect: 'readonly'
},
rules: {
}
},
{
files: ['**/*.md'],
rules: {
'eol-last': 'off',
'no-console': 'off',
'no-undef': 'off',
'no-unused-vars': 'warn',
'padded-blocks': 'off',
'import/unambiguous': 'off',
'import/no-unresolved': 'off',
'node/no-missing-import': 'off',
'node/no-missing-require': 'off',
'func-names': 'off',
'import/newline-after-import': 'off',
strict: 'off'
}
}
],
globals: {
// By some ESLint bug, config overrides not working with globals
require: 'readonly',
module: 'readonly',
exports: 'writable'
},
rules: {
'node/exports-style': 0,
'import/no-commonjs': 0,
'no-process-exit': 0,
'unicorn/no-process-exit': 2
}
};