@gv-tech/eslint-config 0.1.5 → 0.1.6
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 +7 -0
- package/README.md +16 -10
- package/package.json +1 -1
- package/src/index.mjs +1 -8
- package/src/next.mjs +8 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.6](https://github.com/Garcia-Ventures/eslint-config/compare/eslint-config-v0.1.5...eslint-config-v0.1.6) (2026-02-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Documentation
|
|
7
|
+
|
|
8
|
+
* Add CI, npm version, license, and npm downloads badges to README ([b25afc9](https://github.com/Garcia-Ventures/eslint-config/commit/b25afc968b619fa46342fd018cfd3a97f861ff49))
|
|
9
|
+
|
|
3
10
|
## [0.1.5](https://github.com/Garcia-Ventures/eslint-config/compare/eslint-config-v0.1.4...eslint-config-v0.1.5) (2026-02-07)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# @gv-tech/eslint-config
|
|
2
2
|
|
|
3
|
+
[](https://github.com/Garcia-Ventures/eslint-config/actions/workflows/ci.yml)
|
|
4
|
+
[](https://www.npmjs.com/package/@gv-tech/eslint-config)
|
|
5
|
+
[](https://github.com/Garcia-Ventures/eslint-config/blob/main/LICENSE)
|
|
6
|
+
[](https://www.npmjs.com/package/@gv-tech/eslint-config)
|
|
7
|
+
|
|
3
8
|
Shareable ESLint configuration for Garcia Ventures projects. Uses **ESLint v9** flat config format (forward-compatible with v10).
|
|
4
9
|
|
|
5
10
|
## Features
|
|
@@ -64,7 +69,8 @@ export default [...typescript, ...prettier];
|
|
|
64
69
|
### Next.js Project
|
|
65
70
|
|
|
66
71
|
```js
|
|
67
|
-
import { next
|
|
72
|
+
import { next } from '@gv-tech/eslint-config/next';
|
|
73
|
+
import { prettier } from '@gv-tech/eslint-config/prettier';
|
|
68
74
|
|
|
69
75
|
export default [...next, ...prettier];
|
|
70
76
|
```
|
|
@@ -79,7 +85,7 @@ import { recommended } from '@gv-tech/eslint-config';
|
|
|
79
85
|
export default [...recommended];
|
|
80
86
|
|
|
81
87
|
// Next.js + TypeScript + Prettier
|
|
82
|
-
import { nextjs } from '@gv-tech/eslint-config';
|
|
88
|
+
import { nextjs } from '@gv-tech/eslint-config/next';
|
|
83
89
|
export default [...nextjs];
|
|
84
90
|
```
|
|
85
91
|
|
|
@@ -109,14 +115,14 @@ export default [
|
|
|
109
115
|
|
|
110
116
|
## Available Configurations
|
|
111
117
|
|
|
112
|
-
| Export | Description
|
|
113
|
-
| ------------- |
|
|
114
|
-
| `base` | Core JavaScript rules
|
|
115
|
-
| `typescript` | TypeScript support (includes base)
|
|
116
|
-
| `next` | Next.js
|
|
117
|
-
| `prettier` | Prettier formatting integration
|
|
118
|
-
| `recommended` | TypeScript + Prettier
|
|
119
|
-
| `nextjs` | Next.js + Prettier
|
|
118
|
+
| Export | Description |
|
|
119
|
+
| ------------- | ------------------------------------------- |
|
|
120
|
+
| `base` | Core JavaScript rules |
|
|
121
|
+
| `typescript` | TypeScript support (includes base) |
|
|
122
|
+
| `next` | Next.js rules (requires `next` import) |
|
|
123
|
+
| `prettier` | Prettier formatting integration |
|
|
124
|
+
| `recommended` | TypeScript + Prettier |
|
|
125
|
+
| `nextjs` | Next.js + Prettier (requires `next` import) |
|
|
120
126
|
|
|
121
127
|
## Exported Utilities
|
|
122
128
|
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -27,22 +27,15 @@
|
|
|
27
27
|
|
|
28
28
|
// Import for creating combined presets
|
|
29
29
|
import { base, commonIgnores, jsFiles } from './base.mjs';
|
|
30
|
-
import { next, nextIgnores } from './next.mjs';
|
|
31
30
|
import { prettier } from './prettier.mjs';
|
|
32
31
|
import { allJsTsFiles, tsFiles, typescript } from './typescript.mjs';
|
|
33
32
|
|
|
34
33
|
// Re-export individual configurations
|
|
35
|
-
export { allJsTsFiles, base, commonIgnores, jsFiles,
|
|
34
|
+
export { allJsTsFiles, base, commonIgnores, jsFiles, prettier, tsFiles, typescript };
|
|
36
35
|
|
|
37
36
|
/** Recommended configuration for TypeScript projects with Prettier. Combines TypeScript and Prettier configurations. */
|
|
38
37
|
export const recommended = [...typescript, ...prettier];
|
|
39
38
|
|
|
40
|
-
/**
|
|
41
|
-
* Recommended configuration for Next.js projects with Prettier. Combines Next.js (which includes TypeScript) and
|
|
42
|
-
* Prettier configurations.
|
|
43
|
-
*/
|
|
44
|
-
export const nextjs = [...next, ...prettier];
|
|
45
|
-
|
|
46
39
|
/** Base configuration preset for simple JavaScript projects. */
|
|
47
40
|
export const javascript = [...base];
|
|
48
41
|
|
package/src/next.mjs
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import nextPlugin from '@next/eslint-plugin-next';
|
|
8
8
|
import { commonIgnores } from './base.mjs';
|
|
9
|
+
import { prettier } from './prettier.mjs';
|
|
9
10
|
import { allJsTsFiles, typescript } from './typescript.mjs';
|
|
10
11
|
|
|
11
12
|
/** Next.js specific ignore patterns */
|
|
@@ -18,7 +19,7 @@ export const nextIgnores = [...commonIgnores, '.next/**', 'out/**', 'next-env.d.
|
|
|
18
19
|
*
|
|
19
20
|
* ```js
|
|
20
21
|
* // eslint.config.mjs
|
|
21
|
-
* import { next } from '@gv-tech/eslint-config';
|
|
22
|
+
* import { next } from '@gv-tech/eslint-config/next';
|
|
22
23
|
*
|
|
23
24
|
* export default [...next];
|
|
24
25
|
* ```
|
|
@@ -44,4 +45,10 @@ export const next = [
|
|
|
44
45
|
},
|
|
45
46
|
];
|
|
46
47
|
|
|
48
|
+
/**
|
|
49
|
+
* Recommended configuration for Next.js projects with Prettier. Combines Next.js (which includes TypeScript) and
|
|
50
|
+
* Prettier configurations.
|
|
51
|
+
*/
|
|
52
|
+
export const nextjs = [...next, ...prettier];
|
|
53
|
+
|
|
47
54
|
export default next;
|