@fullstacksjs/eslint-config 11.7.1 → 11.7.3

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 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
  }
@@ -4,14 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
 
7
+ var _config = require("eslint/config");
7
8
  var _globs = require("../utils/globs.js");
8
9
  /**
9
10
  * @param { import('../option').Options } options
10
11
  * @return { import('eslint').Linter.Config }
11
12
  */
12
13
  function ignores(options = {}) {
13
- return {
14
- ignores: [..._globs.ignoreGlobs, ...(options.ignores ?? [])]
15
- };
14
+ return (0, _config.globalIgnores)([..._globs.ignoreGlobs, ...options.ignores]);
16
15
  }
17
16
  module.exports = ignores;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fullstacksjs/eslint-config",
3
- "version": "11.7.1",
3
+ "version": "11.7.3",
4
4
  "license": "MIT",
5
5
  "author": "fullstacks <fullstacksjs@gmail.com>",
6
6
  "description": "fullstacks eslint config",
@@ -54,28 +54,28 @@
54
54
  "eslint-plugin-tailwindcss": "3.18.0",
55
55
  "eslint-plugin-vitest": "0.5.4",
56
56
  "globals": "16.0.0",
57
- "local-pkg": "1.0.0",
57
+ "local-pkg": "1.1.1",
58
58
  "typescript-eslint": "8.25.0"
59
59
  },
60
60
  "devDependencies": {
61
61
  "@eslint/eslintrc": "3.3.0",
62
- "@eslint/js": "9.21.0",
62
+ "@eslint/js": "9.22.0",
63
63
  "@semantic-release/github": "11.0.1",
64
64
  "@semantic-release/npm": "12.0.1",
65
65
  "@semantic-release/release-notes-generator": "14.0.3",
66
66
  "@types/eslint": "9.6.1",
67
67
  "cspell": "8.17.5",
68
- "eslint": "9.21.0",
68
+ "eslint": "9.22.0",
69
69
  "eslint-find-rules": "5.0.0",
70
70
  "husky": "9.1.7",
71
71
  "jest": "29.7.0",
72
- "lint-staged": "15.4.3",
72
+ "lint-staged": "15.5.0",
73
73
  "np": "10.2.0",
74
74
  "npm-run-all": "4.1.5",
75
75
  "pinst": "3.0.0",
76
- "prettier": "3.5.2",
76
+ "prettier": "3.5.3",
77
77
  "semantic-release": "24.2.3",
78
- "typescript": "5.7.3",
78
+ "typescript": "5.8.2",
79
79
  "unbuild": "3.5.0"
80
80
  },
81
81
  "peerDependencies": {
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
  }
@@ -1,12 +1,12 @@
1
+ import { globalIgnores } from 'eslint/config';
2
+
1
3
  import { ignoreGlobs } from '../utils/globs.mjs';
2
4
  /**
3
5
  * @param { import('../option').Options } options
4
6
  * @return { import('eslint').Linter.Config }
5
7
  */
6
8
  function ignores(options = {}) {
7
- return {
8
- ignores: [...ignoreGlobs, ...(options.ignores ?? [])],
9
- };
9
+ return globalIgnores([...ignoreGlobs, ...options.ignores]);
10
10
  }
11
11
 
12
12
  export default ignores;