eslint-config-decent 2.6.1 → 2.6.3
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/dist/index.cjs +9 -0
- package/dist/index.d.cts +2 -1
- package/dist/index.d.mts +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.mjs +9 -0
- package/package.json +12 -12
- package/src/typescriptEslint.ts +9 -0
package/dist/index.cjs
CHANGED
|
@@ -726,6 +726,15 @@ const base$1 = {
|
|
|
726
726
|
}
|
|
727
727
|
],
|
|
728
728
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
729
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
730
|
+
"error",
|
|
731
|
+
{
|
|
732
|
+
minimumDescriptionLength: 10,
|
|
733
|
+
"ts-expect-error": {
|
|
734
|
+
descriptionFormat: "^ - [^ ].*$"
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
],
|
|
729
738
|
"@typescript-eslint/default-param-last": "error",
|
|
730
739
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
731
740
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
package/dist/index.d.cts
CHANGED
|
@@ -83,4 +83,5 @@ declare function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExten
|
|
|
83
83
|
*/
|
|
84
84
|
declare function config(options?: DefaultConfigOptions): TSESLint.FlatConfig.ConfigArray;
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { config, defaultConfig, configs$c as eslintConfigs, configs$b as extensionConfigs, configs$a as importConfigs, configs$9 as jestConfigs, configs$8 as jsdocConfigs, configs$7 as mochaConfigs, configs$6 as nextJsConfigs, configs$5 as promiseConfigs, configs$4 as reactConfigs, configs$3 as securityConfigs, configs$2 as testingLibraryConfigs, tsEslintConfig, configs$1 as typescriptEslintConfigs, configs as unicornConfigs };
|
|
87
|
+
export type { DefaultConfigOptions };
|
package/dist/index.d.mts
CHANGED
|
@@ -83,4 +83,5 @@ declare function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExten
|
|
|
83
83
|
*/
|
|
84
84
|
declare function config(options?: DefaultConfigOptions): TSESLint.FlatConfig.ConfigArray;
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { config, defaultConfig, configs$c as eslintConfigs, configs$b as extensionConfigs, configs$a as importConfigs, configs$9 as jestConfigs, configs$8 as jsdocConfigs, configs$7 as mochaConfigs, configs$6 as nextJsConfigs, configs$5 as promiseConfigs, configs$4 as reactConfigs, configs$3 as securityConfigs, configs$2 as testingLibraryConfigs, tsEslintConfig, configs$1 as typescriptEslintConfigs, configs as unicornConfigs };
|
|
87
|
+
export type { DefaultConfigOptions };
|
package/dist/index.d.ts
CHANGED
|
@@ -83,4 +83,5 @@ declare function tsEslintConfig(options?: DefaultConfigOptions): ConfigWithExten
|
|
|
83
83
|
*/
|
|
84
84
|
declare function config(options?: DefaultConfigOptions): TSESLint.FlatConfig.ConfigArray;
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { config, defaultConfig, configs$c as eslintConfigs, configs$b as extensionConfigs, configs$a as importConfigs, configs$9 as jestConfigs, configs$8 as jsdocConfigs, configs$7 as mochaConfigs, configs$6 as nextJsConfigs, configs$5 as promiseConfigs, configs$4 as reactConfigs, configs$3 as securityConfigs, configs$2 as testingLibraryConfigs, tsEslintConfig, configs$1 as typescriptEslintConfigs, configs as unicornConfigs };
|
|
87
|
+
export type { DefaultConfigOptions };
|
package/dist/index.mjs
CHANGED
|
@@ -703,6 +703,15 @@ const base$1 = {
|
|
|
703
703
|
}
|
|
704
704
|
],
|
|
705
705
|
"@typescript-eslint/consistent-type-imports": "error",
|
|
706
|
+
"@typescript-eslint/ban-ts-comment": [
|
|
707
|
+
"error",
|
|
708
|
+
{
|
|
709
|
+
minimumDescriptionLength: 10,
|
|
710
|
+
"ts-expect-error": {
|
|
711
|
+
descriptionFormat: "^ - [^ ].*$"
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
],
|
|
706
715
|
"@typescript-eslint/default-param-last": "error",
|
|
707
716
|
"@typescript-eslint/explicit-function-return-type": "error",
|
|
708
717
|
"@typescript-eslint/explicit-member-accessibility": "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-decent",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.3",
|
|
4
4
|
"description": "A decent ESLint configuration",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -73,33 +73,33 @@
|
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@eslint/compat": "1.2.7",
|
|
76
|
-
"@eslint/js": "9.
|
|
77
|
-
"@next/eslint-plugin-next": "^15.2.
|
|
76
|
+
"@eslint/js": "9.23.0",
|
|
77
|
+
"@next/eslint-plugin-next": "^15.2.4",
|
|
78
78
|
"@stylistic/eslint-plugin": "^4.2.0",
|
|
79
|
-
"@typescript-eslint/utils": "8.
|
|
79
|
+
"@typescript-eslint/utils": "8.28.0",
|
|
80
80
|
"eslint-config-prettier": "10.1.1",
|
|
81
|
-
"eslint-plugin-import-x": "4.
|
|
81
|
+
"eslint-plugin-import-x": "4.9.4",
|
|
82
82
|
"eslint-plugin-jest": "28.11.0",
|
|
83
83
|
"eslint-plugin-jest-dom": "5.5.0",
|
|
84
|
-
"eslint-plugin-jsdoc": "50.6.
|
|
84
|
+
"eslint-plugin-jsdoc": "50.6.9",
|
|
85
85
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
86
86
|
"eslint-plugin-mocha": "10.5.0",
|
|
87
|
-
"eslint-plugin-prettier": "5.2.
|
|
87
|
+
"eslint-plugin-prettier": "5.2.5",
|
|
88
88
|
"eslint-plugin-promise": "7.2.1",
|
|
89
89
|
"eslint-plugin-react": "7.37.4",
|
|
90
90
|
"eslint-plugin-react-hooks": "5.2.0",
|
|
91
91
|
"eslint-plugin-security": "3.0.1",
|
|
92
92
|
"eslint-plugin-testing-library": "7.1.1",
|
|
93
|
-
"eslint-plugin-unicorn": "
|
|
93
|
+
"eslint-plugin-unicorn": "58.0.0",
|
|
94
94
|
"globals": "16.0.0",
|
|
95
|
-
"typescript-eslint": "8.
|
|
95
|
+
"typescript-eslint": "8.28.0"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
98
|
-
"@swc/core": "^1.11.
|
|
98
|
+
"@swc/core": "^1.11.13",
|
|
99
99
|
"@types/node": ">=22",
|
|
100
|
-
"eslint": "^9.
|
|
100
|
+
"eslint": "^9.23.0",
|
|
101
101
|
"husky": "^9.1.7",
|
|
102
|
-
"lint-staged": "^15.
|
|
102
|
+
"lint-staged": "^15.5.0",
|
|
103
103
|
"markdownlint-cli": "^0.44.0",
|
|
104
104
|
"npm-run-all": "^4.1.5",
|
|
105
105
|
"pinst": "^3.0.0",
|
package/src/typescriptEslint.ts
CHANGED
|
@@ -15,6 +15,15 @@ const base: TSESLint.FlatConfig.Config = {
|
|
|
15
15
|
},
|
|
16
16
|
],
|
|
17
17
|
'@typescript-eslint/consistent-type-imports': 'error',
|
|
18
|
+
'@typescript-eslint/ban-ts-comment': [
|
|
19
|
+
'error',
|
|
20
|
+
{
|
|
21
|
+
minimumDescriptionLength: 10,
|
|
22
|
+
'ts-expect-error': {
|
|
23
|
+
descriptionFormat: '^ - [^ ].*$',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
],
|
|
18
27
|
'@typescript-eslint/default-param-last': 'error',
|
|
19
28
|
'@typescript-eslint/explicit-function-return-type': 'error',
|
|
20
29
|
'@typescript-eslint/explicit-member-accessibility': 'error',
|