@pengzhanbo/eslint-config-solid 1.4.0 → 1.5.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/dist/index.cjs CHANGED
@@ -38,6 +38,9 @@ __export(src_exports, {
38
38
  module.exports = __toCommonJS(src_exports);
39
39
 
40
40
  // src/factory.ts
41
+ var import_eslint_config3 = require("@pengzhanbo/eslint-config");
42
+
43
+ // src/preset.ts
41
44
  var import_eslint_config2 = require("@pengzhanbo/eslint-config");
42
45
 
43
46
  // src/solid.ts
@@ -81,13 +84,13 @@ async function solid(options = {}) {
81
84
  // src/preset.ts
82
85
  var solidPreset = (options) => {
83
86
  return [solid({
84
- overrides: options.overrides.solid,
87
+ overrides: (0, import_eslint_config2.getOverrides)(options, "solid"),
85
88
  typescript: !!options.typescript
86
89
  })];
87
90
  };
88
91
 
89
92
  // src/factory.ts
90
- var eslintSolidConfig = (0, import_eslint_config2.createConfig)(solidPreset);
93
+ var eslintSolidConfig = (0, import_eslint_config3.createConfig)(solidPreset);
91
94
 
92
95
  // src/index.ts
93
96
  __reExport(src_exports, require("@pengzhanbo/eslint-config"), module.exports);
package/dist/index.d.cts CHANGED
@@ -1,7 +1,12 @@
1
1
  import * as _pengzhanbo_eslint_config from '@pengzhanbo/eslint-config';
2
- import { OptionsHasTypeScript, OptionsOverrides, OptionsStylistic, OptionsFiles, FlatConfigItem, PresetItem } from '@pengzhanbo/eslint-config';
2
+ import { OptionsOverrides, OptionsHasTypeScript, OptionsStylistic, OptionsFiles, FlatConfigItem, PresetItem } from '@pengzhanbo/eslint-config';
3
3
  export * from '@pengzhanbo/eslint-config';
4
4
 
5
+ declare module '@pengzhanbo/eslint-config' {
6
+ interface OptionsFrameworkExtract {
7
+ solid?: OptionsOverrides;
8
+ }
9
+ }
5
10
  declare const eslintSolidConfig: typeof _pengzhanbo_eslint_config.default;
6
11
 
7
12
  declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,12 @@
1
1
  import * as _pengzhanbo_eslint_config from '@pengzhanbo/eslint-config';
2
- import { OptionsHasTypeScript, OptionsOverrides, OptionsStylistic, OptionsFiles, FlatConfigItem, PresetItem } from '@pengzhanbo/eslint-config';
2
+ import { OptionsOverrides, OptionsHasTypeScript, OptionsStylistic, OptionsFiles, FlatConfigItem, PresetItem } from '@pengzhanbo/eslint-config';
3
3
  export * from '@pengzhanbo/eslint-config';
4
4
 
5
+ declare module '@pengzhanbo/eslint-config' {
6
+ interface OptionsFrameworkExtract {
7
+ solid?: OptionsOverrides;
8
+ }
9
+ }
5
10
  declare const eslintSolidConfig: typeof _pengzhanbo_eslint_config.default;
6
11
 
7
12
  declare function solid(options?: OptionsHasTypeScript & OptionsOverrides & OptionsStylistic & OptionsFiles): Promise<FlatConfigItem[]>;
package/dist/index.js CHANGED
@@ -1,6 +1,9 @@
1
1
  // src/factory.ts
2
2
  import { createConfig } from "@pengzhanbo/eslint-config";
3
3
 
4
+ // src/preset.ts
5
+ import { getOverrides } from "@pengzhanbo/eslint-config";
6
+
4
7
  // src/solid.ts
5
8
  import { GLOB_JSX, GLOB_TSX, interopDefault } from "@pengzhanbo/eslint-config";
6
9
  async function solid(options = {}) {
@@ -42,7 +45,7 @@ async function solid(options = {}) {
42
45
  // src/preset.ts
43
46
  var solidPreset = (options) => {
44
47
  return [solid({
45
- overrides: options.overrides.solid,
48
+ overrides: getOverrides(options, "solid"),
46
49
  typescript: !!options.typescript
47
50
  })];
48
51
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pengzhanbo/eslint-config-solid",
3
3
  "type": "module",
4
- "version": "1.4.0",
4
+ "version": "1.5.0",
5
5
  "author": "pengzhanbo <q942450674@outlook.com> (https://github/pengzhanbo/)",
6
6
  "license": "MIT",
7
7
  "homepage": "https://github.com/pengzhanbo/configs#readme",
@@ -46,13 +46,13 @@
46
46
  }
47
47
  },
48
48
  "dependencies": {
49
- "@typescript-eslint/parser": "^6.15.0",
50
- "eslint-plugin-solid": "^0.13.0",
51
- "@pengzhanbo/eslint-config": "1.4.0"
49
+ "@typescript-eslint/parser": "^6.16.0",
50
+ "eslint-plugin-solid": "^0.13.1",
51
+ "@pengzhanbo/eslint-config": "1.5.0"
52
52
  },
53
53
  "devDependencies": {
54
54
  "eslint": "^8.56.0",
55
- "eslint-flat-config-viewer": "^0.1.3",
55
+ "eslint-flat-config-viewer": "^0.1.4",
56
56
  "tsup": "^8.0.1"
57
57
  },
58
58
  "scripts": {