@spinnaker/eslint-plugin 0.0.0-2026.1-0 → 0.0.0-2026.2-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/README.md +4 -6
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = defineConfig([{
|
|
|
36
36
|
|
|
37
37
|
## Creating a custom lint rule
|
|
38
38
|
|
|
39
|
-
This `
|
|
39
|
+
This `pnpm create-rule` command will:
|
|
40
40
|
|
|
41
41
|
- Scaffolds a sample rule
|
|
42
42
|
- Scaffolds a test for the sample rule
|
|
@@ -193,8 +193,7 @@ ruleTester.run('my-cool-rule', rule, {
|
|
|
193
193
|
Run the tests from `/packages/eslint-plugin`:
|
|
194
194
|
|
|
195
195
|
```
|
|
196
|
-
❯
|
|
197
|
-
yarn run v1.22.4
|
|
196
|
+
❯ pnpm test
|
|
198
197
|
$ jest
|
|
199
198
|
PASS test/my-cool-rule.spec.js
|
|
200
199
|
|
|
@@ -203,12 +202,11 @@ Tests: 3 passed, 3 total
|
|
|
203
202
|
Snapshots: 0 total
|
|
204
203
|
Time: 1.095s
|
|
205
204
|
Ran all test suites.
|
|
206
|
-
✨ Done in 1.69s.
|
|
207
205
|
```
|
|
208
206
|
|
|
209
|
-
While writing tests, it's useful to run Jest in watch mode: `
|
|
207
|
+
While writing tests, it's useful to run Jest in watch mode: `pnpm test --watch`
|
|
210
208
|
|
|
211
|
-
If you need to debug your tests, run `
|
|
209
|
+
If you need to debug your tests, run `pnpm test:debug` and launch the Chrome Debugger
|
|
212
210
|
(enter `chrome://inspect` into the Chrome URL bar).
|
|
213
211
|
|
|
214
212
|
You can (and should) run your work-in-progress rule against the spinnaker OSS codebase:
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "https://github.com/spinnaker/spinnaker.git"
|
|
6
6
|
},
|
|
7
|
-
"version": "0.0.0-2026.
|
|
7
|
+
"version": "0.0.0-2026.2-0",
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"license": "Apache-2.0",
|
|
10
10
|
"publishConfig": {
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@babel/preset-typescript": "^7.15.0",
|
|
26
|
-
"@eslint/compat": "^2.0.
|
|
27
|
-
"@eslint/eslintrc": "^3.3.
|
|
26
|
+
"@eslint/compat": "^2.0.3",
|
|
27
|
+
"@eslint/eslintrc": "^3.3.5",
|
|
28
28
|
"@eslint/js": "^9.39.2",
|
|
29
29
|
"@types/eslint": "9.6.1",
|
|
30
30
|
"@types/estree": "*",
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"fast-glob": "^3.2.7",
|
|
38
38
|
"globals": "^17.2.0",
|
|
39
39
|
"jest": "^29.0.0",
|
|
40
|
+
"jest-environment-node": "^29.0.0",
|
|
40
41
|
"prettier": "*",
|
|
41
42
|
"typescript": "5.0.4"
|
|
42
43
|
},
|
|
@@ -61,5 +62,5 @@
|
|
|
61
62
|
],
|
|
62
63
|
"testEnvironment": "node"
|
|
63
64
|
},
|
|
64
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "e206b48fedf14bbfbaeae79c88bc0304966206aa"
|
|
65
66
|
}
|