@ntnyq/eslint-config 3.3.1 → 3.5.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 +13 -12
- package/dist/index.cjs +447 -362
- package/dist/index.d.cts +74 -18
- package/dist/index.d.ts +74 -18
- package/dist/index.js +439 -353
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -9,10 +9,11 @@
|
|
|
9
9
|
|
|
10
10
|
## Features
|
|
11
11
|
|
|
12
|
-
- Opinionable: single quotes, no semi
|
|
12
|
+
- Opinionable: single quotes, no semi, trailing comma, etc.
|
|
13
13
|
- Designed to work alongside with [Prettier](https://prettier.io)
|
|
14
14
|
- Respect `.gitignore` via [eslint-config-flat-gitignore](https://github.com/antfu/eslint-config-flat-gitignore)
|
|
15
|
-
- Out-of-box support for TypeScript, Vue, JSON, Markdown, YAML, etc.
|
|
15
|
+
- Out-of-box support for TypeScript, Vue, JSON, Markdown, YAML, TOML etc.
|
|
16
|
+
- Strict but provides useful rules to guard your codebase
|
|
16
17
|
- [ESLint flat config](https://eslint.org/docs/latest/use/configure/configuration-files) for ESLint v9.5.0+
|
|
17
18
|
|
|
18
19
|
## Install
|
|
@@ -109,20 +110,24 @@ Check for detail in:
|
|
|
109
110
|
|
|
110
111
|
```ts
|
|
111
112
|
export interface ConfigOptions extends ConfigOptionsInternal {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
sort?: boolean | ConfigSortOptions
|
|
113
|
+
node?: ConfigNodeOptions
|
|
115
114
|
|
|
116
|
-
|
|
115
|
+
jsdoc?: ConfigJsdocOptions
|
|
117
116
|
|
|
118
|
-
|
|
117
|
+
ignores?: ConfigIgnoresOptions
|
|
119
118
|
|
|
120
119
|
imports?: ConfigImportsOptions
|
|
121
120
|
|
|
122
|
-
|
|
121
|
+
command?: ConfigCommandOptions
|
|
122
|
+
|
|
123
|
+
comments?: ConfigCommentsOptions
|
|
123
124
|
|
|
124
125
|
javascript?: ConfigJavaScriptOptions
|
|
125
126
|
|
|
127
|
+
sort?: boolean | ConfigSortOptions
|
|
128
|
+
|
|
129
|
+
gitignore?: boolean | ConfigGitIgnoreOptions
|
|
130
|
+
|
|
126
131
|
stylistic?: boolean | ConfigStylisticOptions
|
|
127
132
|
|
|
128
133
|
typescript?: boolean | ConfigTypeScriptOptions
|
|
@@ -133,10 +138,6 @@ export interface ConfigOptions extends ConfigOptionsInternal {
|
|
|
133
138
|
|
|
134
139
|
perfectionist?: boolean | ConfigPerfectionistOptions
|
|
135
140
|
|
|
136
|
-
comments?: boolean | ConfigCommentsOptions
|
|
137
|
-
|
|
138
|
-
jsdoc?: boolean | ConfigJsdocOptions
|
|
139
|
-
|
|
140
141
|
unocss?: boolean | ConfigUnoCSSOptions
|
|
141
142
|
|
|
142
143
|
regexp?: boolean | ConfigRegexpOptions
|