@commencis/eslint-config 3.6.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 +6 -0
- package/dist/{config.types-BJTEvFyK.d.mts → config.types-_RcRWuPb.d.mts} +0 -1
- package/dist/{configFactory-C1UwTzUN.mjs → configFactory-1cExm3Nd.mjs} +15 -0
- package/dist/configs/javascript.d.mts +2 -4
- package/dist/configs/javascript.mjs +1 -1
- package/dist/configs/native.d.mts +2 -4
- package/dist/configs/native.mjs +1 -1
- package/dist/configs/next.d.mts +2 -4
- package/dist/configs/next.mjs +1 -1
- package/dist/configs/react.d.mts +2 -4
- package/dist/configs/react.mjs +1 -1
- package/dist/configs/typescript.d.mts +2 -4
- package/dist/configs/typescript.mjs +1 -1
- package/dist/index.d.mts +1 -2
- package/dist/index.mjs +1 -1
- package/package.json +8 -8
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
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
|
+
|
|
3
9
|
## 3.6.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -270,6 +270,20 @@ const nextRuleset = {
|
|
|
270
270
|
name: "@commencis/nextjs"
|
|
271
271
|
};
|
|
272
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
|
+
};
|
|
286
|
+
//#endregion
|
|
273
287
|
//#region src/rulesets/prettier.ruleset.ts
|
|
274
288
|
const prettierRuleset = {
|
|
275
289
|
...eslintPluginPrettierRecommended,
|
|
@@ -568,6 +582,7 @@ function configFactory(options) {
|
|
|
568
582
|
})] : [],
|
|
569
583
|
...nextjs ? [nextRuleset] : [],
|
|
570
584
|
prettierRuleset,
|
|
585
|
+
overridesRuleset,
|
|
571
586
|
ignoresRuleset
|
|
572
587
|
];
|
|
573
588
|
}
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as FlatConfig } from "../config.types-
|
|
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:
|
|
4
|
+
declare const _default: import("eslint/config").Config[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default, javascriptConfig };
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as FlatConfig } from "../config.types-
|
|
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:
|
|
4
|
+
declare const _default: import("eslint/config").Config[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default, reactNativeConfig };
|
package/dist/configs/native.mjs
CHANGED
package/dist/configs/next.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as FlatConfig } from "../config.types-
|
|
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:
|
|
4
|
+
declare const _default: import("eslint/config").Config[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default, nextConfig };
|
package/dist/configs/next.mjs
CHANGED
package/dist/configs/react.d.mts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as FlatConfig } from "../config.types-
|
|
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:
|
|
4
|
+
declare const _default: import("eslint/config").Config[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default, reactConfig };
|
package/dist/configs/react.mjs
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import { t as FlatConfig } from "../config.types-
|
|
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:
|
|
4
|
+
declare const _default: import("eslint/config").Config[];
|
|
7
5
|
//#endregion
|
|
8
6
|
export { _default as default, typescriptConfig };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as configFactory } from "../configFactory-
|
|
1
|
+
import { t as configFactory } from "../configFactory-1cExm3Nd.mjs";
|
|
2
2
|
import { defineConfig } from "eslint/config";
|
|
3
3
|
//#region src/configs/typescript.ts
|
|
4
4
|
const typescriptConfig = configFactory({ typescript: true });
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import { t as FlatConfig } from "./config.types-
|
|
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,4 +1,4 @@
|
|
|
1
|
-
import { t as configFactory } from "./configFactory-
|
|
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";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commencis/eslint-config",
|
|
3
|
-
"version": "3.
|
|
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.2.
|
|
54
|
-
"@typescript-eslint/utils": "8.
|
|
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.
|
|
57
|
+
"eslint-plugin-prettier": "5.5.6",
|
|
58
58
|
"eslint-plugin-react": "7.37.5",
|
|
59
|
-
"eslint-plugin-react-hooks": "7.
|
|
59
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
60
60
|
"eslint-plugin-simple-import-sort": "13.0.0",
|
|
61
|
-
"globals": "17.
|
|
62
|
-
"typescript-eslint": "8.
|
|
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
66
|
"eslint": "9.39.4"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"eslint": "
|
|
69
|
+
"eslint": "^9.39"
|
|
70
70
|
},
|
|
71
71
|
"scripts": {
|
|
72
72
|
"dev": "tsdown --watch",
|