Skip to content

Commit

Permalink
Update vite and eslint related packages
Browse files Browse the repository at this point in the history
  • Loading branch information
bartstc committed Dec 21, 2023
1 parent fecb80c commit c67dbbf
Show file tree
Hide file tree
Showing 6 changed files with 3,449 additions and 4,012 deletions.
81 changes: 0 additions & 81 deletions .eslintrc.cjs

This file was deleted.

78 changes: 78 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["plugin:storybook/recommended"],
"overrides": [
{
"files": ["**/*.stories.*"],
"rules": {
"import/no-anonymous-default-export": "off"
}
}
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint"],
"rules": {
"@typescript-eslint/no-explicit-any": [
"error",
{
"ignoreRestArgs": true
}
],
"react/jsx-key": [
"warn",
{
"checkFragmentShorthand": true
}
],
"no-console": [
"warn",
{
"allow": ["warn", "error", "info"]
}
],
"no-restricted-imports": [
"error",
{
"paths": [
{
"message": "Please use import { method } from `lodash-es` instead.",
"name": "lodash"
},
{
"importNames": ["chain"],
"message": "Avoid using chain since it is non tree-shakable. Try out flow instead.",
"name": "lodash-es"
},
{
"importNames": ["default"],
"message": "Instead of default import, please use import { method } from `lodash-es` instead.",
"name": "lodash-es"
},
{
"message": "Avoid using chain since it is non tree-shakable. Try out flow instead.",
"name": "lodash-es/chain"
}
],
"patterns": [
"shared/*/*",
"*/**/shared/*",
"utils/*/*",
"*/**/utils/*",
"modules/*/*/*",
"*/**/modules/*/*",
"lodash/**",
"lodash/fp/**",
"react-router-dom",
"dayjs"
]
}
]
}
}
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ dist-ssr
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
Expand Down
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"typescript.enablePromptUseWorkspaceTsdk": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
19 changes: 9 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@
"zustand": "^4.3.5"
},
"devDependencies": {
"@babel/core": "^7.20.5",
"@babel/preset-react": "^7.18.6",
"@storybook/addon-a11y": "^7.5.1",
"@storybook/addon-actions": "^7.5.1",
"@storybook/addon-essentials": "^7.5.1",
Expand All @@ -53,12 +51,13 @@
"@types/react": "^18.0.24",
"@types/react-dom": "^18.0.8",
"@types/testing-library__jest-dom": "^5.14.6",
"@vitejs/plugin-react-swc": "^3.3.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"axe-playwright": "^1.2.3",
"babel-loader": "^8.3.0",
"concurrently": "8.2.0",
"eslint": "^8.27.0",
"eslint-config-react-app": "^7.0.1",
"eslint": "^8.56.0",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-storybook": "^0.6.15",
"http-server": "^14.1.1",
"husky": "^8.0.2",
Expand All @@ -72,10 +71,10 @@
"storybook": "^7.5.1",
"storybook-addon-react-router-v6": "^2.0.8",
"storybook-dark-mode": "^3.0.1",
"typescript": "^4.9.3",
"vite": "^4.3.3",
"vite-plugin-checker": "^0.5.4",
"vite-tsconfig-paths": "^4.0.5",
"typescript": "^5.3.3",
"vite": "^5.0.10",
"vite-plugin-checker": "^0.6.2",
"vite-tsconfig-paths": "^4.2.2",
"vitest": "^0.27.3",
"wait-on": "^7.0.1"
},
Expand Down
Loading

0 comments on commit c67dbbf

Please sign in to comment.