@bitfactory/eslint-config 3.0.0 → 3.1.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.
Files changed (2) hide show
  1. package/README.md +15 -20
  2. package/package.json +1 -7
package/README.md CHANGED
@@ -1,17 +1,11 @@
1
1
  # @bitfactory/eslint-config
2
2
 
3
- [![NPM package version](https://badgen.net/npm/v/@bitfactory/eslint-config)](https://npmjs.com/package/@bitfactory/eslint-config)
4
- [![Npm package yearly downloads](https://badgen.net/npm/dy/@bitfactory/eslint-config)](https://npmjs.com/package/@bitfactory/eslint-config)
5
- [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
6
- [![Minimum Node.js version](https://badgen.net/npm/node/@bitfactory/eslint-config)](https://npmjs.com/package/@bitfactory/eslint-config)
7
-
8
3
  [![Release](https://img.shields.io/badge/Release-3.x.x-F0ec73)](https://github.com/bitfactory-nl/shared-npm-eslint-config-bitfactory)
9
- ![ESLint](https://img.shields.io/badge/ESLint-9.x.x-4B3263?logo=eslint&logoColor=white)
4
+ [![MIT license](https://img.shields.io/badge/License-MIT-blue.svg)](https://lbesson.mit-license.org/)
5
+ ![ESLint](https://img.shields.io/badge/ESLint-^8.56|^9.0-4B3263?logo=eslint&logoColor=white)
10
6
  [![NodeJS](https://img.shields.io/badge/Node.js-^18.18|^20.9-6da55f?logo=node.js)](https://nodejs.org/)
11
- ![PNPM](https://img.shields.io/badge/pnpm-8.x.x-%234a4a4a.svg?logo=pnpm&logoColor=f69220)
12
7
 
13
- This is a shareable config for [ESLint](https://eslint.org). All the rules and configurations are already set.
14
- Rules can be overridden if needed.
8
+ This is a shareable config for [ESLint](https://eslint.org). All the rules and configurations are already set. Rules can be overridden if needed.
15
9
 
16
10
  > [!IMPORTANT]
17
11
  > From ESLint v9 the Flat Config file is the default. Because of this change update the `package.json` npm run scripts!
@@ -34,11 +28,14 @@ Rules can be overridden if needed.
34
28
 
35
29
  ## :technologist: Development
36
30
 
37
- ### Publishing a new version
31
+ ### Publishing
38
32
 
39
- 1. 💡 Before publishing a new version, make sure to update the version number in the `package.json` file.
40
- 2. Make sure to run `pnpm i` to update the `pnpm-lock.yaml` file afterwards.
41
- 3. In case of a minor/major update, make sure to also update the badge in the `README.md` file.
33
+ Before publishing a new version:
34
+
35
+ 1. Update the version number in the `package.json` file.
36
+ 2. And also update the badges in the `README.md` file, even for patches.
37
+ 3. Create a new release, after merging the PR. This will trigger a workflow.
38
+ 4. The GitHub action workflow will then automatically create a new NPM package.
42
39
 
43
40
  ## :package: Installing
44
41
 
@@ -162,8 +159,6 @@ module.exports = {
162
159
 
163
160
  To use ESLint in the command-line, add the following scripts to your projects `package.json`:
164
161
 
165
- > For PNPM use `"eslint:fix": "pnpm run eslint --fix"`
166
-
167
162
  ```json
168
163
  "scripts": {
169
164
  "eslint": "ESLINT_USE_FLAT_CONFIG=false eslint 'path/to/your/assets/**/*.{cjs,js,mjs}'",
@@ -213,16 +208,16 @@ Or TypeScript files:
213
208
  You can run the commands with:
214
209
 
215
210
  ```shell
216
- npm run eslint
217
- npm run eslint:fix
211
+ make npm run eslint
212
+ make npm run eslint:fix
218
213
  ```
219
214
 
220
215
  ```shell
221
- pnpm run eslint
222
- pnpm run eslint:fix
216
+ make pnpm run eslint
217
+ make pnpm run eslint:fix
223
218
  ```
224
219
 
225
- > With PNPM you can also run scripts without 'run' like `pnpm eslint`.
220
+ > With PNPM you can also run scripts without 'run' like `make pnpm eslint`.
226
221
 
227
222
  ## :pencil2: Editor / IDE integration
228
223
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitfactory/eslint-config",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "ESLint sharable config for Bitfactory projects",
5
5
  "keywords": [
6
6
  "eslint",
@@ -18,12 +18,7 @@
18
18
  "vue.js"
19
19
  ],
20
20
  "devDependencies": {
21
- "@babel/core": "7.25.8",
22
- "@babel/eslint-parser": "7.25.8",
23
21
  "eslint": "9.12.0",
24
- "eslint-plugin-import": "2.31.0",
25
- "eslint-plugin-jsdoc": "50.3.2",
26
- "eslint-plugin-unicorn": "56.0.0",
27
22
  "lint-staged": "15.2.10",
28
23
  "npm-check-updates": "17.1.3",
29
24
  "simple-git-hooks": "2.11.1"
@@ -36,7 +31,6 @@
36
31
  "eslint-plugin-jsdoc": ">=47.0.0",
37
32
  "eslint-plugin-unicorn": ">=56.0.0"
38
33
  },
39
- "packageManager": "pnpm@8.15.9",
40
34
  "engines": {
41
35
  "node": "^18.18.0 || ^20.9.0"
42
36
  },