Skip to content

Commit

Permalink
update packages
Browse files Browse the repository at this point in the history
  • Loading branch information
andrej-dyck committed May 4, 2024
1 parent 4169692 commit f5a32ca
Show file tree
Hide file tree
Showing 10 changed files with 2,362 additions and 2,827 deletions.
38 changes: 0 additions & 38 deletions .eslintignore

This file was deleted.

60 changes: 0 additions & 60 deletions .eslintrc.cjs

This file was deleted.

71 changes: 71 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
// @ts-check

import eslint from '@eslint/js'
import tseslint from 'typescript-eslint'

// import reactHooks from 'eslint-plugin-react-hooks'
// import reactRefresh from 'eslint-plugin-react-refresh'
// import tailwindcss from 'eslint-plugin-tailwindcss'

export default tseslint.config(
{
ignores: ['**/dist/**', '**/.idea/**', '**/node_modules/**'],
},
eslint.configs.recommended,
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
languageOptions: {
ecmaVersion: 2023,
sourceType: 'module',
parserOptions: {
project: true,
tsconfigRootDir: import.meta.dirname,
},
},
// plugins: { reactHooks, reactRefresh, tailwindcss },
rules: {
/* formatting */
indent: ['warn', 2, { 'SwitchCase': 1 }],
quotes: ['warn', 'single'],
semi: ['warn', 'never'],
'comma-dangle': ['warn', {
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'only-multiline',
'exports': 'only-multiline',
'functions': 'never',
}],
'space-unary-ops': ['warn'],
'consistent-return': ['warn'],
'eol-last': ['warn'],
'no-else-return': ['warn'],
'no-empty-function': ['warn'],
'no-multiple-empty-lines': ['warn', { max: 1 }],
'no-trailing-spaces': ['warn'],
'object-curly-spacing': ['warn', 'always'],

/* typescript */
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreArrowShorthand: true }],
'@typescript-eslint/prefer-readonly': ['warn'],
'@typescript-eslint/space-before-blocks': ['error'],
'@typescript-eslint/switch-exhaustiveness-check': ['warn'],
'@typescript-eslint/type-annotation-spacing': ['error', {
before: false,
after: true,
overrides: { arrow: { before: true, after: true } },
}],

/* react */
// 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],

/* tailwind */
// 'tailwindcss/no-custom-classname': 'off'
},
},
{
files: ['**/*.js', '**/*.mjs'],
...tseslint.configs.disableTypeChecked,
}
)
54 changes: 25 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,41 @@
"dev": "vite",
"build": "tsc && vite build",
"typecheck": "tsc",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"lint": "eslint . --report-unused-disable-directives --max-warnings 0",
"test": "vitest run",
"test:watch": "vitest watch",
"preview": "vite preview"
},
"devDependencies": {
"@types/eslint": "8.56.5",
"@types/node": "20.11.24",
"@types/react": "18.2.64",
"@types/react-dom": "18.2.21",
"@typescript-eslint/eslint-plugin": "7.1.1",
"@typescript-eslint/parser": "7.1.1",
"@eslint/js": "9.2.0",
"@types/eslint": "8.56.10",
"@types/node": "20.12.8",
"@types/react": "18.3.1",
"@types/react-dom": "18.3.0",
"@vitejs/plugin-react": "4.2.1",
"autoprefixer": "10.4.18",
"eslint": "8.57.0",
"eslint-plugin-jsx-a11y": "6.8.0",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-react-refresh": "0.4.5",
"eslint-plugin-tailwindcss": "3.14.3",
"postcss": "8.4.35",
"postcss-load-config": "5.0.3",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-router-dom": "6.22.3",
"tailwindcss": "3.4.1",
"typescript": "5.4.2",
"vite": "5.1.5",
"vitest": "1.3.1"
"autoprefixer": "10.4.19",
"eslint": "9.2.0",
"postcss": "8.4.38",
"postcss-load-config": "5.1.0",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-router-dom": "6.23.0",
"tailwindcss": "3.4.3",
"typescript": "5.4.5",
"typescript-eslint": "7.8.0",
"vite": "5.2.11",
"vitest": "1.6.0"
},
"dependencies": {
"clsx": "2.1.0",
"clsx": "2.1.1",
"fuzzy": "0.1.3",
"i18next": "23.10.1",
"i18next": "23.11.3",
"react-hotkeys-hook": "4.5.0",
"react-i18next": "14.1.0",
"react-i18next": "14.1.1",
"swr": "2.2.5",
"tailwind-merge": "2.2.1",
"ts-pattern": "5.0.8",
"zod": "3.22.4",
"zod-validation-error": "3.0.3"
"tailwind-merge": "2.3.0",
"ts-pattern": "5.1.1",
"zod": "3.23.6",
"zod-validation-error": "3.2.0"
}
}
Loading

0 comments on commit f5a32ca

Please sign in to comment.