Skip to content

Commit

Permalink
chore: upgrade to ESLint v9 and solid linting
Browse files Browse the repository at this point in the history
  • Loading branch information
johannschopplich committed Apr 19, 2024
1 parent 892131a commit 407a399
Show file tree
Hide file tree
Showing 13 changed files with 1,666 additions and 2,040 deletions.
4 changes: 2 additions & 2 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.31",
"unocss": "^0.58.9",
"vitepress": "^1.0.2"
"unocss": "^0.59.4",
"vitepress": "^1.1.3"
}
}
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.11.3",
"private": true,
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"scripts": {
"build": "pnpm -r --filter=./packages/** run build",
"dev:prepare": "pnpm -r --filter=./packages/** run dev:prepare",
Expand All @@ -18,15 +18,15 @@
"prepare": "pnpm run dev:prepare"
},
"devDependencies": {
"@antfu/eslint-config": "^2.12.1",
"@types/node": "^20.12.4",
"@antfu/eslint-config": "^2.15.0",
"@types/node": "^20.12.7",
"bumpp": "^9.4.0",
"eslint": "^8.57.0",
"happy-dom": "^13.10.1",
"typescript": "^5.4.4",
"eslint": "^9.0.0",
"happy-dom": "^14.7.1",
"typescript": "^5.4.5",
"unbuild": "^3.0.0-rc.1",
"vite": "^5.2.8",
"vitest": "^1.4.0",
"vue-tsc": "^2.0.10"
"vite": "^5.2.9",
"vitest": "^1.5.0",
"vue-tsc": "^2.0.13"
}
}
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@unlazy/core",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down
10 changes: 5 additions & 5 deletions packages/nuxt/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@unlazy/nuxt",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Nuxt lazy loading module for placeholder images",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down Expand Up @@ -52,9 +52,9 @@
"devDependencies": {
"@nuxt/module-builder": "^0.5.5",
"@nuxt/schema": "^3.11.2",
"@types/node": "^20.12.4",
"@unocss/nuxt": "^0.58.9",
"@unocss/reset": "^0.58.9",
"@types/node": "^20.12.7",
"@unocss/nuxt": "^0.59.4",
"@unocss/reset": "^0.59.4",
"nuxt": "^3.11.2"
}
}
1 change: 0 additions & 1 deletion packages/react/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ import antfu from '@antfu/eslint-config'
export default await antfu({
vue: false,
react: true,
ignores: ['tsconfig.json'],
})
12 changes: 6 additions & 6 deletions packages/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@unlazy/react",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "React lazy loading library for placeholder images",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down Expand Up @@ -48,11 +48,11 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.12.4",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.24",
"@eslint-react/eslint-plugin": "^1.5.8",
"@types/node": "^20.12.7",
"@types/react": "^18.2.79",
"@types/react-dom": "^18.2.25",
"@vitejs/plugin-react": "^4.2.1",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-react-refresh": "^0.4.6",
"react": "^18.2.0",
Expand Down
16 changes: 1 addition & 15 deletions packages/solid/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
import solidPlugin from 'eslint-plugin-solid'
import * as tsParser from '@typescript-eslint/parser'
import antfu from '@antfu/eslint-config'

export default await antfu(
{
vue: false,
ignores: ['tsconfig.json'],
},
{
files: ['**/*.ts', '**/*.tsx'],
plugins: {
solid: solidPlugin,
},
languageOptions: {
parser: tsParser,
},
rules: {
...solidPlugin.configs.recommended.rules,
},
solid: true,
},
)
6 changes: 3 additions & 3 deletions packages/solid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@unlazy/solid",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Solid lazy loading library for placeholder images",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down Expand Up @@ -55,7 +55,7 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.12.4",
"@types/node": "^20.12.7",
"eslint-plugin-solid": "^0.13.2",
"solid-js": "^1.8.16",
"tsup": "^8.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/svelte/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default await antfu(
{
vue: false,
svelte: true,
ignores: ['.svelte-kit', 'tsconfig.json'],
ignores: ['.svelte-kit'],
},
{
files: ['**/*.svelte'],
Expand Down
10 changes: 5 additions & 5 deletions packages/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@unlazy/svelte",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Svelte lazy loading library for placeholder images",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down Expand Up @@ -56,10 +56,10 @@
},
"devDependencies": {
"@sveltejs/adapter-auto": "^3.2.0",
"@sveltejs/kit": "^2.5.5",
"@sveltejs/kit": "^2.5.6",
"@sveltejs/package": "^2.3.1",
"eslint-plugin-svelte": "^2.35.1",
"svelte": "^4.2.12",
"eslint-plugin-svelte": "^2.37.0",
"svelte": "^4.2.15",
"svelte-check": "^3.6.9",
"tslib": "^2.6.2"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/unlazy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "unlazy",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down
8 changes: 4 additions & 4 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
"name": "@unlazy/vue",
"type": "module",
"version": "0.11.3",
"packageManager": "[email protected].6",
"packageManager": "[email protected].7",
"description": "Vue lazy loading library for placeholder images",
"author": "Johann Schopplich <pkg@johannschopplich.com>",
"author": "Johann Schopplich <hello@johannschopplich.com>",
"license": "MIT",
"homepage": "https://unlazy.byjohann.dev",
"repository": {
Expand Down Expand Up @@ -59,8 +59,8 @@
"unlazy": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.12.4",
"@types/node": "^20.12.7",
"@vitejs/plugin-vue": "^5.0.4",
"vue": "^3.4.21"
"vue": "^3.4.23"
}
}
Loading

0 comments on commit 407a399

Please sign in to comment.