Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

.eslintrc

56 lines1.6 KB

1{
2 "root": true,
3 "parser": "@typescript-eslint/parser",
4 "plugins": ["@typescript-eslint", "import"],
5 "extends": [
6 "plugin:@typescript-eslint/eslint-recommended",
7 "plugin:@typescript-eslint/recommended",
8 "plugin:import/typescript",
9 "react-app",
10 "prettier"
11 ],
12 "env": {
13 "es6": true
14 },
15 "parserOptions": {
16 "project": "./tsconfig.base.json",
17 "sourceType": "module"
18 },
19 "settings": {
20 "import/parsers": {
21 "@typescript-eslint/parser": [".ts", ".tsx"]
22 },
23 "import/resolver": {
24 "node": true,
25 "typescript": {
26 "project": "packages/*/tsconfig.json"
27 }
28 },
29 "react": {
30 "version": "detect"
31 }
32 },
33 "rules": {
34 "react/jsx-key": ["error", { "checkFragmentShorthand": true }],
35 "@typescript-eslint/ban-types": "off",
36 "@typescript-eslint/ban-ts-comment": "off",
37 "@typescript-eslint/consistent-type-imports": "error",
38 "@typescript-eslint/explicit-module-boundary-types": "off",
39 "@typescript-eslint/no-empty-interface": "off",
40 "@typescript-eslint/no-explicit-any": "off",
41 "@typescript-eslint/no-non-null-assertion": "off",
42 "@typescript-eslint/no-unnecessary-condition": "error",
43 "@typescript-eslint/no-inferrable-types": [
44 "error",
45 {
46 "ignoreParameters": true
47 }
48 ],
49 "no-shadow": "error",
50 "import/no-cycle": "error",
51 "import/no-unresolved": ["error", { "ignore": ["^@tanstack\/"] }],
52 "import/no-unused-modules": ["off", { "unusedExports": true }],
53 "no-redeclare": "off",
54 "react-hooks/exhaustive-deps": "error"
55 }