add linter
This commit is contained in:
48
.eslintrc.json
Normal file
48
.eslintrc.json
Normal file
@@ -0,0 +1,48 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended",
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:@typescript-eslint/stylistic",
|
||||
"plugin:react/recommended",
|
||||
"plugin:react-hooks/recommended",
|
||||
"plugin:tailwindcss/recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"jsx": true
|
||||
},
|
||||
"ecmaVersion": 12,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
"react",
|
||||
"react-hooks",
|
||||
"tailwindcss"
|
||||
],
|
||||
"rules": {
|
||||
"no-undef": ["error", {"typeof": true}],
|
||||
"react-hooks/exhaustive-deps": "off",
|
||||
"react/react-in-jsx-scope": "off",
|
||||
"react/require-default-props": "off",
|
||||
"semi": [2, "never"],
|
||||
"tailwindcss/no-custom-classname": ["warn", {
|
||||
"cssFiles": ["resources/css/app.css"],
|
||||
"whitelist": []
|
||||
}],
|
||||
"tailwindcss/enforces-negative-arbitrary-values": "warn",
|
||||
"tailwindcss/enforces-shorthand": "warn",
|
||||
"tailwindcss/migration-from-tailwind-2": "warn",
|
||||
// "tailwindcss/no-arbitrary-value": "off",
|
||||
// "tailwindcss/no-arbitrary-value": "error",
|
||||
"tailwindcss/no-contradicting-classname": "error"
|
||||
},
|
||||
"settings": {
|
||||
"react": {
|
||||
"version": "18.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user