-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
26 lines (26 loc) · 871 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require("path");
module.exports = {
env: {
jest: true,
node: true,
},
extends: ["plugin:@typescript-eslint/recommended", "prettier"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: path.resolve(__dirname, "tsconfig.eslint.json"),
sourceType: "module",
},
plugins: ["@typescript-eslint", "sort-keys-fix"],
rules: {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-useless-constructor": "error",
"lines-between-class-members": ["error", "always"],
"no-unused-vars": "off",
"no-useless-constructor": "off",
"sort-keys-fix/sort-keys-fix": "error",
},
};