Skip to content

Commit

Permalink
fix: add script
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed May 17, 2023
1 parent 7eb5e61 commit c1adf50
Show file tree
Hide file tree
Showing 8 changed files with 107 additions and 107 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"test": "nr -r test",
"build": "nr -r build",
"prepare": "nr build",
"release": "lvr --no-push"
"release": "lvr --all --no-push"
},
"devDependencies": {
"@lvjiaxuan/eslint-plugin": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/all/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@
"devDependencies": {
"eslint": "^8.40.0"
}
}
}
2 changes: 1 addition & 1 deletion packages/eslint-plugin/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ try {
execaSync('ni', [ '@lvjiaxuan/eslint-plugin', 'eslint', '-D', ...argvWithoutFlat ], { stdio: 'inherit', cwd })

if (flat) {
fs.writeFileSync(path.resolve(cwd, 'eslint.config.js'), 'export * as default from \'@lvjiaxuan/eslint-plugin/flat\'', { encoding: 'utf-8' })
fs.writeFileSync(path.resolve(cwd, 'eslint.config.js'), 'import lvjiaxuan from \'@lvjiaxuan/eslint-plugin/flat\'\nexport default lvjiaxuan.configs.recommended', { encoding: 'utf-8' })
console.log('Flat config is installed and do next depends on you.')
console.log('1. Create/Append `"eslint.experimental.useFlatConfig": true` to the `.vscode/settings.json`.')
console.log('2. Append `"types": "module"` to the `package.json`.')
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@
},
"dependencies": {
"@lvjiaxuan/eslint-config": "workspace:*",
"@typescript-eslint/utils": "^5.59.5",
"@typescript-eslint/utils": "^5.59.6",
"lodash.merge": "^4.6.2"
},
"devDependencies": {
"@types/lodash.merge": "^4.6.7",
"@types/node": "^18.16.7",
"@typescript-eslint/parser": "^5.59.5",
"@types/node": "^18.16.12",
"@typescript-eslint/parser": "^5.59.6",
"eslint": "^8.40.0",
"vitest": "^0.18.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@
"devDependencies": {
"eslint": "^8.40.0"
}
}
}
6 changes: 3 additions & 3 deletions packages/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@
},
"dependencies": {
"@lvjiaxuan/eslint-config-js": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5"
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6"
},
"devDependencies": {
"eslint": "^8.40.0",
"typescript": "^4.9.5"
}
}
}
10 changes: 5 additions & 5 deletions packages/vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@
},
"dependencies": {
"@lvjiaxuan/eslint-config-ts": "workspace:*",
"@typescript-eslint/eslint-plugin": "^5.59.5",
"@typescript-eslint/parser": "^5.59.5",
"@typescript-eslint/eslint-plugin": "^5.59.6",
"@typescript-eslint/parser": "^5.59.6",
"@vue/eslint-config-typescript": "^11.0.3",
"eslint-plugin-vue": "^9.12.0",
"eslint-plugin-vue": "^9.13.0",
"globals": "^13.20.0",
"vue-eslint-parser": "^9.2.1"
"vue-eslint-parser": "^9.3.0"
},
"devDependencies": {
"eslint": "^8.40.0"
}
}
}

0 comments on commit c1adf50

Please sign in to comment.