-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.js
More file actions
27 lines (26 loc) · 946 Bytes
/
Copy patheslint.config.js
File metadata and controls
27 lines (26 loc) · 946 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
import eslintPluginAstro from "eslint-plugin-astro";
import eslintPluginReact from "eslint-plugin-react";
import eslintPluginPrettier from "eslint-plugin-prettier/recommended";
import eslintJsxA11y from "eslint-plugin-jsx-a11y";
import eslintPluginTailwind from "eslint-plugin-tailwindcss";
import eslintJS from "@eslint/js";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslintJS.configs.recommended,
tseslint.configs.recommended,
eslintPluginReact.configs.flat.recommended,
eslintJsxA11y.flatConfigs.recommended,
eslintPluginPrettier,
...eslintPluginAstro.configs.recommended,
...eslintPluginTailwind.configs["flat/recommended"],
{
rules: {
"tailwindcss/no-custom-classname": "off",
"react/no-array-index-key": "error",
"react/react-in-jsx-scope": "off",
"react/button-has-type": "error",
"react/jsx-key": "error",
"react/display-name": "off",
},
},
);