eslint-config-vylda-typescript 6.0.2 → 6.0.4
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 +12 -3
- package/README.md +78 -67
- package/eslint.config.mjs +9 -1
- package/index.js +1 -0
- package/package.json +1 -1
package/Changelog.md
CHANGED
|
@@ -4,18 +4,27 @@ 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.
|
|
7
|
+
## [6.0.4] - 2026-01-02
|
|
8
|
+
### Added
|
|
9
|
+
- nonTsConfigFilesRule to getConfig function
|
|
10
|
+
|
|
11
|
+
## [6.0.3] - 2026-01-02
|
|
12
|
+
### Updated
|
|
13
|
+
- Enhance nonTsConfigFiles [Vilda Lipold]
|
|
14
|
+
- Readme [Vilda Lipold]
|
|
15
|
+
|
|
16
|
+
## [6.0.2] - 2026-01-02
|
|
8
17
|
### Fixed
|
|
9
18
|
- index.d.ts for correct types of nonTsConfigFilesRule export [Vilda Lipold]
|
|
10
19
|
|
|
11
|
-
## [6.0.1] -
|
|
20
|
+
## [6.0.1] - 2026-01-02
|
|
12
21
|
### Added
|
|
13
22
|
- Types for nonTsConfigFiles and nonTsConfigFilesRules exports [Vilda Lipold]
|
|
14
23
|
### Updated
|
|
15
24
|
- tsconfig.json to disable emit [Vilda Lipold]
|
|
16
25
|
- Readme [Vilda Lipold]
|
|
17
26
|
|
|
18
|
-
## [6.0.0] -
|
|
27
|
+
## [6.0.0] - 2026-01-02
|
|
19
28
|
### Added
|
|
20
29
|
- Rules
|
|
21
30
|
- @typescript-eslint/no-useless-default-assignment [Vilda Lipold]
|
package/README.md
CHANGED
|
@@ -75,99 +75,110 @@ You can extend these default extensions and dependecies with your own extensions
|
|
|
75
75
|
|
|
76
76
|
```javascript
|
|
77
77
|
// default file pattern for all rules (https://eslint.org/docs/latest/use/configure/configuration-files#configuration-objects)
|
|
78
|
-
export const files = [
|
|
78
|
+
export const files = ['**/*.{cjs,cts,js,mjs,mts,ts}'];
|
|
79
79
|
|
|
80
80
|
// default file pattern for TypeScript rules only
|
|
81
|
-
export const tsFiles = [
|
|
81
|
+
export const tsFiles = ['**/*.{cts,mts,ts}'];
|
|
82
82
|
|
|
83
83
|
// default plugins used in this config
|
|
84
84
|
export const plugins = {
|
|
85
|
-
|
|
86
|
-
|
|
85
|
+
'@stylistic': stylisticPlugin,
|
|
86
|
+
'@typescript-eslint': tsESLint.configs.recommendedTypeCheckedOnly.plugins['@typescript-eslint'],
|
|
87
87
|
import: importPlugin,
|
|
88
88
|
n: nodePlugin,
|
|
89
89
|
perfectionist,
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
// default value for import/extension module settings (https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#importextensions)
|
|
93
|
-
export const defaultImportExtensions = [
|
|
93
|
+
export const defaultImportExtensions = ['.js', '.mjs', '.mts', '.ts'];
|
|
94
94
|
|
|
95
95
|
// default value for import/resolver settings with node resolution (https://github.com/import-js/eslint-plugin-import?tab=readme-ov-file#resolvers)
|
|
96
96
|
export const defaultImportResolverNodeExtensions = [
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
97
|
+
'.js',
|
|
98
|
+
'.json',
|
|
99
|
+
'.mjs',
|
|
100
|
+
'.mts',
|
|
101
|
+
'.svg',
|
|
102
|
+
'.ts',
|
|
103
103
|
];
|
|
104
104
|
|
|
105
105
|
// default value for import/extensions rule granular option (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/extensions.md#rule-details)
|
|
106
106
|
export const defaultImportExtensionsRuleGranularOption = {
|
|
107
|
-
js:
|
|
108
|
-
json:
|
|
109
|
-
svg:
|
|
110
|
-
ts:
|
|
107
|
+
js: 'never',
|
|
108
|
+
json: 'always',
|
|
109
|
+
svg: 'always',
|
|
110
|
+
ts: 'never',
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
// default value for import/no-extraneous-dependencies rule devDependencies option (https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-extraneous-dependencies.md#rule-details)
|
|
114
114
|
export const defaultImportNoExtraneousDependenciesDevDependencies = [
|
|
115
|
-
'espree',
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
115
|
+
'espree/**',
|
|
116
|
+
'test/**',
|
|
117
|
+
'tests/**',
|
|
118
|
+
'spec/**',
|
|
119
119
|
'@testing-library/**',
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
120
|
+
'**/__tests__/**',
|
|
121
|
+
'**/__mocks__/**',
|
|
122
|
+
'test.{js,jsx}',
|
|
123
|
+
'test.{ts,tsx}',
|
|
124
|
+
'test-*.{js,jsx}',
|
|
125
|
+
'test-*.{ts,tsx}',
|
|
126
|
+
'**/*{.,_}{test,spec}.{js,jsx}',
|
|
127
|
+
'**/*{.,_}{test,spec}.{ts,tsx}',
|
|
128
|
+
'**/jest.config.js',
|
|
129
|
+
'**/jest.config.ts',
|
|
130
|
+
'**/jest.setup.js',
|
|
131
|
+
'**/jest.setup.ts',
|
|
132
|
+
'**/vue.config.js',
|
|
133
|
+
'**/vue.config.ts',
|
|
134
|
+
'**/webpack.config.js',
|
|
135
|
+
'**/webpack.config.ts',
|
|
136
|
+
'**/webpack.config.*.js',
|
|
137
|
+
'**/webpack.config.*.ts',
|
|
138
|
+
'**/webpack.config.mjs',
|
|
139
|
+
'**/webpack.config.*.mjs',
|
|
140
|
+
'**/rollup.config.js',
|
|
141
|
+
'**/rollup.config.ts',
|
|
142
|
+
'**/rollup.config.*.js',
|
|
143
|
+
'**/rollup.config.*.ts',
|
|
144
|
+
'**/gulpfile.js',
|
|
145
|
+
'**/gulpfile.ts',
|
|
146
|
+
'**/gulpfile.*.js',
|
|
147
|
+
'**/gulpfile.*.ts',
|
|
148
|
+
'**/Gruntfile{,.js}',
|
|
149
|
+
'**/Gruntfile{,.ts}',
|
|
150
|
+
'**/protractor.conf.js',
|
|
151
|
+
'**/protractor.conf.ts',
|
|
152
|
+
'**/protractor.conf.*.js',
|
|
153
|
+
'**/protractor.conf.*.ts',
|
|
154
|
+
'**/karma.conf.js',
|
|
155
|
+
'**/karma.conf.ts',
|
|
156
|
+
'**/eslint.config.mjs',
|
|
157
|
+
'./rules/*.mjs',
|
|
158
|
+
'**/vitest.config.mjs',
|
|
159
|
+
'**/vitestSetup.mjs',
|
|
160
|
+
'**/tailwind.config.mjs',
|
|
161
|
+
'**/vite.config.js',
|
|
162
|
+
'**/vite.config.ts',
|
|
163
|
+
'**/vite.config.mjs',
|
|
164
|
+
'**/vite.config.*.js',
|
|
165
|
+
'**/vite.config.*.ts',
|
|
166
|
+
'**/vite.config*.mjs',
|
|
167
|
+
'**/vitest.config.mjs',
|
|
168
|
+
'**/vitest.config.js',
|
|
169
|
+
'**/vitest.config.ts',
|
|
167
170
|
];
|
|
168
171
|
|
|
169
172
|
// files that are not parsed by typescript parser (js configs)
|
|
170
|
-
export const nonTsConfigFiles = [
|
|
173
|
+
export const nonTsConfigFiles = [
|
|
174
|
+
'**/eslint.config.mjs',
|
|
175
|
+
'**/vite.config.mjs',
|
|
176
|
+
'**/vite.config.mts',
|
|
177
|
+
'**/vite.config.ts',
|
|
178
|
+
'**/vitest.config.mjs',
|
|
179
|
+
'**/vitest.config.mts',
|
|
180
|
+
'**/vitest.config.ts',
|
|
181
|
+
];
|
|
171
182
|
```
|
|
172
183
|
|
|
173
184
|
All default values are optional and can be overridden in the `eslint.config.mjs` file.
|
package/eslint.config.mjs
CHANGED
|
@@ -9,7 +9,15 @@ import { getVanillaConfig, tsConfig } from './rules/index.mjs';
|
|
|
9
9
|
export const barrelsFiles = ['**/index.{js,mjs,mts,ts}'];
|
|
10
10
|
export const files = ['**/*.{cjs,cts,js,mjs,mts,ts}'];
|
|
11
11
|
export const tsFiles = ['**/*.{cts,mts,ts}'];
|
|
12
|
-
export const nonTsConfigFiles = [
|
|
12
|
+
export const nonTsConfigFiles = [
|
|
13
|
+
'**/eslint.config.mjs',
|
|
14
|
+
'**/vite.config.mjs',
|
|
15
|
+
'**/vite.config.mts',
|
|
16
|
+
'**/vite.config.ts',
|
|
17
|
+
'**/vitest.config.mjs',
|
|
18
|
+
'**/vitest.config.mts',
|
|
19
|
+
'**/vitest.config.ts',
|
|
20
|
+
];
|
|
13
21
|
|
|
14
22
|
const [{
|
|
15
23
|
// @ts-ignore
|
package/index.js
CHANGED