@foray1010/eslint-config 7.3.3 → 7.3.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/CHANGELOG.md +6 -0
- package/package.json +2 -2
- package/presets/base.js +11 -0
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.4](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.3.3...@foray1010/eslint-config@7.3.4) (2022-08-26)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **eslint-config:** allow {} type ([930a2fa](https://github.com/foray1010/common-presets/commit/930a2fa03fe5f14435890226266c8b103baa8221))
|
|
11
|
+
|
|
6
12
|
## [7.3.3](https://github.com/foray1010/common-presets/compare/@foray1010/eslint-config@7.3.2...@foray1010/eslint-config@7.3.3) (2022-08-24)
|
|
7
13
|
|
|
8
14
|
**Note:** Version bump only for package @foray1010/eslint-config
|
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.3.
|
|
4
|
+
"version": "7.3.4",
|
|
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": {
|
|
@@ -56,5 +56,5 @@
|
|
|
56
56
|
"publishConfig": {
|
|
57
57
|
"access": "public"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "8cdf88d4e40b34322f8777bff70a5116c66aef0e"
|
|
60
60
|
}
|
package/presets/base.js
CHANGED
|
@@ -149,6 +149,17 @@ module.exports = {
|
|
|
149
149
|
},
|
|
150
150
|
plugins: ['@typescript-eslint/eslint-plugin'],
|
|
151
151
|
rules: {
|
|
152
|
+
// extend existing rule
|
|
153
|
+
'@typescript-eslint/ban-types': [
|
|
154
|
+
'error',
|
|
155
|
+
{
|
|
156
|
+
types: {
|
|
157
|
+
// TypeScript team suggests to use `<T extends {}>` https://devblogs.microsoft.com/typescript/announcing-typescript-4-8/#unconstrained-generics-no-longer-assignable-to
|
|
158
|
+
'{}': false,
|
|
159
|
+
},
|
|
160
|
+
extendDefaults: true,
|
|
161
|
+
},
|
|
162
|
+
],
|
|
152
163
|
// separate type imports which allow certain optimizations within compilers
|
|
153
164
|
'@typescript-eslint/consistent-type-imports': [
|
|
154
165
|
'error',
|