This repository has been archived by the owner on Nov 17, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.eslintrc.js
56 lines (52 loc) · 1.62 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
49
50
51
52
53
54
55
56
const OFF = "off"
const ERROR = "error"
// const WARN = "warn"
/**
* @type {import('@types/eslint').Linter.BaseConfig}
*/
module.exports = {
root: true,
// ignorePatterns: ["./api/**"],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
extends: [
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"@remix-run/eslint-config",
"@remix-run/eslint-config/node",
"@remix-run/eslint-config/jest-testing-library",
"prettier",
],
rules: {
"@typescript-eslint/ban-types": OFF,
"@typescript-eslint/array-type": OFF,
"@typescript-eslint/ban-ts-ignore": OFF,
"@typescript-eslint/consistent-type-imports": OFF,
"@typescript-eslint/explicit-function-return-type": OFF,
"@typescript-eslint/explicit-member-accessibility": OFF,
"@typescript-eslint/explicit-module-boundary-types": OFF,
"@typescript-eslint/no-angle-bracket-type-assertion": OFF,
"@typescript-eslint/no-empty-interface": OFF,
"@typescript-eslint/no-explicit-any": OFF,
"@typescript-eslint/no-unused-vars": [
ERROR,
{ args: "none", argsIgnorePattern: "^_", varsIgnorePattern: "^_" },
],
"@typescript-eslint/no-use-before-define": OFF,
"@typescript-eslint/no-var-requires": OFF,
"@typescript-eslint/prefer-interface": OFF,
"jsx-a11y/anchor-is-valid": OFF,
"no-extend-native": OFF,
"prefer-const": OFF,
"react-hooks/exhaustive-deps": OFF,
"react/display-name": OFF,
"react/no-unescaped-entities": OFF,
"react/prop-types": OFF,
},
settings: {
react: {
version: "detect",
},
},
}