@jchiam/eslint-config 5.1.0 → 5.1.1
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.
- package/package.json +47 -43
- package/.gitattributes +0 -1
- package/.github/workflows/ci.yml +0 -38
- package/.github/workflows/publish.yml +0 -26
package/package.json
CHANGED
|
@@ -1,43 +1,47 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@jchiam/eslint-config",
|
|
3
|
-
"version": "5.1.
|
|
4
|
-
"description": "my personal ESLint rules",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "recommended.js",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
},
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"eslint": "^
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"eslint
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"eslint-plugin-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
"
|
|
42
|
-
|
|
43
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@jchiam/eslint-config",
|
|
3
|
+
"version": "5.1.1",
|
|
4
|
+
"description": "my personal ESLint rules",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "recommended.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"recommended.js",
|
|
9
|
+
"react.js"
|
|
10
|
+
],
|
|
11
|
+
"scripts": {
|
|
12
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
13
|
+
},
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/jchiam/eslint-config.git"
|
|
17
|
+
},
|
|
18
|
+
"author": "Jonathan Chiam",
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@eslint-react/eslint-plugin": "^1.0.0",
|
|
21
|
+
"@eslint/js": "^9.0.0",
|
|
22
|
+
"@stylistic/eslint-plugin": "^5.0.0",
|
|
23
|
+
"globals": "^17.6.0"
|
|
24
|
+
},
|
|
25
|
+
"peerDependencies": {
|
|
26
|
+
"eslint": "^9.0.0 || ^10.0.0",
|
|
27
|
+
"eslint-plugin-import": "^2.29.0",
|
|
28
|
+
"eslint-plugin-jest": "^29.0.0",
|
|
29
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
30
|
+
"typescript-eslint": "^8.0.0"
|
|
31
|
+
},
|
|
32
|
+
"peerDependenciesMeta": {
|
|
33
|
+
"eslint-plugin-jest": {
|
|
34
|
+
"optional": true
|
|
35
|
+
},
|
|
36
|
+
"eslint-plugin-react-hooks": {
|
|
37
|
+
"optional": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"eslint": "^9.0.0",
|
|
42
|
+
"eslint-plugin-import": "^2.32.0",
|
|
43
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
44
|
+
"typescript": "^5.9.3",
|
|
45
|
+
"typescript-eslint": "^8.59.4"
|
|
46
|
+
}
|
|
47
|
+
}
|
package/.gitattributes
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
* text=auto eol=lf
|
package/.github/workflows/ci.yml
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
name: CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [master]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [master]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
test:
|
|
11
|
-
name: Node.js ${{ matrix.node-version }}
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
strategy:
|
|
14
|
-
matrix:
|
|
15
|
-
node-version: [20, 22, 24]
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- uses: actions/checkout@v6
|
|
19
|
-
|
|
20
|
-
- name: Set up Node.js
|
|
21
|
-
uses: actions/setup-node@v6
|
|
22
|
-
with:
|
|
23
|
-
node-version: ${{ matrix.node-version }}
|
|
24
|
-
cache: npm
|
|
25
|
-
|
|
26
|
-
- name: Install dependencies
|
|
27
|
-
run: npm ci
|
|
28
|
-
|
|
29
|
-
- name: Validate configs load
|
|
30
|
-
run: |
|
|
31
|
-
node --input-type=module --eval "
|
|
32
|
-
import recommended from './recommended.js';
|
|
33
|
-
import react from './react.js';
|
|
34
|
-
if (!Array.isArray(recommended)) throw new Error('recommended.js must export an array');
|
|
35
|
-
if (!Array.isArray(react)) throw new Error('react.js must export an array');
|
|
36
|
-
console.log('recommended.js: ok (' + recommended.length + ' config objects)');
|
|
37
|
-
console.log('react.js: ok (' + react.length + ' config objects)');
|
|
38
|
-
"
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
release:
|
|
5
|
-
types: [published]
|
|
6
|
-
|
|
7
|
-
jobs:
|
|
8
|
-
publish:
|
|
9
|
-
runs-on: ubuntu-latest
|
|
10
|
-
permissions:
|
|
11
|
-
id-token: write
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v6
|
|
15
|
-
|
|
16
|
-
- name: Set up Node.js
|
|
17
|
-
uses: actions/setup-node@v6
|
|
18
|
-
with:
|
|
19
|
-
node-version: 24
|
|
20
|
-
registry-url: https://registry.npmjs.org
|
|
21
|
-
|
|
22
|
-
- name: Install dependencies
|
|
23
|
-
run: npm ci
|
|
24
|
-
|
|
25
|
-
- name: Publish to npm
|
|
26
|
-
run: npm publish --access public --provenance
|