This repository has been archived on 2024-06-24. You can view files and clone it, but cannot push or open issues or pull requests.
wgdash/.eslintrc.json
Christoph Heiss 688d012309
Initial commit
Signed-off-by: Christoph Heiss <contact@christoph-heiss.at>
2022-07-15 00:11:42 +02:00

58 lines
1.2 KiB
JSON

{
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"next/core-web-vitals",
"eslint:recommended"
],
"env": {
"es2020": true,
"browser": true,
"node": true
},
"rules": {
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"lines-between-class-members": "off",
"jsx-a11y/anchor-is-valid": [
"error",
{
"components": ["Link"],
"specialLink": ["hrefLeft", "hrefRight"],
"aspects": ["invalidHref", "preferButton"]
}
],
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": [
"error",
{
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
],
"quotes": ["error", "single"],
"no-shadow": "off",
"@typescript-eslint/no-shadow": ["error"],
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": ["error"],
"indent": "off",
"@typescript-eslint/indent": [
"error",
2,
{
"SwitchCase": 1
}
]
}
}