-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy patheslint.config.js
More file actions
28 lines (27 loc) · 765 Bytes
/
eslint.config.js
File metadata and controls
28 lines (27 loc) · 765 Bytes
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
import pluginJs from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import pluginReact from "eslint-plugin-react";
import globals from "globals";
import tseslint from "typescript-eslint";
export default [
{ files: ["app/**/*.{ts,tsx}"] },
{ ignores: ["build/**", "node_modules/**", ".react-router/**", "worker-configuration.d.ts"] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.recommended,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: "detect",
},
},
},
{
rules: {
"react/react-in-jsx-scope": "off",
"@typescript-eslint/consistent-type-imports": "error"
},
},
eslintConfigPrettier,
];