eslint-config-silverwind 151.0.1 → 152.0.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/README.md CHANGED
@@ -1,10 +1,15 @@
1
- # eslint-config-silverwind [![](https://img.shields.io/npm/v/eslint-config-silverwind.svg)](https://www.npmjs.org/package/eslint-config-silverwind) [![](https://packagephobia.com/badge?p=eslint-config-silverwind)](https://packagephobia.com/result?p=eslint-config-silverwind) [![](https://img.shields.io/badge/licence-bsd-blue.svg)](https://raw.githubusercontent.com/silverwind/eslint-config-silverwind/master/LICENSE)
1
+ # eslint-config-silverwind
2
+ [![](https://img.shields.io/npm/v/eslint-config-silverwind.svg)](https://www.npmjs.org/package/eslint-config-silverwind) [![](https://packagephobia.com/badge?p=eslint-config-silverwind)](https://packagephobia.com/result?p=eslint-config-silverwind)
2
3
 
3
- Exhaustive ESLint configuration
4
+ > Exhaustive ESLint configuration
4
5
 
5
6
  ## Usage
6
7
 
7
- In your `eslint.config.ts`:
8
+ ```sh
9
+ pnpm add -D eslint-config-silverwind
10
+ ```
11
+
12
+ In `eslint.config.ts`:
8
13
 
9
14
  ```ts
10
15
  import silverwind from "eslint-config-silverwind";
@@ -15,9 +20,9 @@ export default defineConfig(...silverwind);
15
20
 
16
21
  Run via the included `eslint-silverwind` wrapper CLI. All arguments are passed through to `eslint`.
17
22
 
18
- ```bash
19
- eslint-silverwind .
20
- eslint-silverwind --fix .
23
+ ```sh
24
+ pnpm exec eslint-silverwind .
25
+ pnpm exec eslint-silverwind --fix .
21
26
  ```
22
27
 
23
- © [silverwind](https://github.com/silverwind), distributed under BSD licence.
28
+ © [silverwind](https://github.com/silverwind), distributed under BSD licence
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import{argv as e,env as t,exit as n,platform as r}from"node:process";import{execFileSync as i}from"node:child_process";const a=e.slice(2);try{i(`pnpm`,[`exec`,`eslint`,...Object.entries({"--flag":`unstable_native_nodejs_ts_config`,"--concurrency":`2`}).filter(([e])=>!a.includes(e)).flat(),...a],{stdio:`inherit`,env:{...t,NODE_OPTIONS:`${t.NODE_OPTIONS??``} --disable-warning=ESLintPoorConcurrencyWarning`},...r===`win32`&&{shell:!0}})}catch(e){let{status:t}=e;t??(console.error(Error.isError(e)?e.message:e),n(1)),n(t)}export{};
2
+ import{argv as e,env as t,exit as n,platform as r}from"node:process";import{execFileSync as i}from"node:child_process";const a=e.slice(2);try{i(`pnpm`,[`exec`,`eslint`,...Object.entries({"--flag":`unstable_native_nodejs_ts_config`,"--concurrency":`2`}).filter(([e])=>!a.includes(e)).flat(),...a],{stdio:`inherit`,env:{...t,NODE_OPTIONS:`${t.NODE_OPTIONS??``} --disable-warning=ESLintPoorConcurrencyWarning`},...r===`win32`&&{shell:!0}})}catch(e){let{status:t}=e;t??(console.error(e instanceof Error?e.message:e),n(1)),n(t)}export{};