@foray1010/eslint-config 7.2.0 → 7.3.0
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/package.json +2 -2
- package/presets/base.js +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,12 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.3.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.2.0...@foray1010/eslint-config@7.3.0) (2022-07-28)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **eslint-config:** use jest/unbound-method for tests ([babe1d7](https://github.com/foray1010/common-presets/commit/babe1d7f9f9f208f60cb08e5ec52ac6b93136644))
|
|
11
|
+
|
|
6
12
|
## [7.2.0](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.1.0...@foray1010/eslint-config@7.2.0) (2022-07-27)
|
|
7
13
|
|
|
8
14
|
### Features
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@foray1010/eslint-config",
|
|
4
|
-
"version": "7.
|
|
4
|
+
"version": "7.3.0",
|
|
5
5
|
"homepage": "https://github.com/foray1010/common-presets/tree/master/packages/eslint-config#readme",
|
|
6
6
|
"bugs": "https://github.com/foray1010/common-presets/issues",
|
|
7
7
|
"repository": {
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"publishConfig": {
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "1a8bec3ae717a3e1d87041091475f3346476b1a3"
|
|
52
52
|
}
|
package/presets/base.js
CHANGED
|
@@ -222,9 +222,7 @@ module.exports = {
|
|
|
222
222
|
// ignore static function as those are not supposed to use `this`
|
|
223
223
|
'@typescript-eslint/unbound-method': [
|
|
224
224
|
'error',
|
|
225
|
-
{
|
|
226
|
-
ignoreStatic: true,
|
|
227
|
-
},
|
|
225
|
+
{ ignoreStatic: true },
|
|
228
226
|
],
|
|
229
227
|
},
|
|
230
228
|
overrides: [
|
|
@@ -233,6 +231,10 @@ module.exports = {
|
|
|
233
231
|
rules: {
|
|
234
232
|
// doesn't work with jest.fn<void>()
|
|
235
233
|
'@typescript-eslint/no-invalid-void-type': 'off',
|
|
234
|
+
// replace by jest/unbound-method
|
|
235
|
+
'@typescript-eslint/unbound-method': 'off',
|
|
236
|
+
// allow passing an unbound method to `expect` calls
|
|
237
|
+
'jest/unbound-method': ['error', { ignoreStatic: true }],
|
|
236
238
|
},
|
|
237
239
|
},
|
|
238
240
|
],
|