next-app-template/.eslintrc.json

58 lines
1.4 KiB
JSON
Raw Permalink Normal View History

// devDependencies required
// eslint
// eslint-config-next
// eslint-config-standard
// eslint-plugin-import
// eslint-plugin-n
// eslint-plugin-promise
// eslint-plugin-react
// eslint-plugin-tailwindcss
// command yarn install
// yarn add -D eslint eslint-config-next eslint-config-standard eslint-plugin-import eslint-plugin-n eslint-plugin-promise eslint-plugin-react eslint-plugin-tailwindcss
// for TypeScript
// yarn add -D @typescript-eslint/parser
2024-04-29 14:05:36 -06:00
{
"env": {
"browser": true,
"es2021": true,
"node": true
},
"extends": [
"standard",
"next/core-web-vitals",
"plugin:react/recommended",
"plugin:tailwindcss/recommended"
],
"overrides": [],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": ["react", "tailwindcss"],
"rules": {
"react-hooks/exhaustive-deps": "off",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"tailwindcss/no-custom-classname": "off",
"tailwindcss/classnames-order": "error",
"camelcase": "off",
"react-hooks/rules-of-hooks": "off",
"object-curly-spacing": [2, "always"],
"no-console": ["warn", { "allow": ["warn", "error"] }],
"quotes": ["error", "double"],
"indent": [
"error",
2,
{
"SwitchCase": 1,
"flatTernaryExpressions": true
}
]
}
2024-04-29 14:05:36 -06:00
}