eslint-plugin-mobx 0.0.8 → 0.0.9
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 +6 -0
- package/README.md +16 -1
- package/dist/index.js +1 -2
- package/package.json +1 -1
- package/src/index.js +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# eslint-plugin-mobx
|
|
2
2
|
|
|
3
|
+
## 0.0.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`e63c2df0`](https://github.com/mobxjs/mobx/commit/e63c2df0ef166868675bce21892cd686a46db953) [#3443](https://github.com/mobxjs/mobx/pull/3443) Thanks [@urugator](https://github.com/urugator)! - changeset for PR #3423: deprecate no-anonymous-observer
|
|
8
|
+
|
|
3
9
|
## 0.0.8
|
|
4
10
|
|
|
5
11
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -82,7 +82,22 @@ It's a bit opinionated and can lead to a lot of false positives depending on you
|
|
|
82
82
|
]
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
### mobx/no-anonymous-observer
|
|
85
|
+
### mobx/no-anonymous-observer (deprecated)
|
|
86
|
+
|
|
87
|
+
_Deprecated in favor of [react/display-name](https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/display-name.md) + [componentWrapperFunctions](https://github.com/jsx-eslint/eslint-plugin-react). Example of **.eslintrc**:_
|
|
88
|
+
```
|
|
89
|
+
{
|
|
90
|
+
"rules": {
|
|
91
|
+
"react/display-name": "warn"
|
|
92
|
+
},
|
|
93
|
+
"settings": {
|
|
94
|
+
"componentWrapperFunctions": [
|
|
95
|
+
"observer"
|
|
96
|
+
]
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
```
|
|
100
|
+
---
|
|
86
101
|
|
|
87
102
|
Forbids anonymous functions or classes as `observer` components.
|
|
88
103
|
Improves debugging experience and [avoids problem with inability to customize `displayName`](https://github.com/mobxjs/mobx/issues/2721).
|
package/dist/index.js
CHANGED
|
@@ -496,8 +496,7 @@ var src = {
|
|
|
496
496
|
"mobx/exhaustive-make-observable": "warn",
|
|
497
497
|
"mobx/unconditional-make-observable": "error",
|
|
498
498
|
"mobx/missing-make-observable": "error",
|
|
499
|
-
"mobx/missing-observer": "warn"
|
|
500
|
-
"mobx/no-anonymous-observer": "warn"
|
|
499
|
+
"mobx/missing-observer": "warn"
|
|
501
500
|
}
|
|
502
501
|
}
|
|
503
502
|
},
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -14,8 +14,7 @@ module.exports = {
|
|
|
14
14
|
"mobx/exhaustive-make-observable": "warn",
|
|
15
15
|
"mobx/unconditional-make-observable": "error",
|
|
16
16
|
"mobx/missing-make-observable": "error",
|
|
17
|
-
"mobx/missing-observer": "warn"
|
|
18
|
-
"mobx/no-anonymous-observer": "warn"
|
|
17
|
+
"mobx/missing-observer": "warn"
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
},
|