@ringieraxelspringer/eslint-config 9.0.0 → 12.0.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 +33 -9
- package/README.md +1 -1
- package/lib/index.js +13 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,14 +2,34 @@
|
|
|
2
2
|
|
|
3
3
|
The format is based on [Keep a Changelog](https://keepachangelog.com/), and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
4
4
|
|
|
5
|
+
## [12.0.0] - 2021-12-06
|
|
6
|
+
### Added
|
|
7
|
+
- [@mdulawa]: Added `semi-spacing` rule.
|
|
8
|
+
|
|
9
|
+
### Removed
|
|
10
|
+
- [@mdulawa]: Dropped support for Node v10.
|
|
11
|
+
|
|
12
|
+
## [11.0.0] - 2021-11-12
|
|
13
|
+
### Added
|
|
14
|
+
- [@pniewiejski]: Added `@typescript-eslint/semi` rule.
|
|
15
|
+
|
|
16
|
+
## [10.0.1] - 2021-09-01
|
|
17
|
+
### Fixed
|
|
18
|
+
- [@tzachara]: Fixed override rule `@typescript-eslint/type-annotation-spacing` for arrow type definitions.
|
|
19
|
+
|
|
20
|
+
## [10.0.0] - 2021-08-24
|
|
21
|
+
### Added
|
|
22
|
+
- [@tzachara]: Added `@typescript-eslint/member-delimiter-style` rule.
|
|
23
|
+
- [@tzachara]: Added `@typescript-eslint/type-annotation-spacing` rule.
|
|
24
|
+
|
|
5
25
|
## [9.0.0] - 2021-06-25
|
|
6
26
|
### Added
|
|
7
|
-
- [@pbizon]:
|
|
8
|
-
- [@pbizon]:
|
|
27
|
+
- [@pbizon]: Added `multiline-ternary` rule.
|
|
28
|
+
- [@pbizon]: Added `operator-linebreak` rule.
|
|
9
29
|
|
|
10
30
|
## [8.0.0] - 2021-06-24
|
|
11
31
|
### Added
|
|
12
|
-
- [@mdulawa]:
|
|
32
|
+
- [@mdulawa]: Added `padded-blocks` rule.
|
|
13
33
|
|
|
14
34
|
## [7.0.1] - 2021-06-18
|
|
15
35
|
### Fixed
|
|
@@ -18,12 +38,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
18
38
|
|
|
19
39
|
## [7.0.0] - 2021-06-16
|
|
20
40
|
### Added
|
|
21
|
-
- [@jbienkowski2]:
|
|
22
|
-
- [@jbienkowski2]:
|
|
23
|
-
- [@jbienkowski2]:
|
|
24
|
-
- [@jbienkowski2]:
|
|
25
|
-
- [@jbienkowski2]:
|
|
26
|
-
- [@jbienkowski2]:
|
|
41
|
+
- [@jbienkowski2]: Added `@typescript-eslint/explicit-function-return-type` rule.
|
|
42
|
+
- [@jbienkowski2]: Added `@typescript-eslint/explicit-member-accessibility` rule.
|
|
43
|
+
- [@jbienkowski2]: Added `@typescript-eslint/prefer-nullish-coalescing` rule.
|
|
44
|
+
- [@jbienkowski2]: Added `@typescript-eslint/prefer-optional-chain` rule.
|
|
45
|
+
- [@jbienkowski2]: Added `@typescript-eslint/prefer-readonly` rule.
|
|
46
|
+
- [@jbienkowski2]: Added `@typescript-eslint/prefer-ts-expect-error` rule.
|
|
27
47
|
|
|
28
48
|
## [6.0.2] - 2021-06-14
|
|
29
49
|
### Fixed
|
|
@@ -129,6 +149,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
129
149
|
### Added
|
|
130
150
|
- [@mdulawa]: Initial version.
|
|
131
151
|
|
|
152
|
+
[12.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=12.0.0&targetBranch=11.0.0
|
|
153
|
+
[11.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=11.0.0&targetBranch=10.0.1
|
|
154
|
+
[10.0.1]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.1&targetBranch=10.0.0
|
|
155
|
+
[10.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.0&targetBranch=9.0.0
|
|
132
156
|
[9.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=9.0.0&targetBranch=8.0.0
|
|
133
157
|
[8.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=8.0.0&targetBranch=7.0.1
|
|
134
158
|
[7.0.1]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=7.0.1&targetBranch=7.0.0
|
package/README.md
CHANGED
package/lib/index.js
CHANGED
|
@@ -86,6 +86,7 @@ module.exports = {
|
|
|
86
86
|
'require-atomic-updates': 'error',
|
|
87
87
|
'require-await': 'error',
|
|
88
88
|
'semi': ['error', 'always'],
|
|
89
|
+
'semi-spacing': ['error', { after: true, before: false }],
|
|
89
90
|
'space-before-blocks': 'error',
|
|
90
91
|
'space-before-function-paren': ['error', { anonymous: 'never', asyncArrow: 'always', named: 'never' }],
|
|
91
92
|
'space-infix-ops': 'error',
|
|
@@ -118,11 +119,22 @@ module.exports = {
|
|
|
118
119
|
rules: {
|
|
119
120
|
'@typescript-eslint/explicit-function-return-type': 'warn',
|
|
120
121
|
'@typescript-eslint/explicit-member-accessibility': ['warn', { overrides: { constructors: 'no-public' } }],
|
|
122
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
123
|
+
'error',
|
|
124
|
+
{
|
|
125
|
+
multiline: { delimiter: 'semi', requireLast: true },
|
|
126
|
+
singleline: { delimiter: 'semi', requireLast: true },
|
|
127
|
+
multilineDetection: 'brackets'
|
|
128
|
+
}
|
|
129
|
+
],
|
|
121
130
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
122
131
|
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
|
132
|
+
'@typescript-eslint/semi': ['error', 'always'],
|
|
133
|
+
'@typescript-eslint/type-annotation-spacing': ['error', { before: false, after: true, overrides: { arrow: { before: true, after: true } } }],
|
|
123
134
|
'node/no-missing-import': ['error', { tryExtensions: ['.js', '.json', '.jsx', '.ts', '.tsx'] }],
|
|
124
135
|
'node/no-unsupported-features/es-builtins': 'off',
|
|
125
|
-
'node/no-unsupported-features/es-syntax': 'off'
|
|
136
|
+
'node/no-unsupported-features/es-syntax': 'off',
|
|
137
|
+
'semi': 'off'
|
|
126
138
|
}
|
|
127
139
|
}
|
|
128
140
|
],
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ringieraxelspringer/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"description": "Ringier Axel Springer ESLint configuration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {},
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": "^
|
|
9
|
+
"node": "^12||^14"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"lint": "npm run lint:js",
|