-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.old.js
39 lines (38 loc) · 1.1 KB
/
.eslintrc.old.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
27
28
29
30
31
32
33
34
35
36
37
38
39
const eslintPluginPrettierRecommended = require("eslint-plugin-prettier/recommended");
const js = require("@eslint/js");
module.exports = {
...js.configs.recommended,
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
tsconfigRootDir: __dirname,
sourceType: "module",
ecmaVersion: "latest",
},
plugins: ["@typescript-eslint/eslint-plugin", "simple-import-sort", "import"],
extends: [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:security/recommended-legacy",
"airbnb",
],
root: true,
env: {
node: true,
jest: true,
es2021: true,
},
ignorePatterns: [".eslintrc.js"],
rules: {
"no-console": "warn",
"no-unused-vars": "error",
"no-undef": "error",
"no-empty-function": "warn",
"no-unused-expressions": "error",
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
},
eslintPluginPrettierRecommended,
};