npm(eslint-config): move peerDep to dep
Summary: ESlint flat config blog says [ref] to use dependencies not peerDependencies (for plugins). Also add tsc for types as some tools complain about it. Ref: https://eslint.org/blog/2023/10/flat-config-rollout-plans/ Signed-off-by: Yongmin Hong <revi@omglol.email> Test Plan: `npm ci` Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D435
This commit is contained in:
parent
4e98e27115
commit
359bcd4451
3 changed files with 1172 additions and 24 deletions
|
@ -1,23 +1,28 @@
|
|||
{
|
||||
"$schema": "https://json.schemastore.org/package.json",
|
||||
"name": "@revi/eslint-config",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"description": "@revi's shared eslint config",
|
||||
"main": "eslint.config.js",
|
||||
"peerDependencies": {
|
||||
"@eslint/js": "^8.0.0 || ^9.0.0",
|
||||
"eslint": "^8.0.0 || ^9.0.0",
|
||||
"types": "./types/index.d.ts",
|
||||
"dependencies": {
|
||||
"@eslint/js": "9.5.0",
|
||||
"eslint": "9.5.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"globals": "15.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@revi/prettier-config": "../prettier-config",
|
||||
"@types/eslint": "8.56.10",
|
||||
"@types/eslint__js": "8.42.3",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"prettier": "3.3.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"eslint": "9.5.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "prettier --check"
|
||||
"tsc": "tsc eslint.config.js --declaration --allowJs --emitDeclarationOnly --esModuleInterop --outdir types"
|
||||
},
|
||||
"funding": "https://github.com/sponsors/revi",
|
||||
"homepage": "https://github.com/revi/sandbox/tree/master/npm/eslint-config",
|
||||
|
|
1134
npm/eslint-config/types/eslint.config.d.ts
vendored
Normal file
1134
npm/eslint-config/types/eslint.config.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load diff
47
package-lock.json
generated
47
package-lock.json
generated
|
@ -546,9 +546,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@typescript-eslint/typescript-estree/node_modules/minimatch": {
|
||||
"version": "9.0.4",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
|
||||
"integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
@ -1248,7 +1248,6 @@
|
|||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
||||
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
||||
"license": "MIT",
|
||||
"peer": true,
|
||||
"bin": {
|
||||
"eslint-config-prettier": "bin/cli.js"
|
||||
},
|
||||
|
@ -1763,9 +1762,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/eslint-plugin-n/node_modules/minimatch": {
|
||||
"version": "9.0.4",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
|
||||
"integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
|
@ -3841,10 +3840,17 @@
|
|||
},
|
||||
"npm/eslint-config": {
|
||||
"name": "@revi/eslint-config",
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.5",
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"@eslint/js": "9.5.0",
|
||||
"eslint": "9.5.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"globals": "15.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@revi/prettier-config": "../prettier-config",
|
||||
"@types/eslint": "8.56.10",
|
||||
"@types/eslint__js": "8.42.3",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"prettier": "3.3.2"
|
||||
|
@ -3853,10 +3859,9 @@
|
|||
"url": "https://github.com/sponsors/revi"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@eslint/js": "^8.0.0 || ^9.0.0",
|
||||
"eslint": "^8.0.0 || ^9.0.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"globals": "15.6.0"
|
||||
"@eslint/js": "9.5.0",
|
||||
"eslint": "9.5.0",
|
||||
"eslint-config-prettier": "9.1.0"
|
||||
}
|
||||
},
|
||||
"npm/prettier-config": {
|
||||
|
@ -4120,9 +4125,14 @@
|
|||
"@revi/eslint-config": {
|
||||
"version": "file:npm/eslint-config",
|
||||
"requires": {
|
||||
"@eslint/js": "9.5.0",
|
||||
"@revi/prettier-config": "../prettier-config",
|
||||
"@types/eslint": "8.56.10",
|
||||
"@types/eslint__js": "8.42.3",
|
||||
"@types/eslint-config-prettier": "6.11.3",
|
||||
"eslint": "9.5.0",
|
||||
"eslint-config-prettier": "9.1.0",
|
||||
"globals": "15.6.0",
|
||||
"prettier": "3.3.2"
|
||||
}
|
||||
},
|
||||
|
@ -4239,9 +4249,9 @@
|
|||
}
|
||||
},
|
||||
"minimatch": {
|
||||
"version": "9.0.4",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
|
||||
"integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
|
@ -4712,7 +4722,6 @@
|
|||
"version": "9.1.0",
|
||||
"resolved": "https://registry.npmjs.org/eslint-config-prettier/-/eslint-config-prettier-9.1.0.tgz",
|
||||
"integrity": "sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==",
|
||||
"peer": true,
|
||||
"requires": {}
|
||||
},
|
||||
"eslint-config-wikimedia": {
|
||||
|
@ -5045,9 +5054,9 @@
|
|||
}
|
||||
},
|
||||
"minimatch": {
|
||||
"version": "9.0.4",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.4.tgz",
|
||||
"integrity": "sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw==",
|
||||
"version": "9.0.5",
|
||||
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",
|
||||
"integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"brace-expansion": "^2.0.1"
|
||||
|
|
Loading…
Reference in a new issue