58 lines
1.2 KiB
JSON
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
|
||
|
}
|
||
|
]
|
||
|
}
|
||
|
}
|