@jmlweb/eslint-config-base-js 1.0.0 → 1.0.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +20 -6
  3. package/package.json +17 -19
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @jmlweb/eslint-config-base-js
2
+
3
+ ## 1.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 2208f74: Standardize repository field format to object format across all packages and configure syncpack to preserve it.
package/README.md CHANGED
@@ -166,15 +166,16 @@ This configuration disables all ESLint rules that conflict with Prettier, allowi
166
166
 
167
167
  **Recommended**: Use [`@jmlweb/prettier-config-base`](../prettier-config-base) for consistent formatting.
168
168
 
169
- ## 🔗 TypeScript Projects
169
+ ## 🎯 When to Use
170
170
 
171
- For TypeScript projects, use [`@jmlweb/eslint-config-base`](../eslint-config-base) which extends this config with strict type checking:
171
+ Use this package when you want:
172
172
 
173
- ```javascript
174
- import baseConfig from '@jmlweb/eslint-config-base';
173
+ - ✅ JavaScript-only projects (no TypeScript)
174
+ - Modern JavaScript linting with ESLint 9+ flat config
175
+ - ✅ Automatic import/export sorting
176
+ - ✅ Foundation for extending with TypeScript or React configs
175
177
 
176
- export default [...baseConfig];
177
- ```
178
+ **For TypeScript projects**, use [`@jmlweb/eslint-config-base`](../eslint-config-base) instead, which extends this config with strict type checking.
178
179
 
179
180
  ## 🔧 Extending the Configuration
180
181
 
@@ -211,6 +212,13 @@ Add linting scripts to your `package.json`:
211
212
  }
212
213
  ```
213
214
 
215
+ Then run:
216
+
217
+ ```bash
218
+ npm run lint # Lint all files
219
+ npm run lint:fix # Fix auto-fixable issues
220
+ ```
221
+
214
222
  ## 📋 Requirements
215
223
 
216
224
  - **Node.js** >= 18.0.0
@@ -227,6 +235,12 @@ This package requires the following peer dependencies:
227
235
 
228
236
  **Note**: This package does NOT require `typescript-eslint` as it's for JavaScript-only projects.
229
237
 
238
+ ## 📚 Examples
239
+
240
+ See real-world usage examples:
241
+
242
+ - [`example-nodejs-javascript`](../../apps/example-nodejs-javascript) - Node.js JavaScript example
243
+
230
244
  ## 🔗 Related Packages
231
245
 
232
246
  - [`@jmlweb/eslint-config-base`](../eslint-config-base) - TypeScript ESLint config (extends this package)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jmlweb/eslint-config-base-js",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Base ESLint configuration for JavaScript-only projects - foundation extended by @jmlweb/eslint-config-base",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -8,31 +8,27 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
- "require": {
12
- "types": "./dist/index.d.cts",
13
- "default": "./dist/index.cjs"
14
- },
15
11
  "import": {
16
12
  "types": "./dist/index.d.ts",
17
13
  "default": "./dist/index.js"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.cts",
17
+ "default": "./dist/index.cjs"
18
18
  }
19
19
  }
20
20
  },
21
21
  "files": [
22
22
  "dist",
23
- "README.md"
23
+ "README.md",
24
+ "CHANGELOG.md"
24
25
  ],
25
- "scripts": {
26
- "build": "tsup",
27
- "clean": "rm -rf dist",
28
- "prepublishOnly": "pnpm build"
29
- },
30
26
  "keywords": [
27
+ "code-quality",
31
28
  "eslint",
32
29
  "eslint-config",
33
30
  "javascript",
34
- "linting",
35
- "code-quality"
31
+ "linting"
36
32
  ],
37
33
  "author": "jmlweb",
38
34
  "license": "MIT",
@@ -40,9 +36,7 @@
40
36
  "type": "git",
41
37
  "url": "https://github.com/jmlweb/tooling.git"
42
38
  },
43
- "bugs": {
44
- "url": "https://github.com/jmlweb/tooling/issues"
45
- },
39
+ "bugs": "https://github.com/jmlweb/tooling/issues",
46
40
  "homepage": "https://github.com/jmlweb/tooling/tree/main/packages/eslint-config-base-js#readme",
47
41
  "engines": {
48
42
  "node": ">=18.0.0"
@@ -58,12 +52,16 @@
58
52
  },
59
53
  "devDependencies": {
60
54
  "@eslint/js": "^9.39.2",
61
- "@jmlweb/tsconfig-internal": "workspace:*",
62
55
  "@types/eslint": "^9.6.1",
63
56
  "eslint": "^9.39.2",
64
57
  "eslint-config-prettier": "^10.1.8",
65
58
  "eslint-plugin-simple-import-sort": "^12.1.1",
66
59
  "tsup": "^8.5.1",
67
- "typescript": "^5.9.3"
60
+ "typescript": "^5.9.3",
61
+ "@jmlweb/tsconfig-internal": "0.0.1"
62
+ },
63
+ "scripts": {
64
+ "build": "tsup",
65
+ "clean": "rm -rf dist"
68
66
  }
69
- }
67
+ }