- added new empty blog post - changed react-helmet to react-helmet-async for faster tab title change and reduced console warning - better eslint config and corresponding warning fixes (changing let -> const, removed unused variables, etc.) - removed redundant Router from footer - removed ignored preload attribute value from font loading link tag in index.html
59 lines
1.1 KiB
Text
59 lines
1.1 KiB
Text
{
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:@typescript-eslint/recommended",
|
|
"plugin:react/recommended",
|
|
"plugin:json/recommended",
|
|
"prettier"
|
|
],
|
|
"settings": {
|
|
"node": {
|
|
"tryExtensions": [".js", ".jsx", ".json"]
|
|
},
|
|
"react": {
|
|
"version": "17.0"
|
|
}
|
|
},
|
|
"parser": "@typescript-eslint/parser",
|
|
"parserOptions": {
|
|
"ecmaFeatures": {
|
|
"jsx": true
|
|
},
|
|
"sourceType": "module"
|
|
},
|
|
"plugins": ["react", "@typescript-eslint"],
|
|
"overrides": [
|
|
{
|
|
"files": ["*.ts", "*.tsx"],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-module-boundary-types": ["off"]
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
"react/jsx-uses-vars": "error",
|
|
"react/no-unknown-property": [
|
|
"error",
|
|
{
|
|
"ignore": [
|
|
"class",
|
|
"onclick",
|
|
"onload",
|
|
"onsubmit",
|
|
"crossorigin"
|
|
]
|
|
}
|
|
],
|
|
"react/react-in-jsx-scope": ["off"],
|
|
"react/prop-types": ["off"],
|
|
"react/display-name": ["off"],
|
|
"react/jsx-key": ["off"],
|
|
"react/jsx-no-target-blank": [
|
|
"error",
|
|
{
|
|
"allowReferrer": true
|
|
}
|
|
]
|
|
}
|
|
}
|