@innovixx/eslint-config 1.3.2 → 2.0.0-beta-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.
@@ -1,22 +1,96 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3
-
4
- name: Node.js Package
1
+ name: Publish
5
2
 
6
3
  on:
7
4
  release:
8
5
  types: [created]
9
6
 
10
7
  jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ environment: production
11
+ permissions:
12
+ packages: write
13
+ contents: read
14
+ steps:
15
+ - uses: actions/checkout@v4
16
+ - uses: actions/setup-node@v3
17
+ with:
18
+ node-version: 20
19
+
20
+ - name: Install dependencies
21
+ run: npm install
22
+
23
+ - name: Zip artifact
24
+ run: zip -r artifact.zip . -q
25
+
26
+ - name: Upload artifact
27
+ uses: actions/upload-artifact@v3
28
+ with:
29
+ name: artifact
30
+ path: ./artifact.zip
31
+
11
32
  publish-npm:
33
+ needs: build
12
34
  runs-on: ubuntu-latest
35
+ environment: production
36
+ permissions:
37
+ packages: write
38
+ contents: read
13
39
  steps:
14
- - uses: actions/checkout@v3
40
+ - uses: actions/download-artifact@v3
41
+ with:
42
+ name: artifact
43
+ path: .
44
+
45
+ - name: Unzip artifact
46
+ run: |
47
+ unzip -q artifact.zip
48
+ rm artifact.zip
49
+
15
50
  - uses: actions/setup-node@v3
16
51
  with:
17
- node-version: 16
52
+ node-version: 20
18
53
  registry-url: https://registry.npmjs.org/
19
- - run: npm ci
20
- - run: npm publish
54
+
55
+ - name: Publish to NPM
56
+ run: |
57
+ if [ "${{ github.event.release.prerelease }}" = "true" ]; then
58
+ npm publish --tag beta
59
+ else
60
+ npm publish
61
+ fi
21
62
  env:
22
63
  NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
64
+
65
+ publish-github:
66
+ needs: build
67
+ runs-on: ubuntu-latest
68
+ environment: production
69
+ permissions:
70
+ packages: write
71
+ contents: read
72
+ steps:
73
+ - uses: actions/download-artifact@v3
74
+ with:
75
+ name: artifact
76
+ path: .
77
+
78
+ - name: Unzip artifact
79
+ run: |
80
+ unzip -q artifact.zip
81
+ rm artifact.zip
82
+
83
+ - uses: actions/setup-node@v3
84
+ with:
85
+ node-version: 20
86
+ registry-url: https://npm.pkg.github.com/
87
+
88
+ - name: Publish to GitHub Packages
89
+ run: |
90
+ if [ "${{ github.event.release.prerelease }}" = "true" ]; then
91
+ npm publish --tag beta
92
+ else
93
+ npm publish
94
+ fi
95
+ env:
96
+ NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -1,8 +1,6 @@
1
1
  module.exports = {
2
2
  plugins: [
3
3
  'node',
4
- 'sort-export-all',
5
- 'sort-keys-fix',
6
4
  ],
7
5
  env: {
8
6
  node: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@innovixx/eslint-config",
3
- "version": "1.3.2",
3
+ "version": "2.0.0-beta-2",
4
4
  "main": "configs/index.js",
5
5
  "repository": "git@github.com:Innovixx-Development/eslint-config.git",
6
6
  "description": "Opinionated ESLint config for JavaScript developers",
@@ -16,61 +16,18 @@
16
16
  "build": "yarn run lint",
17
17
  "demo": "eslint demo/"
18
18
  },
19
- "peerDependencies": {
20
- "@typescript-eslint/eslint-plugin": "^6.12.0",
21
- "eslint": ">= 7.0.0",
22
- "eslint-plugin-import": "^2.20.0",
23
- "eslint-plugin-jest": "^24.0.0",
24
- "eslint-plugin-jest-dom": "^3.0.0",
25
- "eslint-plugin-jsx-a11y": "^6.2.3",
26
- "eslint-plugin-node": "^11.0.0",
27
- "eslint-plugin-react": "^7.20.0",
28
- "eslint-plugin-react-hooks": "^4.0.0",
29
- "eslint-plugin-sort-export-all": "^1.4.1",
30
- "eslint-plugin-sort-keys-fix": "^1.1.2"
31
- },
32
- "peerDependenciesMeta": {
33
- "@typescript-eslint/eslint-plugin": {
34
- "optional": true
35
- },
36
- "eslint-plugin-jest": {
37
- "optional": true
38
- },
39
- "eslint-plugin-jest-dom": {
40
- "optional": true
41
- },
42
- "eslint-plugin-jsx-a11y": {
43
- "optional": true
44
- },
45
- "eslint-plugin-react": {
46
- "optional": true
47
- },
48
- "eslint-plugin-react-hooks": {
49
- "optional": true
50
- },
51
- "eslint-plugin-sort-export-all": {
52
- "optional": true
53
- },
54
- "eslint-plugin-sort-keys-fix": {
55
- "optional": true
56
- }
57
- },
58
19
  "dependencies": {
59
- "confusing-browser-globals": "^1.0.9",
60
- "object.assign": "^4.1.0",
61
- "object.entries": "^1.1.1"
62
- },
63
- "devDependencies": {
64
- "@typescript-eslint/eslint-plugin": "^6.12.0",
65
- "eslint": "^7.16.0",
66
- "eslint-plugin-import": "^2.20.0",
67
- "eslint-plugin-jest": "^24.1.3",
68
- "eslint-plugin-jest-dom": "^3.6.5",
69
- "eslint-plugin-jsx-a11y": "^6.2.3",
20
+ "confusing-browser-globals": "^1.0.11",
21
+ "object.assign": "^4.1.7",
22
+ "object.entries": "^1.1.8",
23
+ "@typescript-eslint/eslint-plugin": "^8.18.1",
24
+ "eslint": "^9.17.0",
25
+ "eslint-plugin-import": "^2.31.0",
26
+ "eslint-plugin-jest": "^28.9.0",
27
+ "eslint-plugin-jest-dom": "^5.5.0",
28
+ "eslint-plugin-jsx-a11y": "^6.10.2",
70
29
  "eslint-plugin-node": "^11.1.0",
71
- "eslint-plugin-react": "7.20.2",
72
- "eslint-plugin-react-hooks": "^4.2.0",
73
- "eslint-plugin-sort-export-all": "^1.4.1",
74
- "eslint-plugin-sort-keys-fix": "^1.1.2"
30
+ "eslint-plugin-react": "^7.37.2",
31
+ "eslint-plugin-react-hooks": "^5.1.0"
75
32
  }
76
- }
33
+ }