@paratco/eslint-config 1.0.7 → 1.0.9

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.
@@ -1,4 +1,4 @@
1
- name: Publish To NPM
1
+ name: Publish Package To NPM
2
2
 
3
3
  on:
4
4
  release:
@@ -46,7 +46,7 @@ jobs:
46
46
  - name: Install dependencies
47
47
  run: yarn install
48
48
 
49
- - name: Publish package on NPM
49
+ - name: Publish
50
50
  run: npm publish --provenance --access public
51
51
  env:
52
- NODE_AUTH_TOKEN: ${{ secrets.NPM_KEY }}
52
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_WRITE_TOKEN }}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paratco/eslint-config",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "author": "Paratco",
@@ -37,14 +37,14 @@
37
37
  "@stylistic/eslint-plugin": "^2.12.1",
38
38
  "@types/eslint__js": "^8.42.3",
39
39
  "eslint": "^9.17.0",
40
- "eslint-config-prettier": "^9.1.0",
40
+ "eslint-config-prettier": "^10.0.1",
41
41
  "eslint-import-resolver-typescript": "^3.7.0",
42
- "eslint-plugin-import-x": "^4.5.1",
43
- "eslint-plugin-react": "^7.37.2",
44
- "eslint-plugin-react-hooks": "5.1.0-rc-ca587425-20241211",
42
+ "eslint-plugin-import-x": "^4.6.1",
43
+ "eslint-plugin-react": "^7.37.3",
44
+ "eslint-plugin-react-hooks": "5.1.0",
45
45
  "eslint-plugin-react-refresh": "^0.4.16",
46
- "globals": "^15.13.0",
47
- "typescript-eslint": "^8.18.1"
46
+ "globals": "^15.14.0",
47
+ "typescript-eslint": "^8.19.0"
48
48
  },
49
- "packageManager": "yarn@4.5.3"
49
+ "packageManager": "yarn@4.6.0"
50
50
  }
@@ -5,5 +5,19 @@ export default {
5
5
 
6
6
  // https://eslint.org/docs/latest/rules/curly
7
7
  // Enforce consistent brace style for all control statements
8
- curly: ["warn", "all"]
8
+ curly: ["warn", "all"],
9
+
10
+ // https://eslint.org/docs/latest/rules/no-restricted-imports
11
+ // Disallow specified modules when loaded by import
12
+ "no-restricted-imports": [
13
+ "error",
14
+ {
15
+ patterns: [
16
+ {
17
+ regex: "(node:)?process",
18
+ message: "Please dont import node:process."
19
+ }
20
+ ]
21
+ }
22
+ ]
9
23
  };
@@ -1,52 +0,0 @@
1
- name: Publish To GitHub
2
-
3
- on:
4
- release:
5
- types: [published]
6
-
7
- jobs:
8
- build:
9
- runs-on:
10
- - ubuntu-latest
11
-
12
- permissions:
13
- packages: write
14
- contents: read
15
- id-token: write
16
-
17
- steps:
18
- - name: Check out the repo
19
- uses: actions/checkout@v4
20
-
21
- - name: Check build version
22
- uses: actions/github-script@v7
23
- with:
24
- script: |
25
- try {
26
- const fs = require("fs")
27
- const jsonString = fs.readFileSync("package.json")
28
- const package = JSON.parse(jsonString)
29
- if (package.version !== "${{ github.ref_name }}") {
30
- core.setFailed(`package.json version (${package.version}) not match version of release (${{ github.ref_name }})`)
31
- }
32
- } catch(err) {
33
- core.setFailed(err)
34
- }
35
-
36
- - name: Setup Node
37
- uses: actions/setup-node@v4
38
- with:
39
- node-version: 22
40
- check-latest: 'true'
41
- registry-url: https://npm.pkg.github.com/
42
-
43
- - name: Enable Yarn
44
- run: corepack enable
45
-
46
- - name: Install dependencies
47
- run: yarn install
48
-
49
- - name: Publish package on GitHub
50
- run: npm publish --provenance --access public --registry https://npm.pkg.github.com/
51
- env:
52
- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -1,28 +0,0 @@
1
- name: Test publish
2
-
3
- on:
4
- workflow_dispatch:
5
-
6
- jobs:
7
- build:
8
- runs-on:
9
- - ubuntu-latest
10
-
11
- permissions:
12
- packages: write
13
- contents: read
14
- id-token: write
15
-
16
- steps:
17
- - name: Check out the repo
18
- uses: actions/checkout@v4
19
-
20
- - name: Setup Node
21
- uses: actions/setup-node@v4
22
- with:
23
- node-version: 22
24
- check-latest: 'true'
25
- registry-url: "https://npm.pkg.github.com/"
26
-
27
- - name: Enable Yarn
28
- run: ls -la