@abinnovision/eslint-config-base 3.0.1 → 3.0.2
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 +8 -0
- package/dist/index.cjs +12 -0
- package/dist/index.js +12 -0
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [3.0.2](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v3.0.1...eslint-config-base-v3.0.2) (2025-11-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* add curly braces rule to base config ([#565](https://github.com/abinnovision/js-commons/issues/565)) ([e22d6eb](https://github.com/abinnovision/js-commons/commit/e22d6eb17ed16f5c82f5a502e6ea1c6170731d02))
|
|
9
|
+
* add curly rule with all option ([#567](https://github.com/abinnovision/js-commons/issues/567)) ([e1802e1](https://github.com/abinnovision/js-commons/commit/e1802e139d6a0400a02ba3c7e0fe06df2003b94f))
|
|
10
|
+
|
|
3
11
|
## [3.0.1](https://github.com/abinnovision/js-commons/compare/eslint-config-base-v3.0.0...eslint-config-base-v3.0.1) (2025-11-08)
|
|
4
12
|
|
|
5
13
|
|
package/dist/index.cjs
CHANGED
|
@@ -96,6 +96,12 @@ var config = (0, import_config.defineConfig)([
|
|
|
96
96
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
97
97
|
*/
|
|
98
98
|
"default-case-last": "error",
|
|
99
|
+
/**
|
|
100
|
+
* Require following curly brace conventions.
|
|
101
|
+
*
|
|
102
|
+
* @see https://eslint.org/docs/latest/rules/curly
|
|
103
|
+
*/
|
|
104
|
+
curly: ["error", "all"],
|
|
99
105
|
/**
|
|
100
106
|
* Require === and !==.
|
|
101
107
|
*
|
|
@@ -530,6 +536,12 @@ var config = (0, import_config.defineConfig)([
|
|
|
530
536
|
* @see https://typescript-eslint.io/rules/prefer-function-type
|
|
531
537
|
*/
|
|
532
538
|
"@typescript-eslint/prefer-function-type": "error",
|
|
539
|
+
/**
|
|
540
|
+
* Require using nullish coalescing operator instead of logical OR.
|
|
541
|
+
*
|
|
542
|
+
* @see https://typescript-eslint.io/rules/prefer-nullish-coalescing
|
|
543
|
+
*/
|
|
544
|
+
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
533
545
|
/**
|
|
534
546
|
* Custom Overrides for TypeScript Rules
|
|
535
547
|
*/
|
package/dist/index.js
CHANGED
|
@@ -57,6 +57,12 @@ var config = defineConfig([
|
|
|
57
57
|
* @see https://eslint.org/docs/latest/rules/default-case-last
|
|
58
58
|
*/
|
|
59
59
|
"default-case-last": "error",
|
|
60
|
+
/**
|
|
61
|
+
* Require following curly brace conventions.
|
|
62
|
+
*
|
|
63
|
+
* @see https://eslint.org/docs/latest/rules/curly
|
|
64
|
+
*/
|
|
65
|
+
curly: ["error", "all"],
|
|
60
66
|
/**
|
|
61
67
|
* Require === and !==.
|
|
62
68
|
*
|
|
@@ -491,6 +497,12 @@ var config = defineConfig([
|
|
|
491
497
|
* @see https://typescript-eslint.io/rules/prefer-function-type
|
|
492
498
|
*/
|
|
493
499
|
"@typescript-eslint/prefer-function-type": "error",
|
|
500
|
+
/**
|
|
501
|
+
* Require using nullish coalescing operator instead of logical OR.
|
|
502
|
+
*
|
|
503
|
+
* @see https://typescript-eslint.io/rules/prefer-nullish-coalescing
|
|
504
|
+
*/
|
|
505
|
+
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
494
506
|
/**
|
|
495
507
|
* Custom Overrides for TypeScript Rules
|
|
496
508
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abinnovision/eslint-config-base",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"npm": true,
|
|
6
6
|
"ghpr": true,
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"prettier": "@abinnovision/prettier-config",
|
|
49
49
|
"dependencies": {
|
|
50
50
|
"@eslint/js": "^9.39.1",
|
|
51
|
-
"@vitest/eslint-plugin": "^1.4.
|
|
51
|
+
"@vitest/eslint-plugin": "^1.4.3",
|
|
52
52
|
"eslint-plugin-import": "^2.32.0",
|
|
53
53
|
"eslint-plugin-unused-imports": "^4.3.0",
|
|
54
54
|
"globals": "^16.5.0",
|