-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
38 lines (37 loc) · 899 Bytes
/
index.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
/**
* Copyright Dealicious, Inc.
*
* Use of this source code is governed under the Apache License, Version 2.0
* found at http://www.apache.org/licenses/LICENSE-2.0.
*/
module.exports = {
extends: [
'./rules/possible-errors',
'./rules/best-practices',
'./rules/strict-mode',
'./rules/variables',
'./rules/stylistic-issues',
'./rules/es6',
'./plugins/node/possible-errors',
'./plugins/node/best-practices',
'./plugins/node/stylistic-issues'
].map(require.resolve),
parser: 'babel-eslint',
env: {
browser: true,
es2020: true,
node: true
},
parserOptions: {
sourceType: 'module',
ecmaFeatures: {
// allow `return` statements in the global scope
globalReturn: false,
// enable global strict mode
impliedStrict: true,
// enable JSX
jsx: true
}
},
reportUnusedDisableDirectives: true
};