@innovixx/eslint-config 1.3.3 → 2.0.0-beta-3
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.
|
@@ -15,7 +15,7 @@ jobs:
|
|
|
15
15
|
- uses: actions/checkout@v4
|
|
16
16
|
- uses: actions/setup-node@v3
|
|
17
17
|
with:
|
|
18
|
-
node-version:
|
|
18
|
+
node-version: 20
|
|
19
19
|
|
|
20
20
|
- name: Install dependencies
|
|
21
21
|
run: npm install
|
|
@@ -24,7 +24,7 @@ jobs:
|
|
|
24
24
|
run: zip -r artifact.zip . -q
|
|
25
25
|
|
|
26
26
|
- name: Upload artifact
|
|
27
|
-
uses: actions/upload-artifact@
|
|
27
|
+
uses: actions/upload-artifact@v3
|
|
28
28
|
with:
|
|
29
29
|
name: artifact
|
|
30
30
|
path: ./artifact.zip
|
|
@@ -37,7 +37,7 @@ jobs:
|
|
|
37
37
|
packages: write
|
|
38
38
|
contents: read
|
|
39
39
|
steps:
|
|
40
|
-
- uses: actions/download-artifact@
|
|
40
|
+
- uses: actions/download-artifact@v3
|
|
41
41
|
with:
|
|
42
42
|
name: artifact
|
|
43
43
|
path: .
|
|
@@ -49,11 +49,16 @@ jobs:
|
|
|
49
49
|
|
|
50
50
|
- uses: actions/setup-node@v3
|
|
51
51
|
with:
|
|
52
|
-
node-version:
|
|
52
|
+
node-version: 20
|
|
53
53
|
registry-url: https://registry.npmjs.org/
|
|
54
54
|
|
|
55
55
|
- name: Publish to NPM
|
|
56
|
-
run:
|
|
56
|
+
run: |
|
|
57
|
+
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
|
|
58
|
+
npm publish --tag beta
|
|
59
|
+
else
|
|
60
|
+
npm publish
|
|
61
|
+
fi
|
|
57
62
|
env:
|
|
58
63
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
|
59
64
|
|
|
@@ -65,7 +70,7 @@ jobs:
|
|
|
65
70
|
packages: write
|
|
66
71
|
contents: read
|
|
67
72
|
steps:
|
|
68
|
-
- uses: actions/download-artifact@
|
|
73
|
+
- uses: actions/download-artifact@v3
|
|
69
74
|
with:
|
|
70
75
|
name: artifact
|
|
71
76
|
path: .
|
|
@@ -77,10 +82,15 @@ jobs:
|
|
|
77
82
|
|
|
78
83
|
- uses: actions/setup-node@v3
|
|
79
84
|
with:
|
|
80
|
-
node-version:
|
|
85
|
+
node-version: 20
|
|
81
86
|
registry-url: https://npm.pkg.github.com/
|
|
82
87
|
|
|
83
88
|
- name: Publish to GitHub Packages
|
|
84
|
-
run:
|
|
89
|
+
run: |
|
|
90
|
+
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
|
|
91
|
+
npm publish --tag beta
|
|
92
|
+
else
|
|
93
|
+
npm publish
|
|
94
|
+
fi
|
|
85
95
|
env:
|
|
86
96
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
package/configs/base/index.js
CHANGED
|
@@ -352,15 +352,5 @@ module.exports = {
|
|
|
352
352
|
|
|
353
353
|
// require or disallow Yoda conditions
|
|
354
354
|
yoda: 'error',
|
|
355
|
-
|
|
356
|
-
// require object keys to be sorted
|
|
357
|
-
// https://eslint.org/docs/rules/sort-keys
|
|
358
|
-
// https://www.npmjs.com/package/eslint-plugin-sort-keys-fix
|
|
359
|
-
'sort-keys-fix/sort-keys-fix': 'error',
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
// Requires exports * to appear in alphabetical order.
|
|
363
|
-
// https://github.com/nirtamir2/eslint-plugin-sort-export-all
|
|
364
|
-
'sort-export-all/sort-export-all': 'error',
|
|
365
355
|
},
|
|
366
356
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@innovixx/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-beta-3",
|
|
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.
|
|
60
|
-
"object.assign": "^4.1.
|
|
61
|
-
"object.entries": "^1.1.
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"eslint": "^
|
|
66
|
-
"eslint-plugin-
|
|
67
|
-
"eslint-plugin-
|
|
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.
|
|
72
|
-
"eslint-plugin-react-hooks": "^
|
|
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
|
+
}
|