@vyriy/eslint-config 0.1.13 → 0.1.18
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 +8 -6
- package/index.d.ts +3 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -19,16 +19,16 @@ This package provides the base ESLint setup used in Vyriy repositories for:
|
|
|
19
19
|
With npm:
|
|
20
20
|
|
|
21
21
|
```bash
|
|
22
|
-
npm install -D @vyriy/eslint-config eslint
|
|
22
|
+
npm install -D @vyriy/eslint-config eslint
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
With Yarn:
|
|
26
26
|
|
|
27
27
|
```bash
|
|
28
|
-
yarn add -D @vyriy/eslint-config eslint
|
|
28
|
+
yarn add -D @vyriy/eslint-config eslint
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
Install `eslint`
|
|
31
|
+
Install `eslint` in the consumer project so the ESLint CLI is available.
|
|
32
32
|
|
|
33
33
|
## Usage
|
|
34
34
|
|
|
@@ -40,10 +40,10 @@ export { default } from '@vyriy/eslint-config';
|
|
|
40
40
|
|
|
41
41
|
If you need local overrides:
|
|
42
42
|
|
|
43
|
-
```
|
|
44
|
-
import baseConfig from '@vyriy/eslint-config';
|
|
43
|
+
```ts
|
|
44
|
+
import baseConfig, { type Linter } from '@vyriy/eslint-config';
|
|
45
45
|
|
|
46
|
-
|
|
46
|
+
const config: Linter.Config[] = [
|
|
47
47
|
...baseConfig,
|
|
48
48
|
{
|
|
49
49
|
rules: {
|
|
@@ -51,6 +51,8 @@ export default [
|
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
53
|
];
|
|
54
|
+
|
|
55
|
+
export default config;
|
|
54
56
|
```
|
|
55
57
|
|
|
56
58
|
## Relative ESM Imports
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vyriy/eslint-config",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.18",
|
|
4
4
|
"description": "Shared ESLint config for Vyriy projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
18
18
|
"eslint-plugin-storybook": "^10.3.6",
|
|
19
19
|
"globals": "^17.6.0",
|
|
20
|
-
"jiti": "^2.7.0"
|
|
20
|
+
"jiti": "^2.7.0",
|
|
21
|
+
"storybook": "^10.3.6"
|
|
21
22
|
},
|
|
22
23
|
"license": "MIT",
|
|
23
24
|
"repository": {
|