mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-28 09:16:47 +08:00
update: lint config
This commit is contained in:
@@ -5,10 +5,7 @@
|
||||
"main": "./index.ts",
|
||||
"author": "Vick Scarlet <vick@syaro.io>",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"lint": "bunx --bun eslint .",
|
||||
"test": "bun test"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../package.json"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"author": "Vick Scarlet <vick@syaro.io>",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"lint": "bunx --bun eslint .",
|
||||
"test": "bun test"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -14,9 +14,6 @@
|
||||
"@remake/vitex": "workspace:*",
|
||||
"immer": "^11.1.15"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../package.json"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./src/index.ts",
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
"author": "Vick Scarlet <vick@syaro.io>",
|
||||
"scripts": {
|
||||
"build": "bunx --bun v-transform transform -t ts -w src -d dist \"**/[!~$]*.xlsx\" --map",
|
||||
"lint": "eslint .",
|
||||
"lint": "bunx --bun eslint .",
|
||||
"test": "bun test"
|
||||
},
|
||||
"exports": {
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
import { defineConfig } from 'eslint/config'
|
||||
import react from 'eslint-plugin-react'
|
||||
import reactHooks from 'eslint-plugin-react-hooks'
|
||||
import defaultConfig from '../../eslint.config.ts'
|
||||
|
||||
export default defineConfig([
|
||||
defaultConfig,
|
||||
{
|
||||
...react.configs.flat.recommended!,
|
||||
settings: { react: { version: '19' } },
|
||||
},
|
||||
react.configs.flat['jsx-runtime']!,
|
||||
reactHooks.configs.flat.recommended,
|
||||
])
|
||||
@@ -22,10 +22,8 @@
|
||||
"@testing-library/jest-dom": "^7.0.0",
|
||||
"@testing-library/react": "^16.3.2",
|
||||
"@types/react": "^19.2.18",
|
||||
"eslint-config-react": "^1.1.7"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "react"
|
||||
"eslint-plugin-react": "^7.37.5",
|
||||
"eslint-plugin-react-hooks": "^7.1.1"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
"main": "./index.ts",
|
||||
"author": "Vick Scarlet <vick@syaro.io>",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"lint": "bunx --bun eslint .",
|
||||
"test": "bun test"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": "../../package.json"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user