@evanpurkhiser/eslint-config 0.24.0 → 0.26.0
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/.github/workflows/main.yml +7 -5
- package/package.json +5 -4
- package/src/react.mjs +3 -1
|
@@ -9,19 +9,21 @@ jobs:
|
|
|
9
9
|
runs-on: ubuntu-latest
|
|
10
10
|
steps:
|
|
11
11
|
- uses: actions/checkout@v4
|
|
12
|
-
- uses:
|
|
13
|
-
-
|
|
14
|
-
- run:
|
|
12
|
+
- uses: actions/setup-node@v4
|
|
13
|
+
- uses: pnpm/action-setup@v4
|
|
14
|
+
- run: pnpm install
|
|
15
|
+
- run: pnpm run lint
|
|
15
16
|
publish:
|
|
16
17
|
runs-on: ubuntu-latest
|
|
17
18
|
steps:
|
|
18
19
|
- uses: actions/checkout@v4
|
|
19
|
-
- uses:
|
|
20
|
+
- uses: actions/setup-node@v4
|
|
21
|
+
- uses: pnpm/action-setup@v4
|
|
20
22
|
- name: bump version
|
|
21
23
|
run: |
|
|
22
24
|
git config user.name "GitHub Actions"
|
|
23
25
|
git config user.email "<>"
|
|
24
|
-
|
|
26
|
+
pnpm version minor
|
|
25
27
|
git push
|
|
26
28
|
- run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_AUTH_TOKEN }}
|
|
27
29
|
- run: npm publish --access=public
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/package.json",
|
|
2
3
|
"name": "@evanpurkhiser/eslint-config",
|
|
3
|
-
"version": "0.
|
|
4
|
+
"version": "0.26.0",
|
|
4
5
|
"description": "Evan Purkhiser's personal eslint configuration",
|
|
5
6
|
"main": "src/index.mjs",
|
|
6
7
|
"type": "module",
|
|
@@ -30,7 +31,7 @@
|
|
|
30
31
|
"lint": "eslint ."
|
|
31
32
|
},
|
|
32
33
|
"volta": {
|
|
33
|
-
"node": "22.11.0"
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
"node": "22.11.0"
|
|
35
|
+
},
|
|
36
|
+
"packageManager": "pnpm@10.12.4"
|
|
36
37
|
}
|
package/src/react.mjs
CHANGED
|
@@ -6,7 +6,6 @@ import tseslint from 'typescript-eslint';
|
|
|
6
6
|
const react = tseslint.config(
|
|
7
7
|
reactPlugin.configs.flat.recommended,
|
|
8
8
|
reactPlugin.configs.flat['jsx-runtime'],
|
|
9
|
-
reactHooksPlugin.configs.recommended,
|
|
10
9
|
|
|
11
10
|
{
|
|
12
11
|
plugins: {
|
|
@@ -31,6 +30,9 @@ const react = tseslint.config(
|
|
|
31
30
|
},
|
|
32
31
|
|
|
33
32
|
rules: {
|
|
33
|
+
// XXX: Hack while we wait for flat config support in the hooks plugin
|
|
34
|
+
// https://github.com/facebook/react/pull/30774
|
|
35
|
+
...reactHooksPlugin.configs.recommended.rules,
|
|
34
36
|
'react/prop-types': ['off'],
|
|
35
37
|
'react/display-name': ['off'],
|
|
36
38
|
'react/no-access-state-in-setstate': ['warn'],
|