-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheslint.config.ts
46 lines (44 loc) · 1.1 KB
/
eslint.config.ts
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
import { FlatCompat } from "@eslint/eslintrc";
import js from "@eslint/js";
import type { Linter } from "eslint";
import { globalIgnores } from "eslint/config";
const compat = new FlatCompat({
baseDirectory: import.meta.dirname,
});
export default [
...compat.config({
extends: [
"next/core-web-vitals",
"next/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:tailwindcss/recommended",
"plugin:readable-tailwind/warning",
],
overrides: [
{
files: ["*.ts", "*.tsx", "*.js"],
parser: "@typescript-eslint/parser",
},
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaFeatures: {
jsx: true,
},
ecmaVersion: "latest",
},
plugins: ["@typescript-eslint", "readable-tailwind"],
rules: {
"tailwindcss/classnames-order": "off",
"readable-tailwind/multiline": [
"warn",
{
group: "newLine",
printWidth: 100,
},
],
},
}),
js.configs.recommended,
globalIgnores([".next/*", "node_modules/*"]),
] as Linter.Config[];