forked from webpack/webpack-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
46 lines (46 loc) · 1.08 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
module.exports = {
root: true,
reportUnusedDisableDirectives: true,
extends: ["eslint:recommended", "plugin:node/recommended", "prettier"],
parserOptions: { ecmaVersion: 2018, sourceType: "script" },
plugins: ["node"],
settings: {
node: {
allowModules: ["@webpack-cli/generators"],
},
},
env: {
node: true,
es6: true,
jest: true,
},
rules: {
"no-process-exit": "off",
"no-template-curly-in-string": "error",
"no-caller": "error",
"no-extra-bind": "error",
"no-loop-func": "error",
"no-undef": "error",
"prefer-const": "error",
},
overrides: [
{
settings: {
node: {
tryExtensions: [".ts", ".tsx", ".js", ".jsx", ".json"],
},
},
files: ["**/*.ts"],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"node/no-unsupported-features/es-syntax": "off",
},
},
],
};