Skip to content

Commit

Permalink
Merge pull request #562 from lithictech/webfixes
Browse files Browse the repository at this point in the history
Replace CRA eslint with supported one, and fix the fallout
  • Loading branch information
rgalanakis authored Dec 1, 2023
2 parents f573334 + 05bbe39 commit 7292939
Show file tree
Hide file tree
Showing 65 changed files with 5,737 additions and 10,256 deletions.
22 changes: 13 additions & 9 deletions webapp/.eslintrc
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
{
"plugins": [],
"env": {
"browser": true,
"jest": true,
"node": true,
"es6": true
},
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/jsx-runtime"
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:react-hooks/recommended"
],
"globals": {
"__DEV__": true
},
"settings": {
"react": {
"version": "17.0"
}
},
"parserOptions": { "ecmaVersion": "latest",
"sourceType": "module" },
"settings": { "react": { "version": "18.2" } },
"plugins": ["react-refresh"],
"rules": {
"import/no-anonymous-default-export": "off",
// Due to some dependency stuff, this needs to be disabled.
Expand All @@ -29,6 +29,10 @@
"react/display-name": "off",
"react/prop-types": "off",
"react/react-in-jsx-scope": "error",
"react/jsx-uses-react": "error"
"react/jsx-uses-react": "error",
"react-refresh/only-export-components": [
"warn",
{ "allowConstantExport": true }
]
}
}
Loading

0 comments on commit 7292939

Please sign in to comment.