2020-02-17 16:42:25 -06:00
|
|
|
module.exports = {
|
2022-05-17 12:15:06 -05:00
|
|
|
env: {
|
|
|
|
es6: true,
|
|
|
|
node: true,
|
2020-02-17 16:42:25 -06:00
|
|
|
},
|
2022-05-17 12:15:06 -05:00
|
|
|
extends: ["prettier"],
|
|
|
|
parser: "@typescript-eslint/parser",
|
|
|
|
parserOptions: {
|
2023-07-11 08:31:07 -05:00
|
|
|
project: true,
|
2022-05-17 12:15:06 -05:00
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
sourceType: "module",
|
2020-02-17 16:42:25 -06:00
|
|
|
},
|
2022-05-17 12:15:06 -05:00
|
|
|
plugins: ["@typescript-eslint"],
|
|
|
|
rules: {
|
|
|
|
camelcase: ["error"],
|
|
|
|
eqeqeq: ["error", "always", { null: "ignore" }],
|
2022-05-17 12:31:51 -05:00
|
|
|
curly: ["error", "multi-line"],
|
2021-02-07 11:57:21 -06:00
|
|
|
"no-console": ["error", { allow: ["warn", "error"] }],
|
2020-02-21 08:59:46 -06:00
|
|
|
"prefer-const": "error",
|
2020-02-17 16:42:25 -06:00
|
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
|
|
"error",
|
|
|
|
{
|
2022-05-17 12:15:06 -05:00
|
|
|
multiline: {
|
|
|
|
delimiter: "semi",
|
|
|
|
requireLast: true,
|
2020-02-17 16:42:25 -06:00
|
|
|
},
|
2022-05-17 12:15:06 -05:00
|
|
|
singleline: {
|
|
|
|
delimiter: "semi",
|
|
|
|
requireLast: false,
|
|
|
|
},
|
|
|
|
},
|
2020-02-24 13:23:48 -06:00
|
|
|
],
|
2022-05-17 12:15:06 -05:00
|
|
|
"@typescript-eslint/semi": ["error", "always"],
|
2021-02-07 11:48:15 -06:00
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
2022-05-17 12:15:06 -05:00
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
2023-07-10 16:10:00 -05:00
|
|
|
|
|
|
|
"@typescript-eslint/consistent-type-imports": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
prefer: "type-imports",
|
|
|
|
fixStyle: "inline-type-imports",
|
|
|
|
},
|
|
|
|
],
|
|
|
|
"@typescript-eslint/no-import-type-side-effects": "error",
|
2022-05-17 12:15:06 -05:00
|
|
|
},
|
2020-02-17 16:42:25 -06:00
|
|
|
};
|