@qstanay/eslint-config 1.1.1 → 1.2.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 +6 -0
- package/README.md +31 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project are documented in this file.
|
|
4
4
|
|
|
5
|
+
## [1.2.0] - 2026-11-08
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Document how to set a 4-space indent in a consuming project via `stylistic.indent` for both `defineConfig()` and `nuxt()`. The preset default stays 2 spaces, and `vue/html-indent` follows the same value.
|
|
10
|
+
|
|
5
11
|
## [1.1.1] - 2026-08-16
|
|
6
12
|
|
|
7
13
|
### Fixed
|
package/README.md
CHANGED
|
@@ -211,6 +211,37 @@ defineConfig({
|
|
|
211
211
|
})
|
|
212
212
|
```
|
|
213
213
|
|
|
214
|
+
The preset default stays **2 spaces**. A project can switch to 4 without changing this package. Allowed values are `2` and `4`. `vue/html-indent` follows the same value.
|
|
215
|
+
|
|
216
|
+
Vue or TypeScript package:
|
|
217
|
+
|
|
218
|
+
```js
|
|
219
|
+
import { defineConfig } from '@qstanay/eslint-config'
|
|
220
|
+
|
|
221
|
+
export default defineConfig({
|
|
222
|
+
stylistic: {
|
|
223
|
+
indent: 4,
|
|
224
|
+
},
|
|
225
|
+
})
|
|
226
|
+
```
|
|
227
|
+
|
|
228
|
+
Nuxt:
|
|
229
|
+
|
|
230
|
+
```js
|
|
231
|
+
import withNuxt from './.nuxt/eslint.config.mjs'
|
|
232
|
+
import { nuxt } from '@qstanay/eslint-config/nuxt'
|
|
233
|
+
|
|
234
|
+
export default withNuxt(
|
|
235
|
+
...nuxt({
|
|
236
|
+
stylistic: {
|
|
237
|
+
indent: 4,
|
|
238
|
+
},
|
|
239
|
+
}),
|
|
240
|
+
)
|
|
241
|
+
```
|
|
242
|
+
|
|
243
|
+
Then run `eslint . --fix` in that project.
|
|
244
|
+
|
|
214
245
|
Disable formatting rules entirely:
|
|
215
246
|
|
|
216
247
|
```js
|