-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.eslintrc.js
33 lines (33 loc) · 943 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
module.exports = {
// Fix typescript error by install @typescript-eslint/parser & @typescript-eslint/eslint-plugin and set extends plugin
extends: [
"plugin:prettier/recommended",
"plugin:@typescript-eslint/recommended"
],
plugins: ["prettier"],
parserOptions: {
ecmaVersion: 2020,
sourceType: "module",
ecmaFeatures: {
experimentalObjectRestSpread: true
}
},
rules: {
curly: "off",
eqeqeq: "warn",
"no-throw-literal": "warn",
semi: "off",
"@typescript-eslint/naming-convention": "off",
"no-console": "off",
"@typescript-eslint/no-explicit-any": 0,
"@typescript-eslint/semi": 0,
"prefer-const": "off",
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/no-unused-vars": 0,
"@typescript-eslint/ban-ts-comment": 0
},
env: {
es6: true
},
ignorePatterns: ["out", "dist", "**/*.d.ts", "prettier.config.js", "dir.js"]
}