pompy.dev/source/.eslintrc
developomp 8a2db03c0f - added custom spinner to use instead of imported ones
- 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
2021-05-15 19:50:00 +09:00

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
}
]
}
}