@ringieraxelspringer/eslint-config 8.0.0 → 11.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 +22 -0
- package/lib/index.js +14 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,24 @@
|
|
|
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
|
+
## [11.0.0] - 2021-11-12
|
|
6
|
+
### Fixed
|
|
7
|
+
- [@pniewiejski]: Add `@typescript-eslint/semi` rule.
|
|
8
|
+
|
|
9
|
+
## [10.0.1] - 2021-09-01
|
|
10
|
+
### Fixed
|
|
11
|
+
- [@tzachara]: Fixed override rule `@typescript-eslint/type-annotation-spacing` for arrow type definitions.
|
|
12
|
+
|
|
13
|
+
## [10.0.0] - 2021-08-24
|
|
14
|
+
### Added
|
|
15
|
+
- [@tzachara]: Add `@typescript-eslint/member-delimiter-style` rule.
|
|
16
|
+
- [@tzachara]: Add `@typescript-eslint/type-annotation-spacing` rule.
|
|
17
|
+
|
|
18
|
+
## [9.0.0] - 2021-06-25
|
|
19
|
+
### Added
|
|
20
|
+
- [@pbizon]: Add `multiline-ternary` rule.
|
|
21
|
+
- [@pbizon]: Add `operator-linebreak` rule.
|
|
22
|
+
|
|
5
23
|
## [8.0.0] - 2021-06-24
|
|
6
24
|
### Added
|
|
7
25
|
- [@mdulawa]: Add `padded-blocks` rule.
|
|
@@ -124,6 +142,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this
|
|
|
124
142
|
### Added
|
|
125
143
|
- [@mdulawa]: Initial version.
|
|
126
144
|
|
|
145
|
+
[11.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=11.0.0&targetBranch=10.0.1
|
|
146
|
+
[10.0.1]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.1&targetBranch=10.0.0
|
|
147
|
+
[10.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=10.0.0&targetBranch=9.0.0
|
|
148
|
+
[9.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=9.0.0&targetBranch=8.0.0
|
|
127
149
|
[8.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=8.0.0&targetBranch=7.0.1
|
|
128
150
|
[7.0.1]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=7.0.1&targetBranch=7.0.0
|
|
129
151
|
[7.0.0]: https://stash.grupa.onet/projects/ns/repos/ras-eslint-config/compare/diff?sourceBranch=7.0.0&targetBranch=6.0.2
|
package/lib/index.js
CHANGED
|
@@ -49,6 +49,7 @@ module.exports = {
|
|
|
49
49
|
'lines-between-class-members': ['error', 'always'],
|
|
50
50
|
'linebreak-style': ['error', 'unix'],
|
|
51
51
|
'max-len': ['error', { code: 160, comments: 160, ignoreRegExpLiterals: true, ignoreTemplateLiterals: true, ignoreUrls: true }],
|
|
52
|
+
'multiline-ternary': ['error', 'always-multiline'],
|
|
52
53
|
'newline-before-return': 'error',
|
|
53
54
|
'no-alert': 'error',
|
|
54
55
|
'no-buffer-constructor': 'error',
|
|
@@ -68,6 +69,7 @@ module.exports = {
|
|
|
68
69
|
'no-var': 'error',
|
|
69
70
|
'object-curly-spacing': ['error', 'always'],
|
|
70
71
|
'object-shorthand': ['error', 'properties'],
|
|
72
|
+
'operator-linebreak': ['error', 'before'],
|
|
71
73
|
'padded-blocks': ['error', { blocks: 'never', classes: 'never', switches: 'never' }, { allowSingleLineBlocks: false }],
|
|
72
74
|
'padding-line-between-statements': [
|
|
73
75
|
'error',
|
|
@@ -116,11 +118,22 @@ module.exports = {
|
|
|
116
118
|
rules: {
|
|
117
119
|
'@typescript-eslint/explicit-function-return-type': 'warn',
|
|
118
120
|
'@typescript-eslint/explicit-member-accessibility': ['warn', { overrides: { constructors: 'no-public' } }],
|
|
121
|
+
'@typescript-eslint/member-delimiter-style': [
|
|
122
|
+
'error',
|
|
123
|
+
{
|
|
124
|
+
multiline: { delimiter: 'semi', requireLast: true },
|
|
125
|
+
singleline: { delimiter: 'semi', requireLast: true },
|
|
126
|
+
multilineDetection: 'brackets'
|
|
127
|
+
}
|
|
128
|
+
],
|
|
119
129
|
'@typescript-eslint/prefer-optional-chain': 'error',
|
|
120
130
|
'@typescript-eslint/prefer-ts-expect-error': 'error',
|
|
131
|
+
'@typescript-eslint/semi': ['error', 'always'],
|
|
132
|
+
'@typescript-eslint/type-annotation-spacing': ['error', { before: false, after: true, overrides: { arrow: { before: true, after: true } } }],
|
|
121
133
|
'node/no-missing-import': ['error', { tryExtensions: ['.js', '.json', '.jsx', '.ts', '.tsx'] }],
|
|
122
134
|
'node/no-unsupported-features/es-builtins': 'off',
|
|
123
|
-
'node/no-unsupported-features/es-syntax': 'off'
|
|
135
|
+
'node/no-unsupported-features/es-syntax': 'off',
|
|
136
|
+
'semi': 'off'
|
|
124
137
|
}
|
|
125
138
|
}
|
|
126
139
|
],
|