@jsse/eslint-config 0.2.24 → 0.2.25
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/dist/cli.cjs +1 -1
- package/dist/cli.js +1 -1
- package/dist/esm/configs/react.js +0 -1
- package/dist/esm/plugins.d.ts +744 -2
- package/dist/index.cjs +44 -10
- package/dist/index.d.cts +896 -98
- package/dist/index.d.ts +896 -98
- package/dist/index.js +44 -10
- package/package.json +19 -19
package/dist/index.js
CHANGED
|
@@ -9879,7 +9879,7 @@ function resolvePackage(name, options = {}) {
|
|
|
9879
9879
|
}
|
|
9880
9880
|
}
|
|
9881
9881
|
|
|
9882
|
-
// node_modules/.pnpm/neverthrow@8.
|
|
9882
|
+
// node_modules/.pnpm/neverthrow@8.1.1/node_modules/neverthrow/dist/index.es.js
|
|
9883
9883
|
var defaultErrorConfig = {
|
|
9884
9884
|
withStackTrace: false
|
|
9885
9885
|
};
|
|
@@ -9916,7 +9916,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
|
|
|
9916
9916
|
function step(result) {
|
|
9917
9917
|
result.done ? resolve2(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
9918
9918
|
}
|
|
9919
|
-
step((generator = generator.apply(thisArg, [])).next());
|
|
9919
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9920
9920
|
});
|
|
9921
9921
|
}
|
|
9922
9922
|
function __values(o) {
|
|
@@ -9936,16 +9936,24 @@ function __await(v) {
|
|
|
9936
9936
|
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
9937
9937
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
9938
9938
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
9939
|
-
return i =
|
|
9939
|
+
return i = Object.create((typeof AsyncIterator === "function" ? AsyncIterator : Object).prototype), verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function() {
|
|
9940
9940
|
return this;
|
|
9941
9941
|
}, i;
|
|
9942
|
-
function
|
|
9943
|
-
|
|
9944
|
-
return
|
|
9945
|
-
q.push([n2, v, a, b]) > 1 || resume(n2, v);
|
|
9946
|
-
});
|
|
9942
|
+
function awaitReturn(f) {
|
|
9943
|
+
return function(v) {
|
|
9944
|
+
return Promise.resolve(v).then(f, reject);
|
|
9947
9945
|
};
|
|
9948
9946
|
}
|
|
9947
|
+
function verb(n2, f) {
|
|
9948
|
+
if (g[n2]) {
|
|
9949
|
+
i[n2] = function(v) {
|
|
9950
|
+
return new Promise(function(a, b) {
|
|
9951
|
+
q.push([n2, v, a, b]) > 1 || resume(n2, v);
|
|
9952
|
+
});
|
|
9953
|
+
};
|
|
9954
|
+
if (f) i[n2] = f(i[n2]);
|
|
9955
|
+
}
|
|
9956
|
+
}
|
|
9949
9957
|
function resume(n2, v) {
|
|
9950
9958
|
try {
|
|
9951
9959
|
step(g[n2](v));
|
|
@@ -9975,7 +9983,7 @@ function __asyncDelegator(o) {
|
|
|
9975
9983
|
}, i;
|
|
9976
9984
|
function verb(n2, f) {
|
|
9977
9985
|
i[n2] = o[n2] ? function(v) {
|
|
9978
|
-
return (p = !p) ? { value: __await(o[n2](v)), done:
|
|
9986
|
+
return (p = !p) ? { value: __await(o[n2](v)), done: false } : f ? f(v) : v;
|
|
9979
9987
|
} : f;
|
|
9980
9988
|
}
|
|
9981
9989
|
}
|
|
@@ -10094,6 +10102,15 @@ var ResultAsync = class _ResultAsync {
|
|
|
10094
10102
|
return this._promise.then((res) => res.unwrapOr(t));
|
|
10095
10103
|
}
|
|
10096
10104
|
/**
|
|
10105
|
+
* @deprecated will be removed in 9.0.0.
|
|
10106
|
+
*
|
|
10107
|
+
* You can use `safeTry` without this method.
|
|
10108
|
+
* @example
|
|
10109
|
+
* ```typescript
|
|
10110
|
+
* safeTry(async function* () {
|
|
10111
|
+
* const okValue = yield* yourResult
|
|
10112
|
+
* })
|
|
10113
|
+
* ```
|
|
10097
10114
|
* Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.
|
|
10098
10115
|
*/
|
|
10099
10116
|
safeUnwrap() {
|
|
@@ -10105,6 +10122,15 @@ var ResultAsync = class _ResultAsync {
|
|
|
10105
10122
|
then(successCallback, failureCallback) {
|
|
10106
10123
|
return this._promise.then(successCallback, failureCallback);
|
|
10107
10124
|
}
|
|
10125
|
+
[Symbol.asyncIterator]() {
|
|
10126
|
+
return __asyncGenerator(this, arguments, function* _a() {
|
|
10127
|
+
const result = yield __await(this._promise);
|
|
10128
|
+
if (result.isErr()) {
|
|
10129
|
+
yield yield __await(errAsync(result.error));
|
|
10130
|
+
}
|
|
10131
|
+
return yield __await(result.value);
|
|
10132
|
+
});
|
|
10133
|
+
}
|
|
10108
10134
|
};
|
|
10109
10135
|
var errAsync = (err2) => new ResultAsync(Promise.resolve(new Err(err2)));
|
|
10110
10136
|
var fromPromise = ResultAsync.fromPromise;
|
|
@@ -10229,6 +10255,10 @@ var Ok = class {
|
|
|
10229
10255
|
_unsafeUnwrapErr(config) {
|
|
10230
10256
|
throw createNeverThrowError("Called `_unsafeUnwrapErr` on an Ok", this, config);
|
|
10231
10257
|
}
|
|
10258
|
+
// eslint-disable-next-line @typescript-eslint/no-this-alias, require-yield
|
|
10259
|
+
*[Symbol.iterator]() {
|
|
10260
|
+
return this.value;
|
|
10261
|
+
}
|
|
10232
10262
|
};
|
|
10233
10263
|
var Err = class {
|
|
10234
10264
|
constructor(error) {
|
|
@@ -10291,6 +10321,11 @@ var Err = class {
|
|
|
10291
10321
|
_unsafeUnwrapErr(_) {
|
|
10292
10322
|
return this.error;
|
|
10293
10323
|
}
|
|
10324
|
+
*[Symbol.iterator]() {
|
|
10325
|
+
const self = this;
|
|
10326
|
+
yield self;
|
|
10327
|
+
return self;
|
|
10328
|
+
}
|
|
10294
10329
|
};
|
|
10295
10330
|
var fromThrowable = Result.fromThrowable;
|
|
10296
10331
|
|
|
@@ -12198,7 +12233,6 @@ var react = async (options) => {
|
|
|
12198
12233
|
rules: {
|
|
12199
12234
|
...reactRecomendedRules(),
|
|
12200
12235
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
|
|
12201
|
-
// @ts-expect-error index access
|
|
12202
12236
|
...pluginReact.configs["jsx-runtime"].rules,
|
|
12203
12237
|
...reactRules()
|
|
12204
12238
|
},
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsse/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.25",
|
|
5
5
|
"description": "@jsse/eslint-config ~ WYSIWYG",
|
|
6
6
|
"author": "jessekrubin <jessekrubin@gmail.com> (https://github.com/jessekrubin/)",
|
|
7
7
|
"license": "MIT",
|
|
@@ -65,35 +65,35 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.
|
|
69
|
-
"@eslint/compat": "^1.2.
|
|
68
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
|
69
|
+
"@eslint/compat": "^1.2.2",
|
|
70
70
|
"@eslint/js": "~9.13.0",
|
|
71
71
|
"@eslint/markdown": "^6.2.1",
|
|
72
|
-
"@stylistic/eslint-plugin": "2.
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
74
|
-
"@typescript-eslint/parser": "^8.
|
|
72
|
+
"@stylistic/eslint-plugin": "2.10.0",
|
|
73
|
+
"@typescript-eslint/eslint-plugin": "^8.12.2",
|
|
74
|
+
"@typescript-eslint/parser": "^8.12.2",
|
|
75
75
|
"@vitest/eslint-plugin": "^1.1.7",
|
|
76
76
|
"eslint-config-flat-gitignore": "^0.3.0",
|
|
77
77
|
"eslint-define-config": "^2.1.0",
|
|
78
78
|
"eslint-merge-processors": "^0.1.0",
|
|
79
79
|
"eslint-plugin-antfu": "^2.7.0",
|
|
80
|
-
"eslint-plugin-import-x": "^4.
|
|
80
|
+
"eslint-plugin-import-x": "^4.4.0",
|
|
81
81
|
"eslint-plugin-jsdoc": "^50.4.3",
|
|
82
82
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
83
|
-
"eslint-plugin-n": "^17.
|
|
83
|
+
"eslint-plugin-n": "^17.12.0",
|
|
84
84
|
"eslint-plugin-no-only-tests": "^3.3.0",
|
|
85
85
|
"eslint-plugin-perfectionist": "^3.9.1",
|
|
86
|
-
"eslint-plugin-react": "~7.37.
|
|
86
|
+
"eslint-plugin-react": "~7.37.2",
|
|
87
87
|
"eslint-plugin-react-hooks": "~5.0.0",
|
|
88
|
-
"eslint-plugin-react-refresh": "~0.4.
|
|
88
|
+
"eslint-plugin-react-refresh": "~0.4.14",
|
|
89
89
|
"eslint-plugin-toml": "^0.11.1",
|
|
90
90
|
"eslint-plugin-tsdoc": "^0.3.0",
|
|
91
91
|
"eslint-plugin-unicorn": "^56.0.0",
|
|
92
92
|
"eslint-plugin-unused-imports": "^4.1.4",
|
|
93
|
-
"eslint-plugin-yml": "^1.
|
|
93
|
+
"eslint-plugin-yml": "^1.15.0",
|
|
94
94
|
"jsonc-eslint-parser": "^2.4.0",
|
|
95
95
|
"toml-eslint-parser": "^0.10.0",
|
|
96
|
-
"typescript-eslint": "^8.
|
|
96
|
+
"typescript-eslint": "^8.12.2",
|
|
97
97
|
"yaml-eslint-parser": "^1.2.3"
|
|
98
98
|
},
|
|
99
99
|
"devDependencies": {
|
|
@@ -101,31 +101,31 @@
|
|
|
101
101
|
"@changesets/cli": "^2.27.9",
|
|
102
102
|
"@jsse/prettier-config": "^0.1.0",
|
|
103
103
|
"@jsse/tsconfig": "^0.2.2",
|
|
104
|
-
"@stylistic/eslint-plugin-jsx": "^2.
|
|
104
|
+
"@stylistic/eslint-plugin-jsx": "^2.10.0",
|
|
105
105
|
"@types/eslint": "^9.6.1",
|
|
106
106
|
"@types/eslint__js": "~8.42.3",
|
|
107
107
|
"@types/fs-extra": "^11.0.4",
|
|
108
|
-
"@types/node": "^22.
|
|
108
|
+
"@types/node": "^22.8.5",
|
|
109
109
|
"cac": "^6.7.14",
|
|
110
110
|
"eslint": "^9.13.0",
|
|
111
111
|
"eslint-flat-config-utils": "^0.4.0",
|
|
112
112
|
"eslint-plugin-tailwindcss": "^3.17.5",
|
|
113
113
|
"eslint-typegen": "^0.3.2",
|
|
114
|
-
"execa": "~9.
|
|
114
|
+
"execa": "~9.5.1",
|
|
115
115
|
"fast-glob": "^3.3.2",
|
|
116
116
|
"fs-extra": "^11.2.0",
|
|
117
117
|
"globals": "^15.11.0",
|
|
118
118
|
"local-pkg": "^0.5.0",
|
|
119
|
-
"neverthrow": "^8.
|
|
119
|
+
"neverthrow": "^8.1.1",
|
|
120
120
|
"picocolors": "^1.1.1",
|
|
121
121
|
"prettier": "^3.3.3",
|
|
122
122
|
"react": "~18.3.1",
|
|
123
123
|
"rimraf": "^6.0.1",
|
|
124
124
|
"tailwindcss": "^3.4.14",
|
|
125
|
-
"tsup": "^8.3.
|
|
126
|
-
"tsx": "^4.19.
|
|
125
|
+
"tsup": "^8.3.5",
|
|
126
|
+
"tsx": "^4.19.2",
|
|
127
127
|
"typescript": "5.6.3",
|
|
128
|
-
"vitest": "^2.1.
|
|
128
|
+
"vitest": "^2.1.4"
|
|
129
129
|
},
|
|
130
130
|
"prettier": "@jsse/prettier-config",
|
|
131
131
|
"scripts": {
|