@typeform/eslint-config 7.0.0 → 7.0.2

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.
@@ -12,6 +12,9 @@ jobs:
12
12
  main:
13
13
  name: Run checks and deploy
14
14
  runs-on: [ubuntu-latest]
15
+ permissions:
16
+ contents: write
17
+ id-token: write
15
18
 
16
19
  steps:
17
20
  - name: Check out Git repository
@@ -44,8 +47,14 @@ jobs:
44
47
  - name: Run linting
45
48
  run: yarn lint
46
49
 
50
+ - name: Reset npm registry for publishing
51
+ run: |
52
+ npm config set @typeform:registry https://registry.npmjs.org/
53
+ npm config delete '//npm.pkg.github.com/:_authToken'
54
+
47
55
  - name: Release
48
56
  run: yarn semantic-release
49
57
  env:
50
58
  GH_TOKEN: ${{ secrets.GH_TOKEN }}
51
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
59
+ # OIDC publishing (with provenance) is enabled via id-token: write permission
60
+ # No NPM_TOKEN needed — @semantic-release/npm v13 uses OIDC automatically
@@ -13,7 +13,7 @@ jobs:
13
13
  runs-on: [ubuntu-latest]
14
14
  strategy:
15
15
  matrix:
16
- node-version: [20, 22]
16
+ node-version: [22]
17
17
  fail-fast: false
18
18
 
19
19
  steps:
package/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  <a href=https://engineering-metrics.typeform.tf/standards-adoption-tool/reports/eslint-config-typeform/><img src=https://api.typeform.com/repositories/eslint-config-typeform/badges.svg /></a>
2
+
2
3
  # eslint-config-typeform
3
4
 
4
5
  ESLint configuration for [Typeform](https://github.com/Typeform/) front-end projects
@@ -29,8 +30,8 @@ export default [
29
30
  {
30
31
  rules: {
31
32
  // Your custom rules
32
- }
33
- }
33
+ },
34
+ },
34
35
  ]
35
36
  ```
36
37
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@typeform/eslint-config",
3
- "version": "7.0.0",
3
+ "version": "7.0.2",
4
4
  "description": "ESLint configuration for Typeform front-end projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,7 @@
16
16
  "license": "LGPL-3.0-only",
17
17
  "private": false,
18
18
  "engines": {
19
- "node": ">=20"
19
+ "node": ">=22.14.0"
20
20
  },
21
21
  "scripts": {
22
22
  "build": "tsc",
@@ -24,7 +24,7 @@
24
24
  "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
25
25
  "eslint": "eslint",
26
26
  "lint": "yarn run eslint .",
27
- "publish:npm": "yarn build && npm config set @typeform:registry https://registry.npmjs.org/ && npm config set '//registry.npmjs.org/:_authToken' $NPM_TOKEN && npm publish"
27
+ "publish:npm": "yarn build && npm config set @typeform:registry https://registry.npmjs.org/ && npm publish --provenance --access public"
28
28
  },
29
29
  "lint-staged": {
30
30
  "*.{js,ts}": "yarn run eslint --fix",
@@ -47,7 +47,7 @@
47
47
  "eslint-plugin-react": "^7.37.2",
48
48
  "eslint-plugin-react-hooks": "^5.1.0",
49
49
  "globals": "^15.13.0",
50
- "typescript-eslint": "^8.18.1",
50
+ "typescript-eslint": "^8.46.2",
51
51
  "yarn": "^1.22.22"
52
52
  },
53
53
  "peerDependencies": {
@@ -56,12 +56,13 @@
56
56
  },
57
57
  "devDependencies": {
58
58
  "@semantic-release/exec": "^6.0.3",
59
+ "@semantic-release/npm": "^13.1.1",
59
60
  "eslint": "^9.16.0",
60
61
  "husky": "^9.1.7",
61
62
  "jest": "^29.7.0",
62
63
  "lint-staged": "^15.2.11",
63
64
  "prettier": "^3.4.2",
64
- "semantic-release": "^24.2.0",
65
+ "semantic-release": "^25.0.3",
65
66
  "typescript": "^5.7.2"
66
67
  },
67
68
  "release": {
@@ -82,12 +83,19 @@
82
83
  "plugins": [
83
84
  "@semantic-release/commit-analyzer",
84
85
  "@semantic-release/release-notes-generator",
85
- "@semantic-release/npm",
86
+ [
87
+ "@semantic-release/npm",
88
+ {
89
+ "npmPublish": true,
90
+ "tarballDir": "dist",
91
+ "pkgRoot": "."
92
+ }
93
+ ],
86
94
  "@semantic-release/github",
87
95
  [
88
96
  "@semantic-release/exec",
89
97
  {
90
- "successCmd": "yarn run publish:npm"
98
+ "publishCmd": "npm config set @typeform:registry https://npm.pkg.github.com/ && npm config set '//npm.pkg.github.com/:_authToken' \"<%= process.env.GH_TOKEN %>\" && npm publish --tag ${nextRelease.channel || 'latest'}"
91
99
  }
92
100
  ]
93
101
  ]