@santi020k/eslint-config-basic 0.6.0 → 0.7.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 +12 -0
- package/README.md +24 -16
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @santi020k/eslint-config-basic
|
|
2
2
|
|
|
3
|
+
## 0.7.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#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.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [[`d802dfb`](https://github.com/santi020k/eslint-config-basic/commit/d802dfb2cb2f0813d91170771b3b21b3cf3b5e10)]:
|
|
12
|
+
- @santi020k/eslint-config-core@0.5.0
|
|
13
|
+
- @santi020k/eslint-config-optionals@0.5.0
|
|
14
|
+
|
|
3
15
|
## 0.6.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -247,7 +247,6 @@ This package includes robust defaults for Astro projects, including:
|
|
|
247
247
|
|
|
248
248
|
## Opinionated but Flexible
|
|
249
249
|
|
|
250
|
-
|
|
251
250
|
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
251
|
|
|
253
252
|
## Scripts
|
|
@@ -293,21 +292,30 @@ Contributions are welcome! Please read the [Contributing Guide](CONTRIBUTING.md)
|
|
|
293
292
|
|
|
294
293
|
Special thanks to the developers and maintainers of the following libraries, which form the backbone of this ESLint configuration:
|
|
295
294
|
|
|
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
|
|
295
|
+
- [eslint-config-standard](https://www.npmjs.com/package/eslint-config-standard)
|
|
296
|
+
- [eslint-plugin-import](https://www.npmjs.com/package/eslint-plugin-import)
|
|
297
|
+
- [eslint-plugin-n](https://www.npmjs.com/package/eslint-plugin-n)
|
|
298
|
+
- [eslint-plugin-promise](https://www.npmjs.com/package/eslint-plugin-promise)
|
|
299
|
+
- [eslint-plugin-react](https://www.npmjs.com/package/eslint-plugin-react)
|
|
300
|
+
- [eslint-plugin-react-hooks](https://www.npmjs.com/package/eslint-plugin-react-hooks)
|
|
301
|
+
- [eslint-plugin-jsx-a11y](https://www.npmjs.com/package/eslint-plugin-jsx-a11y)
|
|
302
|
+
- [eslint-plugin-simple-import-sort](https://www.npmjs.com/package/eslint-plugin-simple-import-sort)
|
|
303
|
+
- [eslint-plugin-sonarjs](https://www.npmjs.com/package/eslint-plugin-sonarjs)
|
|
304
|
+
- [eslint-plugin-unused-imports](https://www.npmjs.com/package/eslint-plugin-unused-imports)
|
|
305
|
+
- [@stylistic/eslint-plugin](https://www.npmjs.com/package/@stylistic/eslint-plugin)
|
|
306
|
+
- [@typescript-eslint](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)
|
|
307
|
+
- [@cspell/eslint-plugin](https://www.npmjs.com/package/@cspell/eslint-plugin)
|
|
308
|
+
- [eslint-plugin-better-tailwindcss](https://www.npmjs.com/package/eslint-plugin-better-tailwindcss)
|
|
309
|
+
- [eslint-plugin-vitest](https://www.npmjs.com/package/eslint-plugin-vitest)
|
|
310
|
+
- [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
|
|
311
|
+
- [eslint-plugin-next](https://www.npmjs.com/package/eslint-plugin-next)
|
|
312
|
+
- [eslint-plugin-vue](https://www.npmjs.com/package/eslint-plugin-vue)
|
|
313
|
+
- [eslint-plugin-unicorn](https://www.npmjs.com/package/eslint-plugin-unicorn)
|
|
314
|
+
- [eslint-plugin-regexp](https://www.npmjs.com/package/eslint-plugin-regexp)
|
|
315
|
+
- [eslint-plugin-i18next](https://www.npmjs.com/package/eslint-plugin-i18next)
|
|
316
|
+
- [eslint-plugin-mdx](https://www.npmjs.com/package/eslint-plugin-mdx)
|
|
317
|
+
- [eslint-config-prettier](https://www.npmjs.com/package/eslint-config-prettier)
|
|
318
|
+
- [eslint-config-expo](https://www.npmjs.com/package/eslint-config-expo)
|
|
311
319
|
- ...and many others
|
|
312
320
|
|
|
313
321
|
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