forked from colinhacks/zod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
48 lines (48 loc) · 1.82 KB
/
.eslintrc.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
40
41
42
43
44
45
46
47
48
module.exports = {
env: { browser: true, node: true },
root: true,
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint",
// "simple-import-sort",
"import",
// 'prettier' commented as we don't want to run prettier through eslint because of performance degradation
],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier/@typescript-eslint", // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier
"plugin:import/errors",
"plugin:import/warnings",
],
rules: {
/**
* eslint-plugin-import @see https://github.com/benmosher/eslint-plugin-import
*/
// "import/order": "warn", // turn off in favor of eslint-plugin-simple-import-sort
"import/no-unresolved": "off",
"import/no-duplicates": "error",
/**
* eslint-plugin-simple-import-sort @see https://github.com/lydell/eslint-plugin-simple-import-sort
*/
"sort-imports": "off", // we use eslint-plugin-import instead
// "simple-import-sort/imports": "warn",
// "simple-import-sort/exports": "warn",
/**
* @typescript-eslint/eslint-plugin @see https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin
*/
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-unused-vars": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
/**
* ESLint core rules @see https://eslint.org/docs/rules/
*/
"no-case-declarations": "off",
"no-empty": "off",
},
};