@itcase/lint 1.1.126 → 1.1.128

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/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [1.1.128](https://github.com/ITCase/itcase-lint/compare/v1.1.127...v1.1.128) (2026-10-12)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **eslint:** broaden next.js default export exception globs ([641757d](https://github.com/ITCase/itcase-lint/commit/641757dbf75b630df8fbcc116ef78dc4da3a0c16))
6
+
7
+ ### Dependencies
8
+
9
+ * **other:** bump prettier, stylelint-order and dev dependencies ([835cc40](https://github.com/ITCase/itcase-lint/commit/835cc406e6305ee38fcf9e2a835ea8cc3fa5794e))
10
+
11
+ ## [1.1.127](https://github.com/ITCase/itcase-lint/compare/v1.1.126...v1.1.127) (2026-10-08)
12
+
13
+ ### Features
14
+
15
+ * **eslint:** add next.js app router globs, react version detect and ignores ([955f4f4](https://github.com/ITCase/itcase-lint/commit/955f4f40f2a27e0dc10c954743431a20e35cc05c))
16
+
17
+ ### Bug Fixes
18
+
19
+ * **mobx:** remove obsolete ts-expect-error for eslint-plugin-mobx ([3c51bf9](https://github.com/ITCase/itcase-lint/commit/3c51bf94e18026ab75dc5e9b25b77fdac5b448d5))
20
+
21
+ ### Continuous Integrations
22
+
23
+ * **other:** switch lint-staged config to @itcase/config lint-staged export ([c2c9154](https://github.com/ITCase/itcase-lint/commit/c2c9154433287c14ac80711b30a351b9ba74a9ce))
24
+
25
+ ### Dependencies
26
+
27
+ * **other:** bump eslint, prettier, stylelint and toolchain dependencies ([0d0b486](https://github.com/ITCase/itcase-lint/commit/0d0b486d62a79723b4e0adfab0893da6f9edc357))
28
+
1
29
  ## [1.1.126](https://github.com/ITCase/itcase-lint/compare/v1.1.125...v1.1.126) (2026-09-16)
2
30
 
3
31
  ### Dependencies
@@ -1,6 +1,13 @@
1
1
  declare const _default: ({
2
2
  plugins: {
3
- mobx: any;
3
+ mobx: import("@eslint/core").Plugin & {
4
+ configs: {
5
+ recommended: import("eslint").Linter.LegacyConfig;
6
+ };
7
+ flatConfigs: {
8
+ recommended: import("eslint").Linter.Config;
9
+ };
10
+ };
4
11
  };
5
12
  rules?: undefined;
6
13
  } | {
@@ -1,6 +1,5 @@
1
1
  import eslintMobx from 'eslint-plugin-mobx';
2
2
 
3
- // @ts-expect-error
4
3
  // eslint-disable-next-line import/no-default-export
5
4
  var index = [
6
5
  {
package/dist/eslint.js CHANGED
@@ -92,9 +92,23 @@ const eslintConfig = [
92
92
  import: eslintImport,
93
93
  perfectionist: eslintPerfectionist,
94
94
  },
95
+ settings: {
96
+ react: {
97
+ version: 'detect',
98
+ },
99
+ },
95
100
  },
96
101
  {
97
- ignores: ['dist', 'node_modules', 'eslint.config.mjs'],
102
+ ignores: [
103
+ 'dist',
104
+ 'node_modules',
105
+ 'eslint.config.mjs',
106
+ '.next/**',
107
+ '.source/**',
108
+ 'next-env.d.ts',
109
+ 'package-lock.json',
110
+ 'public/**',
111
+ ],
98
112
  },
99
113
  {
100
114
  files: ['**/*.json'],
@@ -170,10 +184,17 @@ const eslintConfig = [
170
184
  'perfectionist/sort-union-types': sortUnionTypes,
171
185
  },
172
186
  },
173
- // Add exceptions for files that require default exports
187
+ // Files that require a default export.
188
+ // Next.js globs are prefixed with `**/` so they match a root app, `src/app`,
189
+ // and monorepos (`apps/*/src/app/not-found.tsx`), including route groups.
174
190
  {
175
191
  files: [
176
- '**/*.page.{ts,tsx,js,jsx}', // Next.js pages
192
+ '**/*.page.{js,jsx,ts,tsx}', // Pages Router via pageExtensions (`*.page.tsx`)
193
+ '**/pages/**/{404,500,_app,_document,_error}.{js,jsx,ts,tsx}', // Pages Router system files
194
+ '**/app/**/{default,error,forbidden,global-error,global-not-found,layout,loading,not-found,page,template,unauthorized}.{js,jsx,ts,tsx}', // App Router
195
+ '**/app/**/{manifest,robots,sitemap}.{js,ts}', // App Router metadata routes
196
+ '**/app/**/{apple-icon,icon,opengraph-image,twitter-image}.{js,jsx,ts,tsx}', // App Router metadata images
197
+ '**/{middleware,proxy}.{js,ts}', // Next.js proxy (middleware.ts is the old name); default export is allowed
177
198
  '**/*.config.*', // configs
178
199
  '**/*gulpfile*', // Gulp
179
200
  '**/*.stories.*', // Storybook
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.126",
3
+ "version": "1.1.128",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets ",
6
6
  "engines": {
@@ -44,48 +44,48 @@
44
44
  "registry": "https://registry.npmjs.org/"
45
45
  },
46
46
  "dependencies": {
47
- "@babel/eslint-parser": "^8.0.5",
48
- "@babel/eslint-plugin": "^8.0.5",
47
+ "@babel/eslint-parser": "^8.0.7",
48
+ "@babel/eslint-plugin": "^8.0.6",
49
49
  "@eslint/compat": "^2.1.1",
50
50
  "@figma/eslint-plugin-figma-plugins": "^1.0.0",
51
51
  "@eslint/js": "^10.0.1",
52
52
  "@eslint/markdown": "^8.0.3",
53
- "@html-eslint/eslint-plugin": "^0.66.0",
54
- "@html-eslint/parser": "^0.66.0",
53
+ "@html-eslint/eslint-plugin": "^0.66.1",
54
+ "@html-eslint/parser": "^0.66.1",
55
55
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
56
- "@typescript-eslint/eslint-plugin": "^8.70.0",
57
- "@typescript-eslint/parser": "^8.70.0",
56
+ "@typescript-eslint/eslint-plugin": "^8.71.1",
57
+ "@typescript-eslint/parser": "^8.71.1",
58
58
  "eslint": "9.39.2",
59
59
  "eslint-config-prettier": "^10.1.8",
60
60
  "eslint-import-resolver-alias": "^1.1.2",
61
- "eslint-plugin-html": "^8.2.0",
61
+ "eslint-plugin-html": "^8.2.1",
62
62
  "eslint-plugin-import": "^2.32.0",
63
63
  "eslint-plugin-json": "^5.0.0",
64
- "eslint-plugin-mobx": "^0.0.14",
65
- "eslint-plugin-n": "^18.3.0",
64
+ "eslint-plugin-mobx": "^0.1.0",
65
+ "eslint-plugin-n": "^18.4.1",
66
66
  "eslint-plugin-node": "^11.1.0",
67
- "eslint-plugin-perfectionist": "^5.11.1",
67
+ "eslint-plugin-perfectionist": "^5.12.1",
68
68
  "eslint-plugin-prettier": "^5.5.6",
69
69
  "eslint-plugin-promise": "^7.3.0",
70
70
  "eslint-plugin-react": "^7.37.5",
71
71
  "eslint-plugin-react-hooks": "^7.1.1",
72
72
  "eslint-plugin-react-native": "^5.0.0",
73
73
  "eslint-plugin-react-refresh": "^0.5.7",
74
- "eslint-plugin-storybook": "^10.6.0",
75
- "expo-modules-autolinking": "^57.0.13",
76
- "globals": "^17.12.0",
77
- "prettier": "^3.9.6",
78
- "stylelint": "^17.15.0",
74
+ "eslint-plugin-storybook": "^10.6.1",
75
+ "expo-modules-autolinking": "^57.0.14",
76
+ "globals": "^17.13.0",
77
+ "prettier": "^3.9.10",
78
+ "stylelint": "^17.16.0",
79
79
  "stylelint-config-standard": "^40.0.0",
80
80
  "stylelint-no-unsupported-browser-features": "^8.1.2",
81
- "stylelint-order": "^8.1.1",
81
+ "stylelint-order": "^8.1.2",
82
82
  "stylelint-prettier": "^5.0.3",
83
- "typescript-eslint": "^8.70.0"
83
+ "typescript-eslint": "^8.71.1"
84
84
  },
85
85
  "devDependencies": {
86
- "@commitlint/cli": "^21.2.2",
87
- "@commitlint/config-conventional": "^21.2.2",
88
- "@itcase/config": "^1.6.84",
86
+ "@commitlint/cli": "^21.2.3",
87
+ "@commitlint/config-conventional": "^21.2.3",
88
+ "@itcase/config": "^1.7.23",
89
89
  "@rollup/plugin-alias": "^6.0.0",
90
90
  "@rollup/plugin-babel": "^7.1.0",
91
91
  "@rollup/plugin-image": "^3.0.3",
@@ -93,22 +93,22 @@
93
93
  "@rollup/plugin-node-resolve": "^16.0.3",
94
94
  "@rollup/plugin-terser": "^1.0.0",
95
95
  "@rollup/plugin-typescript": "^12.3.0",
96
- "@types/node": "^26.5.0",
96
+ "@types/node": "^26.6.5",
97
97
  "@types/react": "^19.2.14",
98
- "@typescript-eslint/rule-tester": "^8.70.0",
98
+ "@typescript-eslint/rule-tester": "^8.71.1",
99
99
  "conventional-changelog-conventionalcommits": "9.3.1",
100
- "del-cli": "^7.0.0",
100
+ "del-cli": "^8.0.1",
101
101
  "husky": "^9.1.7",
102
- "lint-staged": "^17.5.1",
103
- "rollup": "4.63.3",
102
+ "lint-staged": "^17.6.0",
103
+ "rollup": "4.64.5",
104
104
  "rollup-plugin-copy": "^3.5.0",
105
105
  "rollup-plugin-dts": "^6.5.1",
106
106
  "rollup-plugin-peer-deps-external": "^2.2.4",
107
107
  "react": "^19.2.4",
108
108
  "rollup-preserve-directives": "^1.1.3",
109
109
  "semantic-release": "^25.0.9",
110
- "storybook": "^10.6.0",
111
- "tsx": "^4.23.13",
110
+ "storybook": "^10.6.1",
111
+ "tsx": "^4.23.15",
112
112
  "typescript": "^6.0.3"
113
113
  }
114
114
  }