forked from xpring-eng/eslint-config-base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
35 lines (32 loc) · 1006 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
module.exports = {
parserOptions: {
sourceType: 'module', // Allow the use of imports / ES modules
ecmaFeatures: {
impliedStrict: true, // Enable global strict mode
},
},
// Specify global variables that are predefined
env: {
node: true, // Enable node global variables & Node.js scoping
es2020: true, // Add all ECMAScript 2020 globals and automatically set the ecmaVersion parser option to ES2020
},
extends: [
// TODO: Can the eslint directory just export a index.js?
'./rules/eslint-core/errors',
'./rules/eslint-core/best-practices',
'./rules/eslint-core/strict',
'./rules/eslint-core/variables',
'./rules/eslint-core/style',
'./rules/eslint-core/es6',
'./rules/eslint-comments',
'./rules/@typescript-eslint',
'./rules/jsdoc',
'./rules/tsdoc',
'./rules/node',
'./rules/import',
'./rules/array-func',
'./rules/prettier',
].map(require.resolve),
rules: {},
reportUnusedDisableDirectives: true,
}