Files
DevToysWeb/.eslintrc.json

51 lines
1.3 KiB
JSON

{
"$schema": "https://json.schemastore.org/eslintrc",
"root": true,
"extends": [
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:tailwindcss/recommended",
"next/core-web-vitals",
"prettier"
],
"plugins": ["tailwindcss"],
"rules": {
"@next/next/no-html-link-for-pages": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }
],
"consistent-return": "off",
"no-else-return": "off",
"no-nested-ternary": "off",
"import/prefer-default-export": "off",
"react/function-component-definition": "off",
"react/jsx-key": "off",
"react/jsx-props-no-spreading": "off",
"react/require-default-props": "off",
"tailwindcss/no-custom-classname": "off"
},
"settings": {
"tailwindcss": {
"callees": ["cn", "cva"],
"config": "./tailwind.config.js"
},
"next": {
"rootDir": ["./"]
}
},
"overrides": [
{
"files": ["*.ts", "*.tsx"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
}
}
]
}