-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (49 loc) · 1.45 KB
/
eslint.config.js
File metadata and controls
50 lines (49 loc) · 1.45 KB
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
// @ts-check
import { globalIgnores } from "eslint/config";
import eslint from "@eslint/js";
import eslintReact from "@eslint-react/eslint-plugin";
import globals from "globals";
import jsxA11y from "eslint-plugin-jsx-a11y";
import perfectionist from "eslint-plugin-perfectionist";
import prettier from "eslint-plugin-prettier/recommended";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import sonarJs from "eslint-plugin-sonarjs";
import storybook from "eslint-plugin-storybook";
import tseslint from "typescript-eslint";
export default tseslint.config(
[
globalIgnores([
"dist",
"storybook-static",
"routeTree.gen.ts",
"vite.config.ts",
]),
{
files: ["**/*.{ts,tsx}"],
extends: [
eslint.configs.recommended,
tseslint.configs.strictTypeChecked,
tseslint.configs.stylisticTypeChecked,
eslintReact.configs["recommended-type-checked"],
reactHooks.configs["recommended-latest"],
reactRefresh.configs.vite,
sonarJs.configs.recommended,
jsxA11y.flatConfigs.strict,
perfectionist.configs["recommended-alphabetical"],
],
languageOptions: {
ecmaVersion: "latest",
globals: globals.browser,
parserOptions: {
parser: tseslint.parser,
projectService: true,
tsconfigRootDir: import.meta.dirname,
project: ["./tsconfig.node.json", "./tsconfig.app.json"],
},
},
},
],
storybook.configs["flat/recommended"],
prettier,
);