complete-lint 1.5.0 → 1.6.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 +10 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -181,7 +181,15 @@ await lintScript(async () => {
|
|
|
181
181
|
});
|
|
182
182
|
```
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
Or, if you want to abstract this away, you can simplify the script by using a helper function:
|
|
185
|
+
|
|
186
|
+
```ts
|
|
187
|
+
import { lintScript, standardLintFunction } from "complete-node";
|
|
188
|
+
|
|
189
|
+
await lintScript(standardLintFunction);
|
|
190
|
+
```
|
|
191
|
+
|
|
192
|
+
Additionally, you can also optionally put the script in your "package.json" file:
|
|
185
193
|
|
|
186
194
|
```json
|
|
187
195
|
"scripts": {
|
|
@@ -189,7 +197,7 @@ If you want, you can also put the script in your "package.json" file:
|
|
|
189
197
|
},
|
|
190
198
|
```
|
|
191
199
|
|
|
192
|
-
That allows you to type `npm run lint` to more easily run the script.
|
|
200
|
+
That allows you to type `npm run lint` in order to more easily run the script.
|
|
193
201
|
|
|
194
202
|
### Step 6 - Lint in CI
|
|
195
203
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "complete-lint",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "A linting dependency meta-package for TypeScript projects.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lint",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@prettier/plugin-xml": "^3.4.1",
|
|
29
29
|
"@types/node": "^22.5.4",
|
|
30
|
-
"complete-node": "^1.
|
|
30
|
+
"complete-node": "^1.3.0",
|
|
31
31
|
"complete-tsconfig": "^1.0.0",
|
|
32
32
|
"cspell": "^8.14.2",
|
|
33
33
|
"cspell-check-unused-words": "^1.3.2",
|