@dartess/eslint-plugin 0.0.2 → 0.0.3
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/CHANGELOG.md +4 -0
- package/README.md +3 -1
- package/dist/configs/mobx.js +1 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
[//]: # (https://keepachangelog.com/en/1.1.0/)
|
|
4
4
|
|
|
5
|
+
## [0.0.3] - 2025-12-25
|
|
6
|
+
|
|
7
|
+
- disable recommended `mobx/missing-make-observable`: this rule useless with modern decorators syntax
|
|
8
|
+
|
|
5
9
|
## [0.0.2] - 2025-12-20
|
|
6
10
|
|
|
7
11
|
- mark optional deps as "optional" in "peerDependenciesMeta"
|
package/README.md
CHANGED
|
@@ -83,10 +83,12 @@ The package is intended for use only with the `flat` eslint config.
|
|
|
83
83
|
|
|
84
84
|
## Next steps
|
|
85
85
|
|
|
86
|
-
If you
|
|
86
|
+
If you are using React, you also probably will want to add
|
|
87
87
|
[eslint-plugin-react-refresh](https://www.npmjs.com/package/eslint-plugin-react-refresh).
|
|
88
88
|
This plugin requires manual setup for you build tools.
|
|
89
89
|
|
|
90
|
+
If you are using Mobx with legacy decorators, you have to enable rule `mobx/missing-make-observable` manually.
|
|
91
|
+
|
|
90
92
|
## Usage rules
|
|
91
93
|
|
|
92
94
|
Copy example above into your `eslint.config.ts` and remove unnecesary parts.
|
package/dist/configs/mobx.js
CHANGED
|
@@ -5,6 +5,7 @@ const config = [
|
|
|
5
5
|
name: '@dartess/mobx',
|
|
6
6
|
rules: {
|
|
7
7
|
'mobx/missing-observer': 'off', // replaced by the neater "@dartess/require-observer"
|
|
8
|
+
'mobx/missing-make-observable': 'off', // useless with modern decorators syntax
|
|
8
9
|
'@dartess/strict-observable-components-declaration': 'error',
|
|
9
10
|
'@dartess/require-observer': 'error',
|
|
10
11
|
},
|