forked from earthfast/earthfast-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
32 lines (32 loc) · 910 Bytes
/
.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
module.exports = {
env: {
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:import/recommended",
"plugin:node/recommended",
],
plugins: ["@typescript-eslint"],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
settings: {
node: {
// Configuration for node/no-missing-import rule
tryExtensions: [".js", ".json", ".ts", ".d.ts"],
},
},
rules: {
"import/order": ["error", { alphabetize: { order: "asc", caseInsensitive: true } }],
// Disabled to avoid duplicate diagnostics with node/no-missing-import rule
"import/no-unresolved": "off",
// Disabled because typescript adds support for much of this syntax to node
"node/no-unsupported-features/es-syntax": "off",
},
};