Skip to content

Commit

Permalink
Streamline CRA deps and webpack config (#3396)
Browse files Browse the repository at this point in the history
  • Loading branch information
riverar authored Dec 20, 2024
1 parent ad8d166 commit 20af225
Show file tree
Hide file tree
Showing 17 changed files with 6,242 additions and 14,975 deletions.
9 changes: 9 additions & 0 deletions web/features/.browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[production]
>0.2%
not dead
not op_mini all

[development]
last 3 chrome version
last 3 firefox version
last 3 safari version
48 changes: 0 additions & 48 deletions web/features/.eslintrc.js

This file was deleted.

12 changes: 0 additions & 12 deletions web/features/.vscode/launch.json

This file was deleted.

16 changes: 11 additions & 5 deletions web/features/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"xml.trace.server": "off",
"typescript.tsserver.log": "off",
"js/ts.implicitProjectConfig.target": "ES2016",
"typescript.tsserver.experimental.enableProjectDiagnostics": false
}
"xml.trace.server": "off",
"typescript.tsserver.log": "off",
"js/ts.implicitProjectConfig.target": "ES2016",
"typescript.tsserver.experimental.enableProjectDiagnostics": false,

"editor.tabSize": 4,
"editor.detectIndentation": false,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
}
}
28 changes: 0 additions & 28 deletions web/features/.vscode/tasks.json

This file was deleted.

48 changes: 48 additions & 0 deletions web/features/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
module.exports = {
env: {
browser: true,
es2021: true,
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
],
overrides: [
{
env: {
node: true,
},
files: ['.eslintrc.{js,cjs}'],
parserOptions: {
sourceType: 'script',
},
},
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
plugins: ['@typescript-eslint', 'react', 'react-hooks'],
rules: {
indent: [
'error',
4,
{
SwitchCase: 1,
},
],
'linebreak-style': ['error', 'unix'],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'react/jsx-uses-react': 'off',
'react/react-in-jsx-scope': 'off',
},
settings: {
react: {
version: 'detect',
},
},
};
Loading

0 comments on commit 20af225

Please sign in to comment.