rust/editors/code/.eslintrc.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
1.1 KiB
JavaScript
Raw Normal View History

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