You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
49 lines
1.4 KiB
{
|
|
"root": true,
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"project": "./tsconfig.json"
|
|
},
|
|
"extends": [
|
|
"next/core-web-vitals",
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:@typescript-eslint/recommended-requiring-type-checking",
|
|
"prettier",
|
|
"plugin:tailwindcss/recommended"
|
|
],
|
|
"plugins": ["@typescript-eslint", "import", "unused-imports", "tailwindcss"],
|
|
"rules": {
|
|
"semi": "error",
|
|
"no-console": "warn",
|
|
"no-var": "error",
|
|
"sort-imports": 0,
|
|
"no-unused-vars": "warn",
|
|
"import/order": [
|
|
"error",
|
|
{
|
|
"groups": [
|
|
"builtin",
|
|
"external",
|
|
"internal",
|
|
["parent", "sibling"],
|
|
"object",
|
|
"type",
|
|
"index"
|
|
],
|
|
"newlines-between": "always",
|
|
"pathGroupsExcludedImportTypes": ["builtin"],
|
|
"alphabetize": { "order": "asc", "caseInsensitive": true }
|
|
}
|
|
],
|
|
"unused-imports/no-unused-imports": "error",
|
|
"unused-imports/no-unused-vars": [
|
|
"warn",
|
|
{ "vars": "all", "varsIgnorePattern": "^_", "args": "after-used", "argsIgnorePattern": "^_" }
|
|
],
|
|
"tailwindcss/classnames-order": "warn",
|
|
"tailwindcss/no-custom-classname": "warn",
|
|
"tailwindcss/no-contradicting-classname": "error"
|
|
}
|
|
}
|