-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
44 lines (42 loc) · 865 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
39
40
41
42
43
44
'use strict';
const extendData = [
'eslint:recommended',
'plugin:n/recommended',
'plugin:json/recommended-with-comments-legacy',
];
const internalExtends = [
'./rules/best-practices',
'./rules/errors',
'./rules/variables',
'./rules/es6',
'./rules/suggestions',
'./rules/old-and-deprecated',
'./rules/plugin-import-newlines',
'./rules/plugin-import',
'./rules/plugin-node',
'./rules/plugin-stylistic',
'./rules/plugin-unicorn',
].map(require.resolve); // eslint-disable-line unicorn/no-array-callback-reference
module.exports = {
extends: [...extendData, ...internalExtends],
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'script',
},
rules: {
strict: ['error', 'global'],
},
plugins: [
'@stylistic',
'json',
'n',
'unicorn',
'import',
'import-newlines',
],
env: {
browser: true,
node: true,
es2020: true,
},
};