@ntnyq/eslint-config 3.10.4 → 3.12.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/README.md +19 -4
- package/dist/index.cjs +338 -200
- package/dist/index.d.cts +398 -53
- package/dist/index.d.ts +398 -53
- package/dist/index.js +399 -266
- package/package.json +37 -23
package/README.md
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
> Flat ESLint config for JavaScript, TypeScript, Vue 2, Vue 3, Prettier.
|
|
4
4
|
|
|
5
5
|
[](https://github.com/ntnyq/eslint-config/actions)
|
|
6
|
-
[](https://www.npmjs.com/package/@ntnyq/eslint-config)
|
|
7
6
|
[](https://www.npmjs.com/package/@ntnyq/eslint-config/v/latest)
|
|
7
|
+
[](https://www.npmjs.com/package/@ntnyq/eslint-config)
|
|
8
8
|
[](https://github.com/ntnyq/eslint-config/blob/main/LICENSE)
|
|
9
9
|
|
|
10
10
|
## Features
|
|
@@ -87,7 +87,8 @@ export default defineConfig({
|
|
|
87
87
|
"prettier.enable": true,
|
|
88
88
|
"editor.formatOnSave": true,
|
|
89
89
|
"editor.codeActionsOnSave": {
|
|
90
|
-
"source.fixAll.eslint": "explicit"
|
|
90
|
+
"source.fixAll.eslint": "explicit",
|
|
91
|
+
"source.organizeImports": "never"
|
|
91
92
|
},
|
|
92
93
|
"editor.defaultFormatter": "esbenp.prettier-vscode",
|
|
93
94
|
"eslint.validate": [
|
|
@@ -165,12 +166,12 @@ export interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions
|
|
|
165
166
|
gitignore?: boolean | ConfigGitIgnoreOptions
|
|
166
167
|
jsonc?: boolean | ConfigJsoncOptions
|
|
167
168
|
markdown?: boolean | ConfigMarkdownOptions
|
|
169
|
+
ntnyq?: boolean | ConfigNtnyqOptions
|
|
168
170
|
perfectionist?: boolean | ConfigPerfectionistOptions
|
|
169
171
|
pinia?: boolean | ConfigPiniaOptions
|
|
170
172
|
prettier?: boolean | ConfigPrettierOptions
|
|
171
173
|
regexp?: boolean | ConfigRegexpOptions
|
|
172
174
|
sort?: boolean | ConfigSortOptions
|
|
173
|
-
stylistic?: boolean | ConfigStylisticOptions
|
|
174
175
|
test?: boolean | ConfigTestOptions
|
|
175
176
|
toml?: boolean | ConfigTomlOptions
|
|
176
177
|
typescript?: boolean | ConfigTypeScriptOptions
|
|
@@ -180,9 +181,23 @@ export interface ConfigOptions extends ConfigOptionsInternal, OptionsExtensions
|
|
|
180
181
|
yml?: boolean | ConfigYmlOptions
|
|
181
182
|
|
|
182
183
|
/**
|
|
183
|
-
*
|
|
184
|
+
* disabled by default
|
|
184
185
|
*/
|
|
185
186
|
svgo?: boolean | ConfigSVGOOptions
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* disabled by default
|
|
190
|
+
*
|
|
191
|
+
* require `eslint-plugin-eslint-plugin` installed mannally
|
|
192
|
+
*/
|
|
193
|
+
eslintPlugin?: boolean | ConfigESLintPluginOptions
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* disabled by default
|
|
197
|
+
*
|
|
198
|
+
* require `@stylistic/eslint-plugin` installed mannally
|
|
199
|
+
*/
|
|
200
|
+
stylistic?: boolean | ConfigStylisticOptions
|
|
186
201
|
}
|
|
187
202
|
```
|
|
188
203
|
|