-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy patheslint.config.js
32 lines (31 loc) · 1.03 KB
/
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
import eslint from "@eslint/js";
import eslintConfigPrettier from "eslint-config-prettier";
import tailwind from "eslint-plugin-tailwindcss";
import globals from "globals";
import tseslint from "typescript-eslint";
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended, // .strict is a super set of recommended
// ...tseslint.configs.strict,
...tseslint.configs.stylistic,
{ ignores: ["dist", "node_modules", "storybook-static", "ui-shadcn"] },
{
extends: [
eslint.configs.recommended,
...tseslint.configs.recommended,
...tailwind.configs["flat/recommended"],
],
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
},
rules: {
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-non-null-assertion": "warn",
"@typescript-eslint/no-explicit-any": "warn",
"@typescript-eslint/consistent-type-definitions": "warn",
"tailwindcss/enforces-shorthand": "off",
},
},
eslintConfigPrettier,
);