-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
42 lines (40 loc) · 1.05 KB
/
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
39
40
41
42
/**
* Copyright Zendesk, 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.
*/
import babelParser from '@babel/eslint-parser';
import eslintLayoutFormatting from './rules/layout-formatting.js';
import eslintPossibleProblems from './rules/possible-problems.js';
import eslintSuggestions from './rules/suggestions.js';
import globals from 'globals';
import nodePlugin from './plugins/node.js';
export default [
eslintLayoutFormatting,
eslintPossibleProblems,
eslintSuggestions,
nodePlugin,
{
languageOptions: {
globals: {
...globals.browser,
...globals.es2020
},
parser: babelParser,
parserOptions: {
ecmaFeatures: {
// allow `return` statements in the global scope
globalReturn: false,
// enable global strict mode
impliedStrict: true,
// enable JSX
jsx: true
}
}
},
linterOptions: {
reportUnusedDisableDirectives: true
}
}
];