File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ $ npm install --dev eslint-plugin-effector
31
31
32
32
## Usage
33
33
34
+ ### ESLint <= 8
35
+
34
36
Add ` effector ` to the plugins section of your ` .eslintrc ` configuration file. You can omit the ` eslint-plugin- ` prefix:
35
37
36
38
``` json
@@ -40,6 +42,25 @@ Add `effector` to the plugins section of your `.eslintrc` configuration file. Yo
40
42
}
41
43
```
42
44
45
+ ### ESLint 9
46
+
47
+ ``` mjs
48
+ import { fixupPluginRules } from " @eslint/compat" ;
49
+ import effector from " eslint-plugin-effector" ;
50
+
51
+ export default [
52
+ {
53
+ plugins: {
54
+ effector: fixupPluginRules (effector),
55
+ },
56
+ rules: {
57
+ ... effector .configs .recommended .rules ,
58
+ ... effector .configs .scope .rules ,
59
+ },
60
+ },
61
+ ];
62
+ ```
63
+
43
64
Read more detailed docs on [ eslint.effector.dev] ( https://eslint.effector.dev/ )
44
65
45
66
## Maintenance
Original file line number Diff line number Diff line change 23
23
"access" : " public"
24
24
},
25
25
"engines" : {
26
- "node" : " ^16 || ^17 || ^18 || ^19 || ^20 || ^21 || ^22"
26
+ "node" : " ^16 || ^17 || ^18 || ^19 || ^20 || ^21 || ^22 || ^23 "
27
27
},
28
28
"devDependencies" : {
29
29
"@types/react" : " ^17.0.37" ,
45
45
},
46
46
"peerDependencies" : {
47
47
"effector" : " ^23" ,
48
- "eslint" : " 7 || 8"
48
+ "eslint" : " 7 || 8 || 9 "
49
49
},
50
50
"dependencies" : {
51
51
"prettier" : " ^2.3.2"
You can’t perform that action at this time.
0 commit comments