@santi020k/eslint-config-basic 0.6.0 → 0.7.1
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 +29 -0
- package/README.md +36 -20
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# @santi020k/eslint-config-basic
|
|
2
2
|
|
|
3
|
+
## 0.7.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#43](https://github.com/santi020k/eslint-config-basic/pull/43) [`6ceaa37`](https://github.com/santi020k/eslint-config-basic/commit/6ceaa370b9d5f4dfc3819760367bceb5cfd0ba38) Thanks [@santi020k](https://github.com/santi020k)! - Sync README documentation with implemented features (Vue, Playwright).
|
|
8
|
+
|
|
9
|
+
- Updated dependencies []:
|
|
10
|
+
- @santi020k/eslint-config-astro@0.7.1
|
|
11
|
+
- @santi020k/eslint-config-core@0.7.1
|
|
12
|
+
- @santi020k/eslint-config-expo@0.7.1
|
|
13
|
+
- @santi020k/eslint-config-nest@0.7.1
|
|
14
|
+
- @santi020k/eslint-config-next@0.7.1
|
|
15
|
+
- @santi020k/eslint-config-optionals@0.7.1
|
|
16
|
+
- @santi020k/eslint-config-react@0.7.1
|
|
17
|
+
- @santi020k/eslint-config-typescript@0.7.1
|
|
18
|
+
- @santi020k/eslint-config-vue@0.7.1
|
|
19
|
+
|
|
20
|
+
## 0.7.0
|
|
21
|
+
|
|
22
|
+
### Minor Changes
|
|
23
|
+
|
|
24
|
+
- [#41](https://github.com/santi020k/eslint-config-basic/pull/41) [`d802dfb`](https://github.com/santi020k/eslint-config-basic/commit/d802dfb2cb2f0813d91170771b3b21b3cf3b5e10) Thanks [@santi020k](https://github.com/santi020k)! - Add Playwright support as an optional configuration.
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [[`d802dfb`](https://github.com/santi020k/eslint-config-basic/commit/d802dfb2cb2f0813d91170771b3b21b3cf3b5e10)]:
|
|
29
|
+
- @santi020k/eslint-config-core@0.5.0
|
|
30
|
+
- @santi020k/eslint-config-optionals@0.5.0
|
|
31
|
+
|
|
3
32
|
## 0.6.0
|
|
4
33
|
|
|
5
34
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -94,6 +94,12 @@ export default [
|
|
|
94
94
|
...eslintConfig({ config: [ConfigOption.Nest] })
|
|
95
95
|
// Your custom config
|
|
96
96
|
]
|
|
97
|
+
|
|
98
|
+
// Vue project
|
|
99
|
+
export default [
|
|
100
|
+
...eslintConfig({ config: [ConfigOption.Vue] })
|
|
101
|
+
// Your custom config
|
|
102
|
+
]
|
|
97
103
|
```
|
|
98
104
|
|
|
99
105
|
### Optional Usage
|
|
@@ -119,10 +125,12 @@ export default [
|
|
|
119
125
|
OptionalOption.Mdx,
|
|
120
126
|
// Markdown
|
|
121
127
|
OptionalOption.Markdown,
|
|
122
|
-
// Stencil
|
|
123
|
-
OptionalOption.Stencil,
|
|
124
128
|
// SonarJS
|
|
125
129
|
OptionalOption.Sonarjs,
|
|
130
|
+
// Stencil
|
|
131
|
+
OptionalOption.Stencil,
|
|
132
|
+
// Playwright
|
|
133
|
+
OptionalOption.Playwright,
|
|
126
134
|
// Prettier
|
|
127
135
|
OptionalOption.Prettier
|
|
128
136
|
]
|
|
@@ -247,7 +255,6 @@ This package includes robust defaults for Astro projects, including:
|
|
|
247
255
|
|
|
248
256
|
## Opinionated but Flexible
|
|
249
257
|
|
|
250
|
-
|
|
251
258
|
This ESLint configuration is based on my personal preferences and practices, and it may evolve over time. **Important:** I recommend using a fixed version to avoid unexpected changes that might introduce new linter errors. To ensure stability, do not use `^` or `~` when specifying the version. If a rule feels too strict, consider changing it from an error to a warning to allow more flexibility during development.
|
|
252
259
|
|
|
253
260
|
## Scripts
|
|
@@ -280,8 +287,8 @@ Add the following useful scripts to your `package.json`:
|
|
|
280
287
|
- [x] Refactored rules structure (Monorepo transition)
|
|
281
288
|
- [x] Astro and Expo support
|
|
282
289
|
- [x] Enhanced documentation
|
|
283
|
-
- [
|
|
284
|
-
- [
|
|
290
|
+
- [x] Additional framework support (contributions welcome!):
|
|
291
|
+
- [x] Vue
|
|
285
292
|
- [ ] Angular
|
|
286
293
|
- [x] NestJS
|
|
287
294
|
|
|
@@ -293,21 +300,30 @@ Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md)
|
|
|
293
300
|
|
|
294
301
|
Special thanks to the developers and maintainers of the following libraries, which form the backbone of this ESLint configuration:
|
|
295
302
|
|
|
296
|
-
- eslint-config-standard
|
|
297
|
-
- eslint-plugin-import
|
|
298
|
-
- eslint-plugin-
|
|
299
|
-
- eslint-plugin-
|
|
300
|
-
- eslint-plugin-
|
|
301
|
-
- eslint-plugin-react
|
|
302
|
-
- eslint-plugin-
|
|
303
|
-
- eslint-plugin-simple-import-sort
|
|
304
|
-
- eslint-plugin-sonarjs
|
|
305
|
-
- eslint-plugin-unused-imports
|
|
306
|
-
- @stylistic/eslint-plugin
|
|
307
|
-
- @typescript-eslint
|
|
308
|
-
- @cspell/eslint-plugin
|
|
309
|
-
- eslint-plugin-tailwindcss
|
|
310
|
-
- eslint-plugin-vitest
|
|
303
|
+
- [eslint-config-standard](https://www.npmjs.com/package/eslint-config-standard)
|
|
304
|
+
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
|
|
305
|
+
- [eslint-plugin-n](https://www.npmjs.com/package/eslint-plugin-n)
|
|
306
|
+
- [eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise)
|
|
307
|
+
- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
|
|
308
|
+
- [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
|
|
309
|
+
- [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y)
|
|
310
|
+
- [eslint-plugin-simple-import-sort](https://www.npmjs.com/package/eslint-plugin-simple-import-sort)
|
|
311
|
+
- [eslint-plugin-sonarjs](https://www.npmjs.com/package/eslint-plugin-sonarjs)
|
|
312
|
+
- [eslint-plugin-unused-imports](https://www.npmjs.com/package/eslint-plugin-unused-imports)
|
|
313
|
+
- [@stylistic/eslint-plugin](https://www.npmjs.com/package/@stylistic/eslint-plugin)
|
|
314
|
+
- [@typescript-eslint](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
|
315
|
+
- [@cspell/eslint-plugin](https://www.npmjs.com/package/@cspell/eslint-plugin)
|
|
316
|
+
- [eslint-plugin-better-tailwindcss](https://www.npmjs.com/package/eslint-plugin-better-tailwindcss)
|
|
317
|
+
- [eslint-plugin-vitest](https://www.npmjs.com/package/eslint-plugin-vitest)
|
|
318
|
+
- [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
|
|
319
|
+
- [eslint-plugin-next](https://www.npmjs.com/package/eslint-plugin-next)
|
|
320
|
+
- [eslint-plugin-vue](https://www.npmjs.com/package/eslint-plugin-vue)
|
|
321
|
+
- [eslint-plugin-unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)
|
|
322
|
+
- [eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp)
|
|
323
|
+
- [eslint-plugin-i18next](https://www.npmjs.com/package/eslint-plugin-i18next)
|
|
324
|
+
- [eslint-plugin-mdx](https://www.npmjs.com/package/eslint-plugin-mdx)
|
|
325
|
+
- [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier)
|
|
326
|
+
- [eslint-config-expo](https://www.npmjs.com/package/eslint-config-expo)
|
|
311
327
|
- ...and many others
|
|
312
328
|
|
|
313
329
|
Their ongoing contributions help maintain the high standards of code quality we all strive for.
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export { astroConfig } from '@santi020k/eslint-config-astro';
|
|
|
7
7
|
export { expoConfig } from '@santi020k/eslint-config-expo';
|
|
8
8
|
export { nestConfig } from '@santi020k/eslint-config-nest';
|
|
9
9
|
export { vueConfig } from '@santi020k/eslint-config-vue';
|
|
10
|
-
export { cspell, i18next, markdown, mdx, prettier, regexp, stencil, tailwind, unicorn, vitest } from '@santi020k/eslint-config-optionals';
|
|
10
|
+
export { cspell, i18next, markdown, mdx, playwright, prettier, regexp, sonarjs, stencil, tailwind, unicorn, vitest } from '@santi020k/eslint-config-optionals';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Generates the ESLint configuration array, applying configurations
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,9 @@ import {
|
|
|
27
27
|
stencil,
|
|
28
28
|
tailwind,
|
|
29
29
|
unicorn,
|
|
30
|
-
vitest
|
|
30
|
+
vitest,
|
|
31
|
+
playwright,
|
|
32
|
+
sonarjs
|
|
31
33
|
} from "@santi020k/eslint-config-optionals";
|
|
32
34
|
import { astroConfig as astroConfig2 } from "@santi020k/eslint-config-astro";
|
|
33
35
|
import {
|
|
@@ -47,9 +49,10 @@ import {
|
|
|
47
49
|
i18next as i18next2,
|
|
48
50
|
markdown as markdown2,
|
|
49
51
|
mdx as mdx2,
|
|
52
|
+
playwright as playwright2,
|
|
50
53
|
prettier as prettier2,
|
|
51
54
|
regexp as regexp2,
|
|
52
|
-
sonarjs,
|
|
55
|
+
sonarjs as sonarjs2,
|
|
53
56
|
stencil as stencil2,
|
|
54
57
|
tailwind as tailwind2,
|
|
55
58
|
unicorn as unicorn2,
|
|
@@ -92,7 +95,8 @@ var eslintConfig = ({
|
|
|
92
95
|
...uniqueOptionals.includes(OptionalOption2.Mdx) ? mdx2 : [],
|
|
93
96
|
...uniqueOptionals.includes(OptionalOption2.Markdown) ? markdown2 : [],
|
|
94
97
|
...uniqueOptionals.includes(OptionalOption2.Unicorn) ? unicorn2 : [],
|
|
95
|
-
...uniqueOptionals.includes(OptionalOption2.Sonarjs) ?
|
|
98
|
+
...uniqueOptionals.includes(OptionalOption2.Sonarjs) ? sonarjs2 : [],
|
|
99
|
+
...uniqueOptionals.includes(OptionalOption2.Playwright) ? playwright2 : [],
|
|
96
100
|
// Prettier must be last to override stylistic rules
|
|
97
101
|
...uniqueOptionals.includes(OptionalOption2.Prettier) ? prettier2 : []
|
|
98
102
|
];
|
|
@@ -116,9 +120,11 @@ export {
|
|
|
116
120
|
mdx,
|
|
117
121
|
nestConfig,
|
|
118
122
|
nextConfig,
|
|
123
|
+
playwright,
|
|
119
124
|
prettier,
|
|
120
125
|
reactConfig,
|
|
121
126
|
regexp,
|
|
127
|
+
sonarjs,
|
|
122
128
|
stencil,
|
|
123
129
|
tailwind,
|
|
124
130
|
tsConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@santi020k/eslint-config-basic",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1",
|
|
4
4
|
"description": "A comprehensive ESLint configuration package for JavaScript, TypeScript, and React projects.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"postpack": "rm -f README.md && ln -s ../../README.md ./README.md"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@santi020k/eslint-config-astro": "
|
|
31
|
-
"@santi020k/eslint-config-core": "
|
|
32
|
-
"@santi020k/eslint-config-expo": "
|
|
33
|
-
"@santi020k/eslint-config-nest": "
|
|
34
|
-
"@santi020k/eslint-config-next": "
|
|
35
|
-
"@santi020k/eslint-config-optionals": "
|
|
36
|
-
"@santi020k/eslint-config-react": "
|
|
37
|
-
"@santi020k/eslint-config-typescript": "
|
|
38
|
-
"@santi020k/eslint-config-vue": "
|
|
30
|
+
"@santi020k/eslint-config-astro": "^0.7.1",
|
|
31
|
+
"@santi020k/eslint-config-core": "^0.7.1",
|
|
32
|
+
"@santi020k/eslint-config-expo": "^0.7.1",
|
|
33
|
+
"@santi020k/eslint-config-nest": "^0.7.1",
|
|
34
|
+
"@santi020k/eslint-config-next": "^0.7.1",
|
|
35
|
+
"@santi020k/eslint-config-optionals": "^0.7.1",
|
|
36
|
+
"@santi020k/eslint-config-react": "^0.7.1",
|
|
37
|
+
"@santi020k/eslint-config-typescript": "^0.7.1",
|
|
38
|
+
"@santi020k/eslint-config-vue": "^0.7.1",
|
|
39
39
|
"@eslint/compat": "^2.0.3",
|
|
40
40
|
"@eslint/js": "^10.0.1",
|
|
41
41
|
"@typescript-eslint/eslint-plugin": "^8.57.0",
|