Skip to content

Commit

Permalink
feat: @typescript-eslint/class-literal-property-style
Browse files Browse the repository at this point in the history
BREAKING CHANGE: @typescript-eslint/class-literal-property-style

Co-authored-by: Shahar Dawn Or <mightyiampresence@gmail.com>
  • Loading branch information
rostislav-simonik and mightyiam committed Jan 27, 2023
1 parent 9521c0f commit 35093cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ test('export', (t): void => {
}
}],
'@typescript-eslint/brace-style': ['error', '1tbs', { allowSingleLine: true }],
'@typescript-eslint/class-literal-property-style': ['error', 'fields'],
'@typescript-eslint/comma-dangle': ['error', {
arrays: 'never',
objects: 'never',
Expand Down Expand Up @@ -428,7 +429,6 @@ test('all plugin rules are considered', (t) => {
// This serves as a todo list and should ideally eventually end up empty
// and then fail upon plugin upgrades where new rules are released.
const notYetConsideredRules: string[] = [
'class-literal-property-style',
'default-param-last',
'explicit-member-accessibility',
'explicit-module-boundary-types',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const config: Linter.Config = {
}
}
}],
'@typescript-eslint/class-literal-property-style': ['error', 'fields'],
'@typescript-eslint/comma-dangle': ['error', {
arrays: 'never',
objects: 'never',
Expand Down

0 comments on commit 35093cb

Please sign in to comment.