-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_eslint.config.js
59 lines (58 loc) · 1.79 KB
/
_eslint.config.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
47
48
49
50
51
52
53
54
55
56
57
58
59
const jsdoc = require("eslint-plugin-jsdoc");
const pluginImport = require("eslint-plugin-import");
const typescript = require("@typescript-eslint/eslint-plugin");
const prettier = require("eslint-plugin-prettier");
const deprecation = require("eslint-plugin-deprecation");
const parser = require("@typescript-eslint/parser");
module.exports = [{
files: [
"src/**/*.ts",
"!src/**/*.d.ts",
],
ignores: [
"**/three/",
"*.js",
"*.d.ts",
],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
browser: true,
es6: true,
node: true
},
parser,
parserOptions: {
project: "tsconfig/tsconfig.lint.json",
sourceType: "module",
tsconfigRootDir: __dirname,
},
},
plugins: {
"@typescript-eslint": typescript,
"import": pluginImport,
jsdoc,
prettier,
},
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-empty-interface": "off",
"import/no-cycle": ["error", { "maxDepth": 15 }],
"import/no-unresolved": "off",
"prettier/prettier": ["error"],
"jsdoc/check-tag-names": ["error", { "definedTags": ["category"] }],
},
// extends: [
// "eslint:recommended",
// "plugin:@typescript-eslint/eslint-recommended",
// "plugin:@typescript-eslint/recommended",
// "plugin:eslint-plugin-jsdoc/recommended",
// "plugin:eslint-plugin-import/recommended",
// "plugin:import/typescript",
// "prettier",
// "plugin:compat/recommended"
// ]
}];