Skip to content
Snippets Groups Projects
Commit 637a2479 authored by Bjarke Madsen's avatar Bjarke Madsen
Browse files

Unify eslint config with output from default vscode typescript features formatting

parent b4042d7f
No related branches found
No related tags found
No related merge requests found
...@@ -46,10 +46,11 @@ export default [ ...@@ -46,10 +46,11 @@ export default [
}, },
rules: { rules: {
// these are not needed with React 19 // react import isn't needed with React 19
"react/jsx-uses-react": "off", "react/jsx-uses-react": "off",
"react/react-in-jsx-scope": "off", "react/react-in-jsx-scope": "off",
// general rules
"react-hooks/rules-of-hooks": "error", "react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn", "react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off", "react/prop-types": "off",
...@@ -60,8 +61,15 @@ export default [ ...@@ -60,8 +61,15 @@ export default [
argsIgnorePattern: "^_", argsIgnorePattern: "^_",
}, },
], ],
"no-multiple-empty-lines": [
"error",
{
max: 1,
maxBOF: 0,
maxEOF: 0,
},
]
"@typescript-eslint/no-empty-function": "off",
}, },
}, },
]; ];
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
"scripts": { "scripts": {
"start": "vite", "start": "vite",
"build": "(eslint && vite build --emptyOutDir) || echo 'eslint failed, build aborted'", "build": "(eslint && vite build --emptyOutDir) || echo 'eslint failed, build aborted'",
"lint": "eslint" "lint": "eslint",
"lint:fix": "eslint --fix"
}, },
"dependencies": { "dependencies": {
"bootstrap": "~5.3.3", "bootstrap": "~5.3.3",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment