@santi020k/eslint-config-basic 0.5.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 ADDED
@@ -0,0 +1,141 @@
1
+ # @santi020k/eslint-config-basic
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
+
15
+ ## 0.6.0
16
+
17
+ ### Minor Changes
18
+
19
+ - [#39](https://github.com/santi020k/eslint-config-basic/pull/39) [`1c11dec`](https://github.com/santi020k/eslint-config-basic/commit/1c11decd67a9874ff42f98a7ac455216313c952f) Thanks [@santi020k](https://github.com/santi020k)! - feat(astro): add robust defaults and virtual script support for Astro 5+
20
+ feat(core): standardize internal dependencies to workspace:\* for better monorepo development
21
+ docs: add Tailwind CSS v4 compatibility notes and workarounds to README
22
+
23
+ ### Patch Changes
24
+
25
+ - [#39](https://github.com/santi020k/eslint-config-basic/pull/39) [`1c11dec`](https://github.com/santi020k/eslint-config-basic/commit/1c11decd67a9874ff42f98a7ac455216313c952f) Thanks [@santi020k](https://github.com/santi020k)! - Fix missing README in published package by ensuring symlinks are correctly handled during `prepack` and `postpack`, and explicitly including `README.md` and `CHANGELOG.md` in the `files` array.
26
+
27
+ - [#39](https://github.com/santi020k/eslint-config-basic/pull/39) [`1c11dec`](https://github.com/santi020k/eslint-config-basic/commit/1c11decd67a9874ff42f98a7ac455216313c952f) Thanks [@santi020k](https://github.com/santi020k)! - refactor(optionals): replace eslint-plugin-tailwindcss with eslint-plugin-better-tailwindcss for better Tailwind v4 support
28
+
29
+ - Updated dependencies [[`1c11dec`](https://github.com/santi020k/eslint-config-basic/commit/1c11decd67a9874ff42f98a7ac455216313c952f), [`1c11dec`](https://github.com/santi020k/eslint-config-basic/commit/1c11decd67a9874ff42f98a7ac455216313c952f)]:
30
+ - @santi020k/eslint-config-astro@0.3.0
31
+ - @santi020k/eslint-config-core@0.4.2
32
+ - @santi020k/eslint-config-typescript@0.1.2
33
+ - @santi020k/eslint-config-react@0.1.2
34
+ - @santi020k/eslint-config-next@0.1.2
35
+ - @santi020k/eslint-config-expo@0.2.2
36
+ - @santi020k/eslint-config-nest@0.2.2
37
+ - @santi020k/eslint-config-vue@0.2.2
38
+ - @santi020k/eslint-config-optionals@0.4.2
39
+
40
+ ## 0.5.0
41
+
42
+ ### Minor Changes
43
+
44
+ - [#36](https://github.com/santi020k/eslint-config-basic/pull/36) [`85d6a5e`](https://github.com/santi020k/eslint-config-basic/commit/85d6a5e91f5322445eb874fa45693f8368ab4ca4) Thanks [@santi020k](https://github.com/santi020k)! - feat(astro): add robust defaults and virtual script support for Astro 5+
45
+ feat(core): standardize internal dependencies to workspace:\* for better monorepo development
46
+ docs: add Tailwind CSS v4 compatibility notes and workarounds to README
47
+
48
+ ### Patch Changes
49
+
50
+ - [#36](https://github.com/santi020k/eslint-config-basic/pull/36) [`85d6a5e`](https://github.com/santi020k/eslint-config-basic/commit/85d6a5e91f5322445eb874fa45693f8368ab4ca4) Thanks [@santi020k](https://github.com/santi020k)! - refactor(optionals): replace eslint-plugin-tailwindcss with eslint-plugin-better-tailwindcss for better Tailwind v4 support
51
+
52
+ - Updated dependencies [[`85d6a5e`](https://github.com/santi020k/eslint-config-basic/commit/85d6a5e91f5322445eb874fa45693f8368ab4ca4), [`85d6a5e`](https://github.com/santi020k/eslint-config-basic/commit/85d6a5e91f5322445eb874fa45693f8368ab4ca4)]:
53
+ - @santi020k/eslint-config-astro@0.2.0
54
+ - @santi020k/eslint-config-core@0.4.1
55
+ - @santi020k/eslint-config-typescript@0.1.1
56
+ - @santi020k/eslint-config-react@0.1.1
57
+ - @santi020k/eslint-config-next@0.1.1
58
+ - @santi020k/eslint-config-expo@0.2.1
59
+ - @santi020k/eslint-config-nest@0.2.1
60
+ - @santi020k/eslint-config-vue@0.2.1
61
+ - @santi020k/eslint-config-optionals@0.4.1
62
+
63
+ ## 0.4.0
64
+
65
+ ### Minor Changes
66
+
67
+ - [#34](https://github.com/santi020k/eslint-config-basic/pull/34) [`f015876`](https://github.com/santi020k/eslint-config-basic/commit/f015876442b88b395cd3775b06f829349dd34d3a) Thanks [@santi020k](https://github.com/santi020k)! - feat: add eslint-plugin-sonarjs as optional config
68
+ chore: remove tailwindcss from playground and test package dependencies
69
+ docs: update AI Agent skills in README
70
+
71
+ ### Patch Changes
72
+
73
+ - Updated dependencies [[`f015876`](https://github.com/santi020k/eslint-config-basic/commit/f015876442b88b395cd3775b06f829349dd34d3a)]:
74
+ - @santi020k/eslint-config-core@0.4.0
75
+ - @santi020k/eslint-config-optionals@0.4.0
76
+
77
+ ## 0.3.0
78
+
79
+ ### Minor Changes
80
+
81
+ - [#28](https://github.com/santi020k/eslint-config-basic/pull/28) [`162afdb`](https://github.com/santi020k/eslint-config-basic/commit/162afdb2f0a30714487915bdf083234426018ad2) Thanks [@santi020k](https://github.com/santi020k)! - feat: add `regexp` optional config with `eslint-plugin-regexp`
82
+
83
+ - New `OptionalOption.Regexp` to enable regex linting via `eslint-plugin-regexp`
84
+ - Catches common regex mistakes: exponential backtracking, unnecessary escapes, and optimizable character classes
85
+ - Uses recommended rules with selective overrides for smoother adoption
86
+
87
+ ### Patch Changes
88
+
89
+ - [#27](https://github.com/santi020k/eslint-config-basic/pull/27) [`577abbe`](https://github.com/santi020k/eslint-config-basic/commit/577abbe49c2a83f6ecc744413daf3d1e1e16be2c) Thanks [@santi020k](https://github.com/santi020k)! - ci: disable Husky git hooks during the release workflow
90
+
91
+ - Added `HUSKY=0` environment variable to the release workflow to prevent Git hooks from interfering with the automated release process
92
+
93
+ - [#25](https://github.com/santi020k/eslint-config-basic/pull/25) [`1fb4693`](https://github.com/santi020k/eslint-config-basic/commit/1fb4693b4ff6e3a1a9404096e14039121e1297b5) Thanks [@santi020k](https://github.com/santi020k)! - feat: add GitHub-linked changelogs and automatic GitHub releases with tags
94
+
95
+ - Switched changelog generator to `@changesets/changelog-github` for richer changelogs with PR links, commit references, and contributor credits
96
+ - Configured release workflow to create GitHub releases with git tags on publish
97
+
98
+ - Updated dependencies [[`162afdb`](https://github.com/santi020k/eslint-config-basic/commit/162afdb2f0a30714487915bdf083234426018ad2), [`1fb4693`](https://github.com/santi020k/eslint-config-basic/commit/1fb4693b4ff6e3a1a9404096e14039121e1297b5)]:
99
+ - @santi020k/eslint-config-core@0.3.0
100
+ - @santi020k/eslint-config-optionals@0.3.0
101
+
102
+ ## 0.2.0
103
+
104
+ ### Minor Changes
105
+
106
+ - feat: add Nest.js, Vue, and Expo ESLint configs with optionals package
107
+
108
+ - Added `@santi020k/eslint-config-nest` with NestJS-specific linting rules
109
+ - Added `@santi020k/eslint-config-vue` with Vue 3 linting rules
110
+ - Added `@santi020k/eslint-config-expo` with Expo/React Native linting rules
111
+ - Added `@santi020k/eslint-config-optionals` for optional integrations (Tailwind, Vitest, cspell, i18next, MDX, Markdown, Stencil)
112
+ - Added `ConfigOption.Nest`, `ConfigOption.Vue`, and `ConfigOption.Expo` enum values
113
+ - Updated PR template with changeset reminder
114
+
115
+ ### Patch Changes
116
+
117
+ - Updated dependencies
118
+ - @santi020k/eslint-config-core@0.2.0
119
+ - @santi020k/eslint-config-nest@0.2.0
120
+ - @santi020k/eslint-config-vue@0.2.0
121
+ - @santi020k/eslint-config-expo@0.2.0
122
+ - @santi020k/eslint-config-optionals@0.2.0
123
+
124
+ ## 0.1.0
125
+
126
+ ### Minor Changes
127
+
128
+ - publish testing
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies
133
+ - @santi020k/eslint-config-typescript@0.1.0
134
+ - @santi020k/eslint-config-optionals@0.1.0
135
+ - @santi020k/eslint-config-astro@0.1.0
136
+ - @santi020k/eslint-config-react@0.1.0
137
+ - @santi020k/eslint-config-core@0.1.0
138
+ - @santi020k/eslint-config-expo@0.1.0
139
+ - @santi020k/eslint-config-nest@0.1.0
140
+ - @santi020k/eslint-config-next@0.1.0
141
+ - @santi020k/eslint-config-vue@0.1.0
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-jsx-a11y
299
- - eslint-plugin-n
300
- - eslint-plugin-promise
301
- - eslint-plugin-react
302
- - eslint-plugin-react-hooks
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) ? 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.5.0",
3
+ "version": "0.7.0",
4
4
  "description": "A comprehensive ESLint configuration package for JavaScript, TypeScript, and React projects.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -13,7 +13,9 @@
13
13
  }
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "README.md",
18
+ "CHANGELOG.md"
17
19
  ],
18
20
  "scripts": {
19
21
  "build": "tsup",
@@ -21,7 +23,8 @@
21
23
  "dev": "tsup --watch",
22
24
  "clean": "rm -rf dist",
23
25
  "check:exports": "publint",
24
- "prepack": "rm -f README.md && cp ../../README.md ./README.md"
26
+ "prepack": "rm -f README.md && cp ../../README.md ./README.md",
27
+ "postpack": "rm -f README.md && ln -s ../../README.md ./README.md"
25
28
  },
26
29
  "dependencies": {
27
30
  "@santi020k/eslint-config-astro": "*",