@arrirpc/eslint-plugin 0.76.3 → 0.76.4
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 +7 -7
- package/dist/configs.d.cts +2 -1
- package/dist/configs.d.ts +2 -1
- package/dist/plugin.d.cts +2 -1
- package/dist/plugin.d.ts +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
@@ -26,12 +26,12 @@ This turns all of the `@arrirpc/eslint` rules on.
|
|
26
26
|
|
27
27
|
```js
|
28
28
|
// eslint.config.js
|
29
|
-
import arri from
|
29
|
+
import arri from '@arrirpc/eslint-plugin/configs';
|
30
30
|
|
31
31
|
export default [
|
32
32
|
arri.recommended,
|
33
33
|
{
|
34
|
-
files: [
|
34
|
+
files: ['src/**/*.ts'], // you will still need to tell eslint which files to lint like so
|
35
35
|
},
|
36
36
|
];
|
37
37
|
```
|
@@ -42,7 +42,7 @@ The plugin can be enabled in flat file configs like so.
|
|
42
42
|
|
43
43
|
```js
|
44
44
|
// eslint.config.js
|
45
|
-
import arri from
|
45
|
+
import arri from '@arrirpc/eslint';
|
46
46
|
|
47
47
|
export default [
|
48
48
|
{
|
@@ -51,13 +51,13 @@ export default [
|
|
51
51
|
},
|
52
52
|
rules: {
|
53
53
|
// check to see if an ID has been assigned to root a.object() schemas
|
54
|
-
|
54
|
+
'arri/no-anonymous-object': 2,
|
55
55
|
// check to see if an ID has been assigned to a.enumerator() or a.stringEnum() schemas
|
56
|
-
|
56
|
+
'arri/no-anonymous-enumerator': 2,
|
57
57
|
// check to see if an ID has been assigned to a.discriminator() schemas
|
58
|
-
|
58
|
+
'arri/no-anonymous-discriminator': 2,
|
59
59
|
// check to see if an ID has been assigned to a.recursive() schemas
|
60
|
-
|
60
|
+
'arri/no-anonymous-recursive': 2,
|
61
61
|
},
|
62
62
|
},
|
63
63
|
];
|
package/dist/configs.d.cts
CHANGED
package/dist/configs.d.ts
CHANGED
package/dist/plugin.d.cts
CHANGED
package/dist/plugin.d.ts
CHANGED