Skip to content

Commit 365eec1

Browse files
Merge pull request #20 from adidas/bugfix/typescript-eslint-type-annotation-spacing
FIX @typescript-eslint/type-annotation-spacing config for arrows
2 parents f2a090f + 6dbf4aa commit 365eec1

File tree

6 files changed

+18
-4
lines changed

6 files changed

+18
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ This changelog is only to log changes of the project base.
33
If there are changes on the packages, please, check and update the changelog of each package accordingly.
44
-->
55

6+
## 1.5.1
7+
8+
- Fixed missing configuration for `@typescript-eslint/type-annotation-spacing`.
9+
610
# 1.5.0
711

812
- Added `eslint-config-adidas-typescript` configuration.

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "js-linter-configs",
3-
"version": "1.5.0",
3+
"version": "1.5.1",
44
"description": "adidas configurations for JavaScript linting tools",
55
"license": "MIT",
66
"contributors": [
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.0.1
2+
3+
- Fixed missing configuration for `@typescript-eslint/type-annotation-spacing`.
4+
15
# 1.0.0
26

37
- Initial version: `eslint-config-adidas-typescript`.

packages/eslint-config-adidas-typescript/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,13 @@ module.exports = {
261261
'error',
262262
{
263263
before: false,
264-
after: true
264+
after: true,
265+
overrides: {
266+
arrow: {
267+
before: true,
268+
after: true
269+
}
270+
}
265271
}
266272
],
267273
'@typescript-eslint/unbound-method': [

packages/eslint-config-adidas-typescript/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-adidas-typescript",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "ESLint base configuration and rules for TypeScript codebases",
55
"license": "MIT",
66
"contributors": [

0 commit comments

Comments
 (0)