Skip to content

Commit

Permalink
fix: bump dependency versions, migrate eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Jun 2, 2024
1 parent 1056a81 commit 8449ab0
Show file tree
Hide file tree
Showing 9 changed files with 2,073 additions and 2,217 deletions.
47 changes: 0 additions & 47 deletions .eslintrc.js

This file was deleted.

Binary file modified .yarn/install-state.gz
Binary file not shown.
893 changes: 0 additions & 893 deletions .yarn/releases/yarn-4.0.1.cjs

This file was deleted.

894 changes: 894 additions & 0 deletions .yarn/releases/yarn-4.2.2.cjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.0.1.cjs
yarnPath: .yarn/releases/yarn-4.2.2.cjs
66 changes: 66 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
import eslint from '@eslint/js';
import prettierPlugin from 'eslint-plugin-prettier';
import unusedImportsPlugin from 'eslint-plugin-unused-imports';

import prettierExtends from 'eslint-config-prettier';
import { fixupPluginRules } from '@eslint/compat';
import globals from 'globals';
import tseslint from 'typescript-eslint';

const globalToUse = {
...globals.browser,
...globals.serviceworker,
...globals.es2021,
...globals.worker,
...globals.node,
};

export default tseslint.config({
extends: [
{
ignores: ['dist/**', 'bin/**'],
},
prettierExtends,
eslint.configs.recommended,
...tseslint.configs.recommended,
],
settings: {
react: { version: 'detect' },
},
plugins: {
prettierPlugin,
'unused-imports': fixupPluginRules(unusedImportsPlugin),
},
rules: {
indent: [
'error',
'tab',
{
SwitchCase: 1,
},
],
'linebreak-style': [
'error',
process.platform === 'win32' ? 'windows' : 'unix',
],
quotes: ['error', 'single'],
semi: ['error', 'always'],
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/consistent-type-definitions': ['error', 'interface'],
'@typescript-eslint/consistent-type-imports': [
'error',
{
prefer: 'type-imports',
},
],
'@typescript-eslint/no-explicit-any': 'off',
},
languageOptions: {
globals: globalToUse,
parserOptions: {
ecmaFeatures: {
jsx: true,
},
},
},
});
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,23 +31,23 @@
"yargs": "^17.7.2"
},
"devDependencies": {
"@eslint/compat": "^1.0.3",
"@types/json-schema": "^7.0.15",
"@typescript-eslint/eslint-plugin": "^6.10.0",
"@typescript-eslint/parser": "^6.10.0",
"c8": "^8.0.1",
"eslint": "^8.53.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-unused-imports": "^3.0.0",
"nock": "^13.3.8",
"prettier": "^3.0.3",
"rimraf": "^5.0.5",
"typescript": "^5.2.2",
"vitest": "^0.34.6"
"c8": "^9.1.0",
"eslint": "^9.4.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-unused-imports": "^4.0.0",
"nock": "^13.5.4",
"prettier": "^3.3.0",
"rimraf": "^5.0.7",
"typescript": "^5.4.5",
"typescript-eslint": "^7.11.0",
"vitest": "^1.6.0"
},
"prettier": {
"singleQuote": true,
"useTabs": true
},
"packageManager": "yarn@4.0.1"
"packageManager": "yarn@4.2.2"
}
3 changes: 1 addition & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@ export default defineConfig({
test: {
globals: true,
watch: false,
threads: false,
isolate: false,
reporters: 'verbose',
},
esbuild: {
target: 'node21',
target: 'node22',
},
});
Loading

0 comments on commit 8449ab0

Please sign in to comment.