-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: use react linting option from
@antfu/eslint-config
- Loading branch information
1 parent
b4e5831
commit c9e08ab
Showing
14 changed files
with
1,987 additions
and
1,716 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import antfu from '@antfu/eslint-config' | ||
|
||
export default antfu( | ||
{ | ||
ignores: ['**/tsconfig.json'], | ||
}, | ||
) | ||
export default await antfu({ | ||
ignores: ['**/tsconfig.json'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/core", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@unlazy/nuxt", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Nuxt lazy loading module for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -52,9 +52,9 @@ | |
"devDependencies": { | ||
"@nuxt/module-builder": "^0.5.4", | ||
"@nuxt/schema": "^3.8.2", | ||
"@types/node": "^20.9.4", | ||
"@unocss/nuxt": "^0.57.7", | ||
"@unocss/reset": "^0.57.7", | ||
"@types/node": "^20.10.3", | ||
"@unocss/nuxt": "^0.58.0", | ||
"@unocss/reset": "^0.58.0", | ||
"nuxt": "^3.8.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,7 @@ | ||
import antfu from '@antfu/eslint-config' | ||
import reactPlugin from 'eslint-plugin-react' | ||
import hooksPlugin from 'eslint-plugin-react-hooks' | ||
|
||
export default antfu( | ||
{ | ||
vue: false, | ||
ignores: ['tsconfig.json'], | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
plugins: { | ||
'react': reactPlugin, | ||
'react-hooks': hooksPlugin, | ||
}, | ||
rules: { | ||
...reactPlugin.configs['jsx-runtime'].rules, | ||
...hooksPlugin.configs.recommended.rules, | ||
}, | ||
}, | ||
) | ||
export default await antfu({ | ||
vue: false, | ||
react: true, | ||
ignores: ['tsconfig.json'], | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/react", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "React lazy loading library for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -48,10 +48,13 @@ | |
"unlazy": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.9.4", | ||
"@types/react": "^18.2.38", | ||
"@types/node": "^20.10.3", | ||
"@types/react": "^18.2.42", | ||
"@types/react-dom": "^18.2.17", | ||
"@vitejs/plugin-react": "^4.2.0", | ||
"@vitejs/plugin-react": "^4.2.1", | ||
"eslint-plugin-react": "^7.33.2", | ||
"eslint-plugin-react-hooks": "^4.6.0", | ||
"eslint-plugin-react-refresh": "^0.4.5", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/solid", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Solid lazy loading library for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -55,9 +55,9 @@ | |
"unlazy": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.9.4", | ||
"@types/node": "^20.10.3", | ||
"eslint-plugin-solid": "^0.13.0", | ||
"solid-js": "^1.8.6", | ||
"solid-js": "^1.8.7", | ||
"tsup": "^8.0.1", | ||
"tsup-preset-solid": "^2.1.0", | ||
"vite-plugin-solid": "^2.7.2" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/svelte", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Svelte lazy loading library for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -56,11 +56,11 @@ | |
}, | ||
"devDependencies": { | ||
"@sveltejs/adapter-auto": "^2.1.1", | ||
"@sveltejs/kit": "^1.27.6", | ||
"@sveltejs/kit": "^1.27.7", | ||
"@sveltejs/package": "^2.2.3", | ||
"eslint-plugin-svelte": "^2.35.1", | ||
"svelte": "^4.2.7", | ||
"svelte-check": "^3.6.1", | ||
"svelte": "^4.2.8", | ||
"svelte-check": "^3.6.2", | ||
"tslib": "^2.6.2" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "unlazy", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Universal lazy loading library for placeholder images leveraging native browser APIs", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "@unlazy/vue", | ||
"type": "module", | ||
"version": "0.10.2", | ||
"packageManager": "pnpm@8.10.5", | ||
"packageManager": "pnpm@8.11.0", | ||
"description": "Vue lazy loading library for placeholder images", | ||
"author": "Johann Schopplich <[email protected]>", | ||
"license": "MIT", | ||
|
@@ -59,8 +59,8 @@ | |
"unlazy": "workspace:*" | ||
}, | ||
"devDependencies": { | ||
"@types/node": "^20.9.4", | ||
"@vitejs/plugin-vue": "^4.5.0", | ||
"vue": "^3.3.8" | ||
"@types/node": "^20.10.3", | ||
"@vitejs/plugin-vue": "^4.5.1", | ||
"vue": "^3.3.10" | ||
} | ||
} |
Oops, something went wrong.