@commencis/eslint-config 3.5.0 → 3.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @commencis/eslint-config
2
2
 
3
+ ## 3.7.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Feat: update dependencies _[`#463`](https://github.com/Commencis/js-toolkit/pull/463) [`25f1200`](https://github.com/Commencis/js-toolkit/commit/25f12007c9e04ace265c50ad61a0e87646a410f2) [@ymehmetcan](https://github.com/ymehmetcan)_
8
+
9
+ ## 3.6.0
10
+
11
+ ### Minor Changes
12
+
13
+ - chore: update dependencies and add typescript v6 support ([#453](https://github.com/Commencis/js-toolkit/pull/453))
14
+
3
15
  ## 3.5.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,4 @@
1
1
  import { Linter } from "eslint";
2
-
3
2
  //#region src/types/config.types.d.ts
4
3
  /**
5
4
  * Relax plugins type limitation,
@@ -6,7 +6,6 @@ import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
6
6
  import reactPlugin from "eslint-plugin-react";
7
7
  import reactHooksPlugin from "eslint-plugin-react-hooks";
8
8
  import { parser, plugin } from "typescript-eslint";
9
-
10
9
  //#region src/rulesets/base.ruleset.ts
11
10
  const baseRuleset = {
12
11
  languageOptions: {
@@ -32,7 +31,6 @@ const baseRuleset = {
32
31
  },
33
32
  name: "@commencis/base"
34
33
  };
35
-
36
34
  //#endregion
37
35
  //#region src/rulesets/ignores.ruleset.ts
38
36
  const ignoresRuleset = {
@@ -61,7 +59,6 @@ const ignoresRuleset = {
61
59
  ],
62
60
  name: "@commencis/ignores"
63
61
  };
64
-
65
62
  //#endregion
66
63
  //#region src/constants/globs.ts
67
64
  /**
@@ -73,7 +70,6 @@ const ignoresRuleset = {
73
70
  const GLOB_SRC = "**/*.?([cm])[jt]s?(x)";
74
71
  const GLOB_TS = "**/*.?([cm])ts";
75
72
  const GLOB_TSX = "**/*.?([cm])tsx";
76
-
77
73
  //#endregion
78
74
  //#region src/utils/import.utils.ts
79
75
  /**
@@ -96,7 +92,6 @@ function subpath(p) {
96
92
  function expandFolders(folders) {
97
93
  return folders.flatMap((name) => [exact(name), subpath(name)]);
98
94
  }
99
-
100
95
  //#endregion
101
96
  //#region src/rulesets/import.ruleset.ts
102
97
  const GROUPS = {
@@ -167,7 +162,6 @@ const importRuleset = {
167
162
  },
168
163
  name: "@commencis/import"
169
164
  };
170
-
171
165
  //#endregion
172
166
  //#region src/rulesets/javascript.ruleset.ts
173
167
  const javascriptRuleset = {
@@ -240,11 +234,11 @@ const javascriptRuleset = {
240
234
  "max-nested-callbacks": ["error", 3],
241
235
  "max-lines": ["error", 500],
242
236
  "max-params": ["error", 4],
243
- "max-depth": ["error", 3]
237
+ "max-depth": ["error", 3],
238
+ curly: "error"
244
239
  },
245
240
  name: "@commencis/javascript"
246
241
  };
247
-
248
242
  //#endregion
249
243
  //#region src/rulesets/next.ruleset.ts
250
244
  const nextRuleset = {
@@ -275,7 +269,20 @@ const nextRuleset = {
275
269
  },
276
270
  name: "@commencis/nextjs"
277
271
  };
278
-
272
+ //#endregion
273
+ //#region src/rulesets/overrides.ruleset.ts
274
+ const overridesRuleset = {
275
+ files: [GLOB_SRC],
276
+ rules: {
277
+ /**
278
+ * The `eslint-plugin-prettier` recommended configuration disables `curly`
279
+ * because the `multi-line` and `multi-or-nest` options conflict with Prettier.
280
+ * Re-enable the rule here with `['error', 'all']`, which remains compatible.
281
+ * @see https://github.com/prettier/eslint-config-prettier/issues/341
282
+ */
283
+ curly: ["error", "all"] },
284
+ name: "@commencis/overrides"
285
+ };
279
286
  //#endregion
280
287
  //#region src/rulesets/prettier.ruleset.ts
281
288
  const prettierRuleset = {
@@ -283,7 +290,6 @@ const prettierRuleset = {
283
290
  files: [GLOB_SRC],
284
291
  name: "@commencis/prettier"
285
292
  };
286
-
287
293
  //#endregion
288
294
  //#region src/rulesets/react.ruleset.ts
289
295
  function reactRuleset(options) {
@@ -488,7 +494,6 @@ function reactRuleset(options) {
488
494
  name: "@commencis/react"
489
495
  };
490
496
  }
491
-
492
497
  //#endregion
493
498
  //#region src/rulesets/typescript.ruleset.ts
494
499
  const typescriptRuleset = {
@@ -562,7 +567,6 @@ const typescriptRuleset = {
562
567
  },
563
568
  name: "@commencis/typescript"
564
569
  };
565
-
566
570
  //#endregion
567
571
  //#region src/lib/configFactory.ts
568
572
  function configFactory(options) {
@@ -578,9 +582,9 @@ function configFactory(options) {
578
582
  })] : [],
579
583
  ...nextjs ? [nextRuleset] : [],
580
584
  prettierRuleset,
585
+ overridesRuleset,
581
586
  ignoresRuleset
582
587
  ];
583
588
  }
584
-
585
589
  //#endregion
586
- export { configFactory as t };
590
+ export { configFactory as t };
@@ -1,8 +1,6 @@
1
- import { t as FlatConfig } from "../config.types-lPpPZZFj.mjs";
2
- import * as eslint_config0 from "eslint/config";
3
-
1
+ import { t as FlatConfig } from "../config.types-_RcRWuPb.mjs";
4
2
  //#region src/configs/javascript.d.ts
5
3
  declare const javascriptConfig: FlatConfig;
6
- declare const _default: eslint_config0.Config[];
4
+ declare const _default: import("eslint/config").Config[];
7
5
  //#endregion
8
6
  export { _default as default, javascriptConfig };
@@ -1,9 +1,7 @@
1
- import { t as configFactory } from "../configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
-
4
3
  //#region src/configs/javascript.ts
5
4
  const javascriptConfig = configFactory();
6
5
  var javascript_default = defineConfig(javascriptConfig);
7
-
8
6
  //#endregion
9
- export { javascript_default as default, javascriptConfig };
7
+ export { javascript_default as default, javascriptConfig };
@@ -1,8 +1,6 @@
1
- import { t as FlatConfig } from "../config.types-lPpPZZFj.mjs";
2
- import * as eslint_config0 from "eslint/config";
3
-
1
+ import { t as FlatConfig } from "../config.types-_RcRWuPb.mjs";
4
2
  //#region src/configs/native.d.ts
5
3
  declare const reactNativeConfig: FlatConfig;
6
- declare const _default: eslint_config0.Config[];
4
+ declare const _default: import("eslint/config").Config[];
7
5
  //#endregion
8
6
  export { _default as default, reactNativeConfig };
@@ -1,12 +1,10 @@
1
- import { t as configFactory } from "../configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
-
4
3
  //#region src/configs/native.ts
5
4
  const reactNativeConfig = configFactory({
6
5
  typescript: true,
7
6
  react: true
8
7
  });
9
8
  var native_default = defineConfig(reactNativeConfig);
10
-
11
9
  //#endregion
12
- export { native_default as default, reactNativeConfig };
10
+ export { native_default as default, reactNativeConfig };
@@ -1,8 +1,6 @@
1
- import { t as FlatConfig } from "../config.types-lPpPZZFj.mjs";
2
- import * as eslint_config0 from "eslint/config";
3
-
1
+ import { t as FlatConfig } from "../config.types-_RcRWuPb.mjs";
4
2
  //#region src/configs/next.d.ts
5
3
  declare const nextConfig: FlatConfig;
6
- declare const _default: eslint_config0.Config[];
4
+ declare const _default: import("eslint/config").Config[];
7
5
  //#endregion
8
6
  export { _default as default, nextConfig };
@@ -1,6 +1,5 @@
1
- import { t as configFactory } from "../configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
-
4
3
  //#region src/configs/next.ts
5
4
  const nextConfig = configFactory({
6
5
  typescript: true,
@@ -8,6 +7,5 @@ const nextConfig = configFactory({
8
7
  nextjs: true
9
8
  });
10
9
  var next_default = defineConfig(nextConfig);
11
-
12
10
  //#endregion
13
- export { next_default as default, nextConfig };
11
+ export { next_default as default, nextConfig };
@@ -1,8 +1,6 @@
1
- import { t as FlatConfig } from "../config.types-lPpPZZFj.mjs";
2
- import * as eslint_config0 from "eslint/config";
3
-
1
+ import { t as FlatConfig } from "../config.types-_RcRWuPb.mjs";
4
2
  //#region src/configs/react.d.ts
5
3
  declare const reactConfig: FlatConfig;
6
- declare const _default: eslint_config0.Config[];
4
+ declare const _default: import("eslint/config").Config[];
7
5
  //#endregion
8
6
  export { _default as default, reactConfig };
@@ -1,12 +1,10 @@
1
- import { t as configFactory } from "../configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
-
4
3
  //#region src/configs/react.ts
5
4
  const reactConfig = configFactory({
6
5
  typescript: true,
7
6
  react: true
8
7
  });
9
8
  var react_default = defineConfig(reactConfig);
10
-
11
9
  //#endregion
12
- export { react_default as default, reactConfig };
10
+ export { react_default as default, reactConfig };
@@ -1,8 +1,6 @@
1
- import { t as FlatConfig } from "../config.types-lPpPZZFj.mjs";
2
- import * as eslint_config0 from "eslint/config";
3
-
1
+ import { t as FlatConfig } from "../config.types-_RcRWuPb.mjs";
4
2
  //#region src/configs/typescript.d.ts
5
3
  declare const typescriptConfig: FlatConfig;
6
- declare const _default: eslint_config0.Config[];
4
+ declare const _default: import("eslint/config").Config[];
7
5
  //#endregion
8
6
  export { _default as default, typescriptConfig };
@@ -1,9 +1,7 @@
1
- import { t as configFactory } from "../configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
2
2
  import { defineConfig } from "eslint/config";
3
-
4
3
  //#region src/configs/typescript.ts
5
4
  const typescriptConfig = configFactory({ typescript: true });
6
5
  var typescript_default = defineConfig(typescriptConfig);
7
-
8
6
  //#endregion
9
- export { typescript_default as default, typescriptConfig };
7
+ export { typescript_default as default, typescriptConfig };
package/dist/index.d.mts CHANGED
@@ -1,9 +1,8 @@
1
- import { t as FlatConfig } from "./config.types-lPpPZZFj.mjs";
1
+ import { t as FlatConfig } from "./config.types-_RcRWuPb.mjs";
2
2
  import { javascriptConfig } from "./configs/javascript.mjs";
3
3
  import { nextConfig } from "./configs/next.mjs";
4
4
  import { reactConfig } from "./configs/react.mjs";
5
5
  import { typescriptConfig } from "./configs/typescript.mjs";
6
-
7
6
  //#region src/lib/configFactory.d.ts
8
7
  type ConfigFactoryOptions = {
9
8
  typescript?: boolean;
package/dist/index.mjs CHANGED
@@ -1,7 +1,6 @@
1
- import { t as configFactory } from "./configFactory-BipBobUN.mjs";
1
+ import { t as configFactory } from "./configFactory-1cExm3Nd.mjs";
2
2
  import { javascriptConfig } from "./configs/javascript.mjs";
3
3
  import { nextConfig } from "./configs/next.mjs";
4
4
  import { reactConfig } from "./configs/react.mjs";
5
5
  import { typescriptConfig } from "./configs/typescript.mjs";
6
-
7
- export { configFactory, javascriptConfig, nextConfig, reactConfig, typescriptConfig };
6
+ export { configFactory, javascriptConfig, nextConfig, reactConfig, typescriptConfig };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@commencis/eslint-config",
3
- "version": "3.5.0",
3
+ "version": "3.7.0",
4
4
  "description": "Commencis ESLint config",
5
5
  "author": "Commencis WEB Team",
6
6
  "license": "Apache-2.0",
@@ -50,23 +50,23 @@
50
50
  }
51
51
  },
52
52
  "dependencies": {
53
- "@next/eslint-plugin-next": "16.1.6",
54
- "@typescript-eslint/utils": "8.56.0",
53
+ "@next/eslint-plugin-next": "16.2.10",
54
+ "@typescript-eslint/utils": "8.63.0",
55
55
  "eslint-config-prettier": "10.1.8",
56
56
  "eslint-plugin-jsx-a11y": "6.10.2",
57
- "eslint-plugin-prettier": "5.5.5",
57
+ "eslint-plugin-prettier": "5.5.6",
58
58
  "eslint-plugin-react": "7.37.5",
59
- "eslint-plugin-react-hooks": "7.0.1",
60
- "eslint-plugin-simple-import-sort": "12.1.1",
61
- "globals": "17.3.0",
62
- "typescript-eslint": "8.56.0"
59
+ "eslint-plugin-react-hooks": "7.1.1",
60
+ "eslint-plugin-simple-import-sort": "13.0.0",
61
+ "globals": "17.7.0",
62
+ "typescript-eslint": "8.63.0"
63
63
  },
64
64
  "devDependencies": {
65
65
  "@commencis/ts-config": "1.0.0",
66
- "eslint": "9.39.3"
66
+ "eslint": "9.39.4"
67
67
  },
68
68
  "peerDependencies": {
69
- "eslint": ">=9.39"
69
+ "eslint": "^9.39"
70
70
  },
71
71
  "scripts": {
72
72
  "dev": "tsdown --watch",