generated from Mrtly/react-vite-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.js
37 lines (36 loc) · 874 Bytes
/
eslint.config.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
import eslintJS from "@eslint/js";
import tsEslint from "typescript-eslint";
import twEslint from "eslint-plugin-tailwindcss";
import react from "eslint-plugin-react";
import reactHooks from "eslint-plugin-react-hooks";
export default [
eslintJS.configs.recommended,
...tsEslint.configs.recommended,
...twEslint.configs["flat/recommended"],
{
plugins: {
react: react,
reactHooks: reactHooks,
},
settings: {
react: {
version: "detect",
},
tailwindcss: {
callees: ["classnames", "cn"],
},
},
rules: {
"tailwindcss/classnames-order": "off",
// '@typescript-eslint/no-unused-expressions': 'off', //this trips up on conditionals with &&
},
},
{
ignores: [
".vscode",
"dist",
"node_modules",
// '*.config.*', // ignore all config files
],
},
];