@apitree.cz/eslint-config 0.6.13 → 0.7.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.
@@ -1 +1 @@
1
- export declare const config: import("@eslint/core", { with: { "resolution-mode": "require" } }).ConfigObject<import("@eslint/core", { with: { "resolution-mode": "require" } }).RulesConfig>[];
1
+ export declare const config: import("eslint/config").Config[];
@@ -13,5 +13,6 @@ export const typescript = {
13
13
  { allowBoolean: true, allowNumber: true, allowNullish: true },
14
14
  ],
15
15
  '@typescript-eslint/sort-type-constituents': 'error', // Sort union or intersection type members alphabetically
16
+ '@typescript-eslint/unified-signatures': 'off', // FIXME: https://github.com/typescript-eslint/typescript-eslint/issues/11732
16
17
  };
17
18
  //# sourceMappingURL=typescript.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../src/base/rules/typescript.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,+CAA+C,EAAE,OAAO,EAAE,8CAA8C;IACxG,gDAAgD,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,2BAA2B;IACrG,4CAA4C,EAAE,OAAO,EAAE,2CAA2C;IAClG,4CAA4C,EAAE,OAAO,EAAE,mDAAmD;IAC1G,uCAAuC,EAAE,OAAO,EAAE,4BAA4B;IAC9E,kDAAkD,EAAE,OAAO,EAAE,iDAAiD;IAC9G,mCAAmC,EAAE,KAAK,EAAE,0CAA0C;IACtF,yCAAyC,EAAE,OAAO,EAAE,uDAAuD;IAC3G,wGAAwG;IACxG,kDAAkD,EAAE;QAClD,OAAO;QACP,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;KAC9D;IACD,2CAA2C,EAAE,OAAO,EAAE,yDAAyD;CAChH,CAAC"}
1
+ {"version":3,"file":"typescript.js","sourceRoot":"","sources":["../../../src/base/rules/typescript.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,UAAU,GAAuB;IAC5C,+CAA+C,EAAE,OAAO,EAAE,8CAA8C;IACxG,gDAAgD,EAAE,CAAC,OAAO,EAAE,WAAW,CAAC,EAAE,2BAA2B;IACrG,4CAA4C,EAAE,OAAO,EAAE,2CAA2C;IAClG,4CAA4C,EAAE,OAAO,EAAE,mDAAmD;IAC1G,uCAAuC,EAAE,OAAO,EAAE,4BAA4B;IAC9E,kDAAkD,EAAE,OAAO,EAAE,iDAAiD;IAC9G,mCAAmC,EAAE,KAAK,EAAE,0CAA0C;IACtF,yCAAyC,EAAE,OAAO,EAAE,uDAAuD;IAC3G,wGAAwG;IACxG,kDAAkD,EAAE;QAClD,OAAO;QACP,EAAE,YAAY,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,YAAY,EAAE,IAAI,EAAE;KAC9D;IACD,2CAA2C,EAAE,OAAO,EAAE,yDAAyD;IAC/G,uCAAuC,EAAE,KAAK,EAAE,6EAA6E;CAC9H,CAAC"}
@@ -1,52 +1,2 @@
1
- export declare const config: ({
2
- name: string;
3
- plugins: {
4
- readonly storybook: any;
5
- };
6
- files?: undefined;
7
- rules?: undefined;
8
- } | {
9
- name: string;
10
- files: string[];
11
- rules: {
12
- readonly "react-hooks/rules-of-hooks": "off";
13
- readonly "import/no-anonymous-default-export": "off";
14
- readonly "storybook/await-interactions": "error";
15
- readonly "storybook/context-in-play-function": "error";
16
- readonly "storybook/default-exports": "error";
17
- readonly "storybook/hierarchy-separator": "warn";
18
- readonly "storybook/no-redundant-story-name": "warn";
19
- readonly "storybook/no-renderer-packages": "error";
20
- readonly "storybook/prefer-pascal-case": "warn";
21
- readonly "storybook/story-exports": "error";
22
- readonly "storybook/use-storybook-expect": "error";
23
- readonly "storybook/use-storybook-testing-library": "error";
24
- readonly "storybook/no-uninstalled-addons"?: undefined;
25
- };
26
- plugins?: undefined;
27
- } | {
28
- name: string;
29
- files: string[];
30
- rules: {
31
- readonly "storybook/no-uninstalled-addons": "error";
32
- readonly "react-hooks/rules-of-hooks"?: undefined;
33
- readonly "import/no-anonymous-default-export"?: undefined;
34
- readonly "storybook/await-interactions"?: undefined;
35
- readonly "storybook/context-in-play-function"?: undefined;
36
- readonly "storybook/default-exports"?: undefined;
37
- readonly "storybook/hierarchy-separator"?: undefined;
38
- readonly "storybook/no-redundant-story-name"?: undefined;
39
- readonly "storybook/no-renderer-packages"?: undefined;
40
- readonly "storybook/prefer-pascal-case"?: undefined;
41
- readonly "storybook/story-exports"?: undefined;
42
- readonly "storybook/use-storybook-expect"?: undefined;
43
- readonly "storybook/use-storybook-testing-library"?: undefined;
44
- };
45
- plugins?: undefined;
46
- } | {
47
- files: string[];
48
- rules: {
49
- 'react/jsx-props-no-spreading': "off";
50
- 'unicorn/prefer-module': "off";
51
- };
52
- })[];
1
+ import type { Linter } from 'eslint';
2
+ export declare const config: Linter.Config[];
@@ -1,9 +1,6 @@
1
- import storybook from 'eslint-plugin-storybook';
2
- function esModuleInterop(cjs) {
3
- return cjs;
4
- }
1
+ import { configs } from 'eslint-plugin-storybook';
5
2
  export const config = [
6
- ...esModuleInterop(storybook).configs['flat/recommended'],
3
+ configs['flat/recommended'],
7
4
  {
8
5
  files: ['**/.storybook/**/*', '**/storybook/**/*'],
9
6
  rules: {
@@ -1 +1 @@
1
- {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/storybook/config.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,MAAM,yBAAyB,CAAC;AAEhD,SAAS,eAAe,CAAsC,GAAW;IACvE,OAAO,GAAwB,CAAC;AAClC,CAAC;AAED,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,kBAAkB,CAAC;IACzD;QACE,KAAK,EAAE,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;QAClD,KAAK,EAAE;YACL,8BAA8B,EAAE,KAAK,EAAE,yCAAyC;YAChF,uBAAuB,EAAE,KAAK,EAAE,wDAAwD;SACzF;KACsB;CAC1B,CAAC"}
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../../src/storybook/config.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAC;AAElD,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,CAAC,kBAAkB,CAAC;IAC3B;QACE,KAAK,EAAE,CAAC,oBAAoB,EAAE,mBAAmB,CAAC;QAClD,KAAK,EAAE;YACL,8BAA8B,EAAE,KAAK,EAAE,yCAAyC;YAChF,uBAAuB,EAAE,KAAK,EAAE,wDAAwD;SACzF;KACF;CACiB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apitree.cz/eslint-config",
3
- "version": "0.6.13",
3
+ "version": "0.7.0",
4
4
  "description": "ESLint configuration for ApiTree projects.",
5
5
  "keywords": [
6
6
  "apitree",
@@ -45,14 +45,14 @@
45
45
  "dist"
46
46
  ],
47
47
  "dependencies": {
48
- "@eslint/core": "^0.16.0 ",
48
+ "@eslint/core": "^0.17.0",
49
49
  "@eslint/eslintrc": "^3.3.1",
50
- "@eslint/js": "9.37.0",
50
+ "@eslint/js": "9.39.0",
51
51
  "@next/eslint-plugin-next": "^16.0.1",
52
52
  "@typescript-eslint/parser": "^8.46.0",
53
53
  "@vitest/eslint-plugin": "^1.3.26",
54
54
  "eslint-config-prettier": "^10.1.8",
55
- "eslint-config-turbo": "^2.5.5",
55
+ "eslint-config-turbo": "^2.6.0",
56
56
  "eslint-import-resolver-typescript": "^4.4.4",
57
57
  "eslint-plugin-formatjs": "^5.4.0",
58
58
  "eslint-plugin-import": "^2.32.0",
@@ -61,26 +61,26 @@
61
61
  "eslint-plugin-mdx": "^3.6.2",
62
62
  "eslint-plugin-react": "^7.37.5",
63
63
  "eslint-plugin-react-hooks": "^7.0.1",
64
- "eslint-plugin-storybook": "^9.1.2",
64
+ "eslint-plugin-storybook": "^10.0.2",
65
65
  "eslint-plugin-testing-library": "^7.12.0",
66
- "eslint-plugin-turbo": "^2.5.5",
67
- "eslint-plugin-unicorn": "^61.0.0",
66
+ "eslint-plugin-turbo": "^2.6.0",
67
+ "eslint-plugin-unicorn": "^62.0.0",
68
68
  "eslint-plugin-unused-imports": "^4.1.4",
69
- "globals": "^16.2.0",
69
+ "globals": "^16.5.0",
70
70
  "typescript-eslint": "^8.46.0"
71
71
  },
72
72
  "devDependencies": {
73
- "eslint": "9.37.0",
73
+ "eslint": "^9.39.0",
74
74
  "react": "^19.1.1",
75
- "storybook": "^9.1.2",
75
+ "storybook": "^10.0.2",
76
76
  "typescript": "^5.8.3",
77
- "vitest": "^4.0.5",
78
- "@apitree.cz/vitest-config": "0.7.12"
77
+ "vitest": "^4.0.6",
78
+ "@apitree.cz/vitest-config": "0.8.0"
79
79
  },
80
80
  "peerDependencies": {
81
- "eslint": "9.37.0",
81
+ "eslint": "^9.39.0",
82
82
  "react": "^19.0.0",
83
- "storybook": "^9.0.5"
83
+ "storybook": "^10.0.2"
84
84
  },
85
85
  "peerDependenciesMeta": {
86
86
  "react": {