2020-02-17 23:42:25 +01:00
|
|
|
module.exports = {
|
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
|
|
|
},
|
2022-05-11 18:19:45 +01:00
|
|
|
extends: ["prettier"],
|
2020-02-17 23:42:25 +01:00
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
2022-02-06 06:52:51 +08:00
|
|
|
project: "tsconfig.eslint.json",
|
|
|
|
tsconfigRootDir: __dirname,
|
2020-02-17 23:42:25 +01:00
|
|
|
sourceType: "module",
|
|
|
|
},
|
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
rules: {
|
2020-02-21 11:22:45 +01:00
|
|
|
camelcase: ["error"],
|
2020-02-21 15:59:46 +01:00
|
|
|
eqeqeq: ["error", "always", { null: "ignore" }],
|
2022-05-17 18:31:51 +01:00
|
|
|
curly: ["error", "multi-line"],
|
2021-02-07 21:27:21 +03:30
|
|
|
"no-console": ["error", { allow: ["warn", "error"] }],
|
2020-02-21 15:59:46 +01:00
|
|
|
"prefer-const": "error",
|
2020-02-17 23:42:25 +01:00
|
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
multiline: {
|
|
|
|
delimiter: "semi",
|
|
|
|
requireLast: true,
|
|
|
|
},
|
|
|
|
singleline: {
|
|
|
|
delimiter: "semi",
|
|
|
|
requireLast: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-24 21:23:48 +02:00
|
|
|
],
|
2021-02-07 21:18:15 +03:30
|
|
|
"@typescript-eslint/semi": ["error", "always"],
|
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
2020-02-17 23:42:25 +01:00
|
|
|
},
|
|
|
|
};
|