2020-02-17 16:42:25 -06:00
|
|
|
module.exports = {
|
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
2022-02-05 16:52:51 -06:00
|
|
|
"project": "tsconfig.eslint.json",
|
|
|
|
"tsconfigRootDir": __dirname,
|
2020-02-17 16:42:25 -06:00
|
|
|
"sourceType": "module"
|
|
|
|
},
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint"
|
|
|
|
],
|
|
|
|
"rules": {
|
2020-02-21 04:22:45 -06:00
|
|
|
"camelcase": ["error"],
|
2020-02-21 08:59:46 -06:00
|
|
|
"eqeqeq": ["error", "always", { "null": "ignore" }],
|
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",
|
|
|
|
{
|
|
|
|
"multiline": {
|
|
|
|
"delimiter": "semi",
|
|
|
|
"requireLast": true
|
|
|
|
},
|
|
|
|
"singleline": {
|
|
|
|
"delimiter": "semi",
|
|
|
|
"requireLast": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"@typescript-eslint/semi": [
|
|
|
|
"error",
|
|
|
|
"always"
|
2020-02-24 13:23:48 -06:00
|
|
|
],
|
2021-02-07 11:48:15 -06:00
|
|
|
"@typescript-eslint/no-unnecessary-type-assertion": "error",
|
|
|
|
"@typescript-eslint/no-floating-promises": "error"
|
2020-02-17 16:42:25 -06:00
|
|
|
}
|
|
|
|
};
|