mirror of
https://github.com/AnimeThemes/animethemes-web.git
synced 2026-07-11 01:24:31 +02:00
67c2f2180d
* Framer Motion is now lazy loaded. * FontAwesome is now a custom component removing all the bloat we don't need. * Imports and exports for types now use the proper syntax to get excluded by bundlers.
74 lines
1.8 KiB
JSON
74 lines
1.8 KiB
JSON
{
|
|
"extends": [
|
|
"next/core-web-vitals",
|
|
"plugin:react/recommended",
|
|
"eslint:recommended"
|
|
],
|
|
"ignorePatterns": [
|
|
"src/generated"
|
|
],
|
|
"rules": {
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double",
|
|
{
|
|
"allowTemplateLiterals": true
|
|
}
|
|
],
|
|
"curly": [
|
|
"error",
|
|
"all"
|
|
],
|
|
"object-curly-spacing": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"indent": [
|
|
"error",
|
|
4,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"react/react-in-jsx-scope": "off",
|
|
"react/self-closing-comp": "error",
|
|
// For now we don't habe prop-types validation
|
|
"react/prop-types": "off"
|
|
|
|
},
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"**/*.{ts,tsx}"
|
|
],
|
|
"parser": "@typescript-eslint/parser",
|
|
"plugins": [
|
|
"@typescript-eslint"
|
|
],
|
|
"extends": [
|
|
"plugin:@typescript-eslint/recommended"
|
|
],
|
|
"parserOptions": {
|
|
"project": [
|
|
"./tsconfig.json"
|
|
]
|
|
},
|
|
"rules": {
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-empty-interface": [
|
|
"error",
|
|
{
|
|
"allowSingleExtends": true
|
|
}
|
|
],
|
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
"@typescript-eslint/consistent-type-exports": "error"
|
|
}
|
|
}
|
|
]
|
|
}
|