@ntnyq/eslint-config 4.3.0 → 5.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -0
- package/dist/index.mjs +2 -7
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -7,6 +7,11 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/@ntnyq/eslint-config)
|
|
8
8
|
[](https://github.com/ntnyq/eslint-config/blob/main/LICENSE)
|
|
9
9
|
|
|
10
|
+
## Requirement
|
|
11
|
+
|
|
12
|
+
- NodeJS v20.11.0+
|
|
13
|
+
- ESLint v9.20.0+
|
|
14
|
+
|
|
10
15
|
## Features
|
|
11
16
|
|
|
12
17
|
- Designed to work alongside with [Prettier](https://prettier.io) and [TypeScript](https://www.typescriptlang.org/)
|
package/dist/index.mjs
CHANGED
|
@@ -64,7 +64,6 @@ export { default as processorVueBlocks } from 'eslint-processor-vue-blocks';
|
|
|
64
64
|
import { resolve } from 'node:path';
|
|
65
65
|
import process from 'node:process';
|
|
66
66
|
import { isPackageExists } from 'local-pkg';
|
|
67
|
-
import { fileURLToPath } from 'node:url';
|
|
68
67
|
import { defineCommand, builtinCommands } from 'eslint-plugin-command/commands';
|
|
69
68
|
import createCommandConfig from 'eslint-plugin-command/config';
|
|
70
69
|
import { createTypeScriptImportResolver } from 'eslint-import-resolver-typescript';
|
|
@@ -1305,11 +1304,10 @@ function isInGitHooksOrRunBySpecifyPackages() {
|
|
|
1305
1304
|
));
|
|
1306
1305
|
}
|
|
1307
1306
|
|
|
1308
|
-
const scopeUrl = fileURLToPath(new URL(".", import.meta.url));
|
|
1309
1307
|
const isCwdInScope = isPackageExists("@ntnyq/eslint-config");
|
|
1310
1308
|
function isPackageInScope(name) {
|
|
1311
1309
|
return isPackageExists(name, {
|
|
1312
|
-
paths: [
|
|
1310
|
+
paths: [import.meta.dirname]
|
|
1313
1311
|
});
|
|
1314
1312
|
}
|
|
1315
1313
|
async function ensurePackages(packages) {
|
|
@@ -2188,10 +2186,6 @@ const disabledRules = {
|
|
|
2188
2186
|
* @see https://caniuse.com/?search=globalThis
|
|
2189
2187
|
*/
|
|
2190
2188
|
"unicorn/prefer-global-this": "off",
|
|
2191
|
-
/**
|
|
2192
|
-
* Required node v20.11
|
|
2193
|
-
*/
|
|
2194
|
-
"unicorn/prefer-import-meta-properties": "off",
|
|
2195
2189
|
"unicorn/prefer-top-level-await": "off"
|
|
2196
2190
|
};
|
|
2197
2191
|
const configUnicorn = (options = {}) => [
|
|
@@ -2216,6 +2210,7 @@ const configUnicorn = (options = {}) => [
|
|
|
2216
2210
|
"unicorn/no-static-only-class": "error",
|
|
2217
2211
|
"unicorn/no-typeof-undefined": "error",
|
|
2218
2212
|
"unicorn/no-unnecessary-await": "error",
|
|
2213
|
+
"unicorn/prefer-import-meta-properties": "error",
|
|
2219
2214
|
"unicorn/prefer-includes": "error",
|
|
2220
2215
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
2221
2216
|
"unicorn/prefer-math-min-max": "error",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ntnyq/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "5.0.0-beta.1",
|
|
5
5
|
"description": "An opinionated ESLint config preset of ntnyq",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"eslint",
|
|
@@ -33,7 +33,8 @@
|
|
|
33
33
|
"dist"
|
|
34
34
|
],
|
|
35
35
|
"publishConfig": {
|
|
36
|
-
"access": "public"
|
|
36
|
+
"access": "public",
|
|
37
|
+
"tag": "next"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"eslint": "^9.20.0",
|
|
@@ -115,7 +116,7 @@
|
|
|
115
116
|
"vitest": "^3.1.3"
|
|
116
117
|
},
|
|
117
118
|
"engines": {
|
|
118
|
-
"node": ">=
|
|
119
|
+
"node": ">=20.11.0"
|
|
119
120
|
},
|
|
120
121
|
"nano-staged": {
|
|
121
122
|
"*.{js,ts,mjs,cjs,md,vue,svg,yml,yaml,toml,json}": "eslint --fix",
|
|
@@ -133,7 +134,7 @@
|
|
|
133
134
|
"lint": "eslint --cache",
|
|
134
135
|
"release": "run-s release:check release:version release:publish",
|
|
135
136
|
"release:check": "run-s build lint test typecheck",
|
|
136
|
-
"release:publish": "pnpm publish",
|
|
137
|
+
"release:publish": "pnpm publish --tag next",
|
|
137
138
|
"release:version": "bumpp",
|
|
138
139
|
"test": "vitest",
|
|
139
140
|
"typecheck": "tsc --noEmit"
|