@ntnyq/eslint-config 5.0.0-beta.2 → 5.0.0-beta.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/README.md CHANGED
@@ -49,9 +49,30 @@ Highly recommended using **`eslint.config.mjs`** as the config file :
49
49
 
50
50
  import { defineESLintConfig } from '@ntnyq/eslint-config'
51
51
 
52
- export default defineESLintConfig({
52
+ export default defineESLintConfig(
53
53
  // Options here
54
- })
54
+ {
55
+ // Enable a config
56
+ svgo: true,
57
+ // Disable a config
58
+ jsdoc: false,
59
+ vue: {
60
+ // Overrides built-in rules
61
+ overrides: {
62
+ 'vue/slot-name-casing': 'off',
63
+ },
64
+ },
65
+ },
66
+ // Optional user configs here
67
+ [
68
+ {
69
+ files: ['**/utils/*.ts'],
70
+ rules: {
71
+ 'antfu/top-level-function': 'error',
72
+ },
73
+ },
74
+ ],
75
+ )
55
76
  ```
56
77
 
57
78
  Add scripts `lint` in `package.json`:
@@ -94,11 +115,9 @@ bun add prettier @ntnyq/prettier-config -D
94
115
  // prettier.config.mjs
95
116
  // @ts-check
96
117
 
97
- import { config, defineConfig } from '@ntnyq/prettier-config'
118
+ import { defineConfig } from '@ntnyq/prettier-config'
98
119
 
99
120
  export default defineConfig({
100
- ...config,
101
-
102
121
  // overrides if needed
103
122
  overrides: [
104
123
  {
@@ -204,11 +223,8 @@ export interface ConfigOptions {
204
223
  command?: ConfigCommandOptions
205
224
  eslintComments?: ConfigESLintCommentsOptions
206
225
  ignores?: ConfigIgnoresOptions
207
- importX?: ConfigImportXOptions
208
226
  javascript?: ConfigJavaScriptOptions
209
- jsdoc?: ConfigJsdocOptions
210
227
  node?: ConfigNodeOptions
211
- specials?: ConfigSpecialsOptions
212
228
 
213
229
  /**
214
230
  * Configs bellow can be disabled
@@ -218,6 +234,8 @@ export interface ConfigOptions {
218
234
  depend?: boolean | ConfigDependOptions
219
235
  githubAction?: boolean | ConfigGitHubActionOptions
220
236
  gitignore?: boolean | ConfigGitIgnoreOptions
237
+ importX?: boolean | ConfigImportXOptions
238
+ jsdoc?: boolean | ConfigJsdocOptions
221
239
  jsonc?: boolean | ConfigJsoncOptions
222
240
  markdown?: boolean | ConfigMarkdownOptions
223
241
  ntnyq?: boolean | ConfigNtnyqOptions
@@ -226,6 +244,7 @@ export interface ConfigOptions {
226
244
  prettier?: boolean | ConfigPrettierOptions
227
245
  regexp?: boolean | ConfigRegexpOptions
228
246
  sort?: boolean | ConfigSortOptions
247
+ specials?: boolean | ConfigSpecialsOptions
229
248
  test?: boolean | ConfigTestOptions
230
249
  toml?: boolean | ConfigTomlOptions
231
250
  typescript?: boolean | ConfigTypeScriptOptions
@@ -240,6 +259,7 @@ export interface ConfigOptions {
240
259
  astro?: boolean | ConfigAstroOptions
241
260
  html?: boolean | ConfigHtmlOptions
242
261
  pnpm?: boolean | ConfigPnpmOptions
262
+ svelte?: boolean | ConfigSvelteOptions
243
263
  svgo?: boolean | ConfigSVGOOptions
244
264
  eslintPlugin?: boolean | ConfigESLintPluginOptions
245
265
  }