@gv-tech/eslint-config 0.1.7 → 0.1.8
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 +8 -0
- package/README.md +41 -23
- package/package.json +9 -7
- package/src/index.mjs +3 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.8](https://github.com/Garcia-Ventures/eslint-config/compare/eslint-config-v0.1.7...eslint-config-v0.1.8) (2026-02-08)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* Add `@eng618/prettier-config` to devDependencies. ([0faccc8](https://github.com/Garcia-Ventures/eslint-config/commit/0faccc8384bbf6ad84980f9288eda793cade90ef))
|
|
9
|
+
* Introduce `javascriptRecommended` configuration, move core ESLint plugins to direct dependencies, and update README installation instructions. ([d89fc18](https://github.com/Garcia-Ventures/eslint-config/commit/d89fc18565524c0658042111e5cd70a2b34a40d8))
|
|
10
|
+
|
|
3
11
|
## [0.1.7](https://github.com/Garcia-Ventures/eslint-config/compare/eslint-config-v0.1.6...eslint-config-v0.1.7) (2026-02-08)
|
|
4
12
|
|
|
5
13
|
|
package/README.md
CHANGED
|
@@ -22,27 +22,44 @@ Shareable ESLint configuration for Garcia Ventures projects. Uses **ESLint v9**
|
|
|
22
22
|
|
|
23
23
|
## Installation
|
|
24
24
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
Install `@gv-tech/eslint-config` along with its required peer dependencies using your preferred package manager:
|
|
26
|
+
|
|
27
|
+
| Manager | Command |
|
|
28
|
+
| :------- | :-------------------------------------------------------------- |
|
|
29
|
+
| **npm** | `npm install --save-dev @gv-tech/eslint-config eslint prettier` |
|
|
30
|
+
| **yarn** | `yarn add --dev @gv-tech/eslint-config eslint prettier` |
|
|
31
|
+
| **pnpm** | `pnpm add -D @gv-tech/eslint-config eslint prettier` |
|
|
32
|
+
| **bun** | `bun add -d @gv-tech/eslint-config eslint prettier` |
|
|
28
33
|
|
|
29
34
|
### With TypeScript
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
If you are using TypeScript, you also need to install the `typescript` package:
|
|
37
|
+
|
|
38
|
+
| Manager | Command |
|
|
39
|
+
| :------- | :---------------------------------- |
|
|
40
|
+
| **npm** | `npm install --save-dev typescript` |
|
|
41
|
+
| **yarn** | `yarn add --dev typescript` |
|
|
42
|
+
| **pnpm** | `pnpm add -D typescript` |
|
|
34
43
|
|
|
35
44
|
### With Next.js
|
|
36
45
|
|
|
37
|
-
|
|
38
|
-
npm install --save-dev @gv-tech/eslint-config eslint typescript-eslint typescript @next/eslint-plugin-next
|
|
39
|
-
```
|
|
46
|
+
For Next.js projects, add the Next.js ESLint plugin:
|
|
40
47
|
|
|
41
|
-
|
|
48
|
+
| Manager | Command |
|
|
49
|
+
| :------- | :------------------------------------------------ |
|
|
50
|
+
| **npm** | `npm install --save-dev @next/eslint-plugin-next` |
|
|
51
|
+
| **yarn** | `yarn add --dev @next/eslint-plugin-next` |
|
|
52
|
+
| **pnpm** | `pnpm add -D @next/eslint-plugin-next` |
|
|
42
53
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
54
|
+
### With Prettier (Optional Shared Config)
|
|
55
|
+
|
|
56
|
+
The Prettier plugin is built-in. If you want to use the shared Garcia Ventures Prettier config:
|
|
57
|
+
|
|
58
|
+
| Manager | Command |
|
|
59
|
+
| :------- | :----------------------------------------------- |
|
|
60
|
+
| **npm** | `npm install --save-dev @eng618/prettier-config` |
|
|
61
|
+
| **yarn** | `yarn add --dev @eng618/prettier-config` |
|
|
62
|
+
| **pnpm** | `pnpm add -D @eng618/prettier-config` |
|
|
46
63
|
|
|
47
64
|
> **Note:** Add `"prettier": "@eng618/prettier-config"` to your `package.json` to use the shared Prettier config.
|
|
48
65
|
|
|
@@ -53,9 +70,9 @@ Create an `eslint.config.mjs` file in your project root:
|
|
|
53
70
|
### Basic JavaScript
|
|
54
71
|
|
|
55
72
|
```js
|
|
56
|
-
import {
|
|
73
|
+
import { javascriptRecommended } from '@gv-tech/eslint-config';
|
|
57
74
|
|
|
58
|
-
export default [...
|
|
75
|
+
export default [...javascriptRecommended];
|
|
59
76
|
```
|
|
60
77
|
|
|
61
78
|
### TypeScript Project
|
|
@@ -114,14 +131,15 @@ export default [
|
|
|
114
131
|
|
|
115
132
|
## Available Configurations
|
|
116
133
|
|
|
117
|
-
| Export
|
|
118
|
-
|
|
|
119
|
-
| `base`
|
|
120
|
-
| `typescript`
|
|
121
|
-
| `next`
|
|
122
|
-
| `prettier`
|
|
123
|
-
| `recommended`
|
|
124
|
-
| `
|
|
134
|
+
| Export | Description |
|
|
135
|
+
| ----------------------- | ----------------------------------- |
|
|
136
|
+
| `base` | Core JavaScript rules |
|
|
137
|
+
| `typescript` | TypeScript support (includes base) |
|
|
138
|
+
| `next` | Next.js rules (includes TypeScript) |
|
|
139
|
+
| `prettier` | Prettier formatting integration |
|
|
140
|
+
| `recommended` | TypeScript + Prettier |
|
|
141
|
+
| `javascriptRecommended` | JavaScript + Prettier |
|
|
142
|
+
| `nextjs` | Next.js + Prettier |
|
|
125
143
|
|
|
126
144
|
## Exported Utilities
|
|
127
145
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gv-tech/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.8",
|
|
4
4
|
"description": "Shareable ESLint configuration for Garcia Ventures projects - ESLint v9 flat config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -54,6 +54,13 @@
|
|
|
54
54
|
]
|
|
55
55
|
},
|
|
56
56
|
"prettier": "@eng618/prettier-config",
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"@eslint/js": "^9.0.0",
|
|
59
|
+
"eslint-config-prettier": "^10.0.0",
|
|
60
|
+
"eslint-plugin-prettier": "^5.0.0",
|
|
61
|
+
"globals": ">=15.0.0",
|
|
62
|
+
"typescript-eslint": "^8.0.0"
|
|
63
|
+
},
|
|
57
64
|
"devDependencies": {
|
|
58
65
|
"@eng618/prettier-config": "^2.6.0",
|
|
59
66
|
"@eslint/js": "^10.0.1",
|
|
@@ -71,15 +78,10 @@
|
|
|
71
78
|
},
|
|
72
79
|
"peerDependencies": {
|
|
73
80
|
"@eng618/prettier-config": "^2.0.0",
|
|
74
|
-
"@eslint/js": "^9.0.0",
|
|
75
81
|
"@next/eslint-plugin-next": "^15.0.0 || ^16.0.0",
|
|
76
82
|
"eslint": "^9.0.0",
|
|
77
|
-
"eslint-config-prettier": "^9.0.0 || ^10.0.0",
|
|
78
|
-
"eslint-plugin-prettier": "^5.0.0",
|
|
79
|
-
"globals": ">=15.0.0",
|
|
80
83
|
"prettier": "^3.0.0",
|
|
81
|
-
"typescript": ">=5.0.0"
|
|
82
|
-
"typescript-eslint": "^8.0.0"
|
|
84
|
+
"typescript": ">=5.0.0"
|
|
83
85
|
},
|
|
84
86
|
"peerDependenciesMeta": {
|
|
85
87
|
"@eng618/prettier-config": {
|
package/src/index.mjs
CHANGED
|
@@ -19,5 +19,8 @@ export const recommended = [...typescript, ...prettier];
|
|
|
19
19
|
/** Base configuration preset for simple JavaScript projects. */
|
|
20
20
|
export const javascript = [...base];
|
|
21
21
|
|
|
22
|
+
/** Recommended configuration for JavaScript projects with Prettier. */
|
|
23
|
+
export const javascriptRecommended = [...base, ...prettier];
|
|
24
|
+
|
|
22
25
|
// Default export is the recommended TypeScript + Prettier config
|
|
23
26
|
export default recommended;
|