Skip to content

Commit

Permalink
fix(linter): migrate no-extra-semi rules into user config, out of nx …
Browse files Browse the repository at this point in the history
…extendable configs (#26011)
  • Loading branch information
JamesHenry authored May 24, 2024
1 parent 10f97b9 commit be6453c
Show file tree
Hide file tree
Showing 5 changed files with 508 additions and 4 deletions.
6 changes: 6 additions & 0 deletions packages/eslint-plugin/migrations.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@
"version": "17.2.6-beta.1",
"description": "Rename workspace rules from @nx/workspace/name to @nx/workspace-name",
"implementation": "./src/migrations/update-17-2-6-rename-workspace-rules/rename-workspace-rules"
},
"update-19-1-0-rename-no-extra-semi": {
"cli": "nx",
"version": "19.1.0-beta.6",
"description": "Migrate no-extra-semi rules into user config, out of nx extendable configs",
"implementation": "./src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi"
}
},
"packageJsonUpdates": {},
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin/src/configs/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,6 @@ export default {
*
* TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
*/
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
Expand Down
2 changes: 0 additions & 2 deletions packages/eslint-plugin/src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ export default {
*
* TODO(v20): re-evalute these deviations from @typescript-eslint/recommended in v20 of Nx
*/
'no-extra-semi': 'off',
'@typescript-eslint/no-extra-semi': 'error',
'@typescript-eslint/no-non-null-assertion': 'warn',
'@typescript-eslint/adjacent-overload-signatures': 'error',
'@typescript-eslint/prefer-namespace-keyword': 'error',
Expand Down
Loading

0 comments on commit be6453c

Please sign in to comment.