-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.js
46 lines (45 loc) · 1001 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
const rulesDirPlugin = require("eslint-plugin-rulesdir");
rulesDirPlugin.RULES_DIR = "lib/rules";
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 2021,
sourceType: "module",
ecmaFeatures: {
jsx: true,
}
},
globals: {
"TCO": "writable",
},
extends: [
"eslint:recommended",
"plugin:eslint-plugin/recommended",
"plugin:node/recommended",
"plugin:import/typescript"
],
env: {
browser: true,
node: true,
},
plugins: ["rulesdir", "import"],
rules: {
"rulesdir/order": 2,
"import/no-unresolved": "off",
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": [
"error",
{ ignores: ["modules"] },
],
},
ignorePatterns: ["playground/**/*", "src/types/**/*", "src/rules/*.test.*"],
settings: {
'import/resolver': {
node: {
paths: ["src"],
extensions: ['.js', '.jsx', '.ts', '.tsx']
}
}
}
};