eslint-config-vylda-typescript 5.6.0 → 6.0.1
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 +14 -0
- package/README.md +2 -2
- package/index.d.ts +2 -0
- package/package.json +5 -5
- package/rules/defaultTs.mjs +4 -0
- package/tsconfig.json +1 -0
package/Changelog.md
CHANGED
|
@@ -4,6 +4,20 @@ All notable changes to this component will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
6
6
|
|
|
7
|
+
## [6.0.1] - 2025-01-02
|
|
8
|
+
### Added
|
|
9
|
+
- Types for nonTsConfigFiles and nonTsConfigFilesRules exports [Vilda Lipold]
|
|
10
|
+
### Updated
|
|
11
|
+
- tsconfig.json to disable emit [Vilda Lipold]
|
|
12
|
+
- Readme [Vilda Lipold]
|
|
13
|
+
|
|
14
|
+
## [6.0.0] - 2025-01-02
|
|
15
|
+
### Added
|
|
16
|
+
- Rules
|
|
17
|
+
- @typescript-eslint/no-useless-default-assignment [Vilda Lipold]
|
|
18
|
+
### Updated
|
|
19
|
+
- Packages [Vilda Lipold]
|
|
20
|
+
|
|
7
21
|
## [5.6.0] - 2025-12-06
|
|
8
22
|
### Updated
|
|
9
23
|
- eslint-config-vylda-vanilla package [Vilda Lipold]
|
package/README.md
CHANGED
|
@@ -342,8 +342,8 @@ You can also use `mapFiles` function to map files for all rules.
|
|
|
342
342
|
- `ignores` - ESLint config with global ignored folder patterns ([default values](https://gitlab.com/Vylda/eslint-config-vylda-vanilla/-/blob/main/ignores.mjs#L4), [documentation](https://eslint.org/docs/latest/use/configure/ignore#ignoring-files))
|
|
343
343
|
- `mapFiles` - helper function to map files for all configs ([source](https://gitlab.com/Vylda/eslint-config-vylda-vanilla/-/blob/main/mapFiles.mjs))
|
|
344
344
|
- `node` - ESLint config with rules for Node.js ([source](https://gitlab.com/Vylda/eslint-config-vylda-vanilla/-/blob/main/rules/node.mjs), [documentation](https://github.com/eslint-community/eslint-plugin-n?tab=readme-ov-file#-rules))
|
|
345
|
-
- `nonTsConfigFiles` - Array of non typescript files for nonTsConfigFilesRule
|
|
346
|
-
- `nonTsConfigFilesRule` - ESLint rule for non-TypeScript files
|
|
345
|
+
- `nonTsConfigFiles` - Array of non typescript files for nonTsConfigFilesRule ([source](./eslint.config.mjs#L12))
|
|
346
|
+
- `nonTsConfigFilesRule` - ESLint rule for non-TypeScript files ([source](./eslint.config.mjs#L56))
|
|
347
347
|
- `perfectionist` - ESLint config with rules for perfectionist ([source](https://gitlab.com/Vylda/eslint-config-vylda-vanilla/-/blob/main/rules/perfectionist.mjs), [documentation](https://perfectionist.dev/rules))
|
|
348
348
|
- `plugins` - default plugins used in this config ([source](./eslint.config.mjs#L26))
|
|
349
349
|
- `plus` - ESLint config with rules for extended rules ([source](./rules/plus.mjs), [documentation](https://eslint.style/packages/plus))
|
package/index.d.ts
CHANGED
|
@@ -37,6 +37,8 @@ export const es6: TConfig;
|
|
|
37
37
|
export const files: Array<string>;
|
|
38
38
|
export const ignores: TConfig;
|
|
39
39
|
export const node: TConfig;
|
|
40
|
+
export const nonTsConfigFiles: Array<string>;
|
|
41
|
+
export const nonTsConfigFilesRules: TConfig;
|
|
40
42
|
export const off: TConfig;
|
|
41
43
|
export const perfectionist: TConfig;
|
|
42
44
|
export const plugins: Record<string, ESLint.Plugin>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-vylda-typescript",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "6.0.1",
|
|
4
4
|
"description": "Eslint Typescript rules for JS and TS vanilla projects",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -26,17 +26,17 @@
|
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@eslint/config-inspector": "^1.4.2",
|
|
28
28
|
"@types/espree": "^10.1.0",
|
|
29
|
-
"@types/node": "^
|
|
29
|
+
"@types/node": "^25.0.3",
|
|
30
30
|
"espree": "^11.0.0",
|
|
31
31
|
"husky": "^9.1.7",
|
|
32
32
|
"typescript": "^5.9.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"eslint": "^9.39.
|
|
36
|
-
"eslint-config-vylda-vanilla": "^
|
|
35
|
+
"eslint": "^9.39.2",
|
|
36
|
+
"eslint-config-vylda-vanilla": "^5.0.0",
|
|
37
37
|
"eslint-import-resolver-typescript": "^4.4.4",
|
|
38
38
|
"tslib": "^2.8.1",
|
|
39
|
-
"typescript-eslint": "^8.
|
|
39
|
+
"typescript-eslint": "^8.51.0"
|
|
40
40
|
},
|
|
41
41
|
"engines": {
|
|
42
42
|
"node": ">=20"
|
package/rules/defaultTs.mjs
CHANGED
|
@@ -534,6 +534,10 @@ const config = [
|
|
|
534
534
|
// https://typescript-eslint.io/rules/no-useless-constructor/
|
|
535
535
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
536
536
|
|
|
537
|
+
// Disallow default values that will never be used.
|
|
538
|
+
// https://typescript-eslint.io/rules/no-useless-default-assignment/
|
|
539
|
+
'@typescript-eslint/no-useless-default-assignment': 'error',
|
|
540
|
+
|
|
537
541
|
// Disallow empty exports that don't change anything in a module file.
|
|
538
542
|
// https://typescript-eslint.io/rules/no-useless-empty-export/
|
|
539
543
|
'@typescript-eslint/no-useless-empty-export': 'error',
|