Skip to content

Commit

Permalink
feat: @typescript-eslint/key-spacing
Browse files Browse the repository at this point in the history
BREAKING CHANGE: @typescript-eslint/key-spacing
  • Loading branch information
mightyiam committed Feb 1, 2023
1 parent 4fbd915 commit f1d8be3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ test('export', (t): void => {
'dot-notation': 'off',
'func-call-spacing': 'off',
indent: 'off',
'key-spacing': 'off',
'keyword-spacing': 'off',
'lines-between-class-members': 'off',
'no-array-constructor': 'off',
Expand Down Expand Up @@ -195,6 +196,7 @@ test('export', (t): void => {
ignoredNodes: ['TemplateLiteral *', 'JSXElement', 'JSXElement > *', 'JSXAttribute', 'JSXIdentifier', 'JSXNamespacedName', 'JSXMemberExpression', 'JSXSpreadAttribute', 'JSXExpressionContainer', 'JSXOpeningElement', 'JSXClosingElement', 'JSXFragment', 'JSXOpeningFragment', 'JSXClosingFragment', 'JSXText', 'JSXEmptyExpression', 'JSXSpreadChild'],
offsetTernaryExpressions: true
}],
'@typescript-eslint/key-spacing': ['error', { beforeColon: false, afterColon: true }],
'@typescript-eslint/keyword-spacing': ['error', { before: true, after: true }],
'@typescript-eslint/lines-between-class-members': ['error', 'always', { exceptAfterSingleLine: true }],
'@typescript-eslint/member-delimiter-style': [
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const equivalents = [
'brace-style',
'func-call-spacing',
'indent',
'key-spacing',
'keyword-spacing',
'lines-between-class-members',
'no-array-constructor',
Expand Down

0 comments on commit f1d8be3

Please sign in to comment.