@fullstacksjs/eslint-config 11.7.2 → 11.8.0
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/cjs/index.js +2 -1
- package/package.json +3 -5
- package/src/index.mjs +2 -1
package/cjs/index.js
CHANGED
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.init = init;
|
|
7
7
|
var _deepmerge = _interopRequireDefault(require("deepmerge"));
|
|
8
|
+
var _config = require("eslint/config");
|
|
8
9
|
var _localPkg = require("local-pkg");
|
|
9
10
|
var _base = _interopRequireDefault(require("./modules/base.js"));
|
|
10
11
|
var _cypress = _interopRequireDefault(require("./modules/cypress.js"));
|
|
@@ -110,5 +111,5 @@ function init(initOptions = {}, ...extend) {
|
|
|
110
111
|
if (enablePrettier) rules.push((0, _prettier.default)(options));
|
|
111
112
|
if (Object.keys(eslintOptions).length > 0) rules.push(eslintOptions);
|
|
112
113
|
if (extend) Array.prototype.push.apply(rules, extend);
|
|
113
|
-
return rules;
|
|
114
|
+
return (0, _config.defineConfig)(rules);
|
|
114
115
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@next/eslint-plugin-next": "15.1.7",
|
|
39
39
|
"@stylistic/eslint-plugin": "4.1.0",
|
|
40
40
|
"deepmerge": "4.3.1",
|
|
41
|
-
"eslint-import-resolver-typescript": "
|
|
41
|
+
"eslint-import-resolver-typescript": "4.2.2",
|
|
42
42
|
"eslint-plugin-cypress": "4.1.0",
|
|
43
43
|
"eslint-plugin-import-x": "4.6.1",
|
|
44
44
|
"eslint-plugin-jest": "28.11.0",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"eslint-plugin-vitest": "0.5.4",
|
|
56
56
|
"globals": "16.0.0",
|
|
57
57
|
"local-pkg": "1.1.1",
|
|
58
|
-
"typescript-eslint": "8.
|
|
58
|
+
"typescript-eslint": "8.27.0"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@eslint/eslintrc": "3.3.0",
|
|
@@ -66,12 +66,10 @@
|
|
|
66
66
|
"@types/eslint": "9.6.1",
|
|
67
67
|
"cspell": "8.17.5",
|
|
68
68
|
"eslint": "9.22.0",
|
|
69
|
-
"eslint-find-rules": "5.0.0",
|
|
70
69
|
"husky": "9.1.7",
|
|
71
70
|
"jest": "29.7.0",
|
|
72
71
|
"lint-staged": "15.5.0",
|
|
73
72
|
"np": "10.2.0",
|
|
74
|
-
"npm-run-all": "4.1.5",
|
|
75
73
|
"pinst": "3.0.0",
|
|
76
74
|
"prettier": "3.5.3",
|
|
77
75
|
"semantic-release": "24.2.3",
|
package/src/index.mjs
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import merge from 'deepmerge';
|
|
2
|
+
import { defineConfig } from 'eslint/config';
|
|
2
3
|
import { isPackageExists } from 'local-pkg';
|
|
3
4
|
|
|
4
5
|
import base from './modules/base.mjs';
|
|
@@ -109,5 +110,5 @@ export function init(initOptions = {}, ...extend) {
|
|
|
109
110
|
if (Object.keys(eslintOptions).length > 0) rules.push(eslintOptions);
|
|
110
111
|
if (extend) Array.prototype.push.apply(rules, extend);
|
|
111
112
|
|
|
112
|
-
return rules;
|
|
113
|
+
return defineConfig(rules);
|
|
113
114
|
}
|