eslint-config-vylda-typescript 6.2.0 → 7.0.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 +56 -0
- package/README.md +326 -160
- package/dist/constants.d.ts +13 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +12 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +139 -0
- package/dist/rules/baseTs.d.ts +4 -0
- package/dist/rules/baseTs.d.ts.map +1 -0
- package/dist/rules/baseTs.js +468 -0
- package/dist/rules/best-practices.d.ts +4 -0
- package/dist/rules/best-practices.d.ts.map +1 -0
- package/dist/rules/best-practices.js +57 -0
- package/dist/rules/errors.d.ts +4 -0
- package/dist/rules/errors.d.ts.map +1 -0
- package/dist/rules/errors.js +10 -0
- package/dist/rules/es6.d.ts +4 -0
- package/dist/rules/es6.d.ts.map +1 -0
- package/dist/rules/es6.js +10 -0
- package/dist/rules/imports.d.ts +18 -0
- package/dist/rules/imports.d.ts.map +1 -0
- package/dist/rules/imports.js +72 -0
- package/dist/rules/index.d.ts +12 -0
- package/dist/rules/index.d.ts.map +1 -0
- package/dist/rules/index.js +11 -0
- package/dist/rules/off.d.ts +4 -0
- package/dist/rules/off.d.ts.map +1 -0
- package/dist/rules/off.js +134 -0
- package/dist/rules/plus.d.ts +4 -0
- package/dist/rules/plus.d.ts.map +1 -0
- package/dist/rules/plus.js +47 -0
- package/dist/rules/strictTs.d.ts +4 -0
- package/dist/rules/strictTs.d.ts.map +1 -0
- package/dist/rules/strictTs.js +106 -0
- package/dist/rules/stylisticTs.d.ts +4 -0
- package/dist/rules/stylisticTs.d.ts.map +1 -0
- package/dist/rules/stylisticTs.js +294 -0
- package/dist/rules/typescriptConfig.d.ts +4 -0
- package/dist/rules/typescriptConfig.d.ts.map +1 -0
- package/dist/rules/typescriptConfig.js +20 -0
- package/dist/rules/variablesTs.d.ts +4 -0
- package/dist/rules/variablesTs.d.ts.map +1 -0
- package/dist/rules/variablesTs.js +88 -0
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +1 -0
- package/dist/utils/configByName.d.ts +5 -0
- package/dist/utils/configByName.d.ts.map +1 -0
- package/dist/utils/configByName.js +5 -0
- package/dist/utils/importExtensions.d.ts +5 -0
- package/dist/utils/importExtensions.d.ts.map +1 -0
- package/dist/utils/importExtensions.js +11 -0
- package/dist/utils/ruleEntry.d.ts +4 -0
- package/dist/utils/ruleEntry.d.ts.map +1 -0
- package/dist/utils/ruleEntry.js +5 -0
- package/dist/utils/tsConfigPath.d.ts +3 -0
- package/dist/utils/tsConfigPath.d.ts.map +1 -0
- package/dist/utils/tsConfigPath.js +10 -0
- package/dist/utils/typeGuards.d.ts +5 -0
- package/dist/utils/typeGuards.d.ts.map +1 -0
- package/dist/utils/typeGuards.js +14 -0
- package/package.json +57 -34
- package/.editorconfig +0 -12
- package/.gitlab-ci.yml +0 -13
- package/.husky/pre-commit +0 -1
- package/.husky/pre-push +0 -1
- package/.vscode/extensions.json +0 -8
- package/.vscode/settings.json +0 -6
- package/directory.mjs +0 -3
- package/empty.ts +0 -0
- package/eslint.config.mjs +0 -89
- package/index.d.ts +0 -58
- package/index.js +0 -177
- package/rules/defaultTs.mjs +0 -683
- package/rules/imports.mjs +0 -119
- package/rules/index.mjs +0 -10
- package/rules/off.mjs +0 -65
- package/rules/plus.mjs +0 -22
- package/rules/strictTs.mjs +0 -133
- package/rules/stylisticTs.mjs +0 -528
- package/rules/typescriptConfig.mjs +0 -16
- package/rules/vanillaConfig.mjs +0 -26
- package/rules/variablesTs.mjs +0 -129
- package/tsconfig.json +0 -23
package/Changelog.md
CHANGED
|
@@ -4,6 +4,62 @@ 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
|
+
## [7.0.0] - 2026-09-20
|
|
8
|
+
### Added
|
|
9
|
+
- `importResolverAlias` option for `getConfig()` and `getImportConfig()` and `defaultImportResolverAlias` export, forwarded to vanilla for configuring path aliases (`@/...`); the aliased paths resolve with this package's TypeScript extensions, so `@/foo` finds `foo.ts` [Vilda Lipold]
|
|
10
|
+
- `includeOffRules` option for `getImportConfig()`, defaulting to `true` [Vilda Lipold]
|
|
11
|
+
- `off` config is now split into named per-category blocks (`typescript eslint/off/<category>`), and every rule in it documents the `@typescript-eslint` rule that replaces it or why no replacement is needed [Vilda Lipold]
|
|
12
|
+
- `offImports` export with the `off` block for import rules, so it can be applied to TypeScript files only [Vilda Lipold]
|
|
13
|
+
- Rules
|
|
14
|
+
- @typescript-eslint/no-generated-empty-object-type: error [Vilda Lipold]
|
|
15
|
+
- Some colors in fix-extensions script for better visibility in the console [Vilda Lipold]
|
|
16
|
+
- `vanillaBaseConfigs` export grouping the pure, unmodified vanilla rule-set configs under their original vanilla names [Vilda Lipold]
|
|
17
|
+
### Changed
|
|
18
|
+
- `eslint` moved from `dependencies` to `devDependencies`; the published package needs it only for types, so it no longer pulls a second copy of ESLint into consuming projects [Vilda Lipold]
|
|
19
|
+
- `description` in `package.json` now matches the README [Vilda Lipold]
|
|
20
|
+
- `@typescript-eslint/no-magic-numbers` options are read from vanilla's `no-magic-numbers` instead of a hardcoded copy that had drifted [Vilda Lipold]
|
|
21
|
+
- Default `getConfig()` now also applies vanilla's `plus` rules to plain JS/CJS/MJS files, not just TypeScript files [Vilda Lipold]
|
|
22
|
+
- `getConfig()` composes the vanilla rule sets in the same order as `eslint-config-vylda-vanilla` [Vilda Lipold]
|
|
23
|
+
- Refactor to Typescript [Vilda Lipold]
|
|
24
|
+
- Repository transfer to a new namespace [Vilda Lipold]
|
|
25
|
+
- Rules
|
|
26
|
+
- `@typescript-eslint/prefer-nullish-coalescing` now ignores string primitives [Vilda Lipold]
|
|
27
|
+
- Top-level rule-set exports (`base`, `bestPractices`, `errors`, `es6`, `plus`, `strict`, `stylistic`, `variables`) now combine the vanilla rules with this package's TypeScript updates and additions; use `vanillaBaseConfigs.<name>` for the untouched vanilla version [Vilda Lipold]
|
|
28
|
+
- TypeScript import resolver is registered through `import-x/resolver-next` instead of the legacy `settings['import/resolver'].typescript` key, and is placed ahead of vanilla's node resolver, which stays as the fallback [Vilda Lipold]
|
|
29
|
+
### Fixed
|
|
30
|
+
- Rules
|
|
31
|
+
- `@stylistic/curly-newline` TypeScript enhancement (`TSModuleBlock`) moved into `plus.ts`, where it's defined together with the base rule instead of depending on config array order [Vilda Lipold]
|
|
32
|
+
- `@stylistic/lines-between-class-members` TypeScript enhancement (`exceptAfterOverload`) was never applied because it assumed a 2-element rule value while the base rule has 3; now handled independently of whether the exceptions object is present [Vilda Lipold]
|
|
33
|
+
- `@stylistic/object-curly-newline` TypeScript enhancements (`TSEnumBody`, `TSInterfaceBody`, `TSTypeLiteral`) were never applied because the rule was being read from the wrong base config [Vilda Lipold]
|
|
34
|
+
- `import-x/named` and `import-x/no-named-as-default-member` were disabled on plain JS/CJS/MJS files, where no TypeScript rule replaces them [Vilda Lipold]
|
|
35
|
+
- `no-shadow`, `no-undef`, `no-unused-vars` and `no-use-before-define` were disabled on plain JS/CJS/MJS files, where no TypeScript rule replaces them [Vilda Lipold]
|
|
36
|
+
- `off` rules for best practices were never applied, so 13 core rules kept reporting alongside their `@typescript-eslint` counterparts on TypeScript files [Vilda Lipold]
|
|
37
|
+
### Removed
|
|
38
|
+
- `getVanillaConfig`, an unused helper that had no consumer since the TypeScript migration [Vilda Lipold]
|
|
39
|
+
- Packages
|
|
40
|
+
- @types/espree (espree 11 ships its own type definitions) [Vilda Lipold]
|
|
41
|
+
- tslib (unused; the build does not set `importHelpers`) [Vilda Lipold]
|
|
42
|
+
- Rules
|
|
43
|
+
- @typescript-eslint/no-restricted-imports (deprecated since typescript-eslint 8.64.0; the core `no-restricted-imports` rule now applies as-is on both JavaScript and TypeScript files) [Vilda Lipold]
|
|
44
|
+
- @typescript-eslint/no-loop-func (deprecated since typescript-eslint 8.64.0; the core `no-loop-func` rule now applies as-is on both JavaScript and TypeScript files) [Vilda Lipold]
|
|
45
|
+
### Updated
|
|
46
|
+
- Packages
|
|
47
|
+
- @eslint/config-inspector (3.5.0) [Vilda Lipold]
|
|
48
|
+
- @types/node (24.13.5) [Vilda Lipold]
|
|
49
|
+
- eslint (10.10.0) [Vilda Lipold]
|
|
50
|
+
- eslint-config-vylda-vanilla package (6.0.0) [Vilda Lipold]
|
|
51
|
+
- eslint-import-resolver-typescript (4.4.5) [Vilda Lipold]
|
|
52
|
+
- typescript (6.0.3) [Vilda Lipold]
|
|
53
|
+
- typescript-eslint (8.70.0) [Vilda Lipold]
|
|
54
|
+
### BREAKING
|
|
55
|
+
- The `tsConfig` export is renamed to `tsConfigs`, for symmetry with `vanillaConfigs` and so it is not misread as the TypeScript compiler configuration. The old name is gone, not deprecated. [Vilda Lipold]
|
|
56
|
+
- The `off` config now disables `import-x/named` and `import-x/no-named-as-default-member` instead of `import/named` and `import/no-named-as-default-member`, following vanilla's move from eslint-plugin-import to eslint-plugin-import-x. Anything that re-enabled, overrode or asserted on the old rule ids has to be renamed; left under the old name it is a no-op and the `import-x` rule keeps reporting on TypeScript files. [Vilda Lipold]
|
|
57
|
+
- The TypeScript resolver can no longer be configured or overridden via raw `settings['import/resolver'].typescript` — `import-x/resolver-next` takes exclusive precedence over the legacy `import-x/resolver` / `import/resolver` settings keys, so anything set there is silently ignored. Pass `tsConfigPath` to `getImportConfig()` for the `project` option, and use the new `importResolverAlias` option for path aliases. [Vilda Lipold]
|
|
58
|
+
|
|
59
|
+
## [6.2.1] - 2026-01-23
|
|
60
|
+
### Fixed
|
|
61
|
+
- readme file [Vilda Lipold]
|
|
62
|
+
|
|
7
63
|
## [6.2.0] - 2026-01-21
|
|
8
64
|
### Added
|
|
9
65
|
- Rules
|