# Breaking changes in v12

Several rules from `eslint-plugin-sonarjs` have changed their name. If you were reconfiguring some of them in your eslint
config you might have to update them to their new name.

The affected rules are the following:

- `sonarjs/sonar-block-scoped-var`
- `sonarjs/sonar-jsx-no-leaked-render`
- `sonarjs/sonar-max-lines`
- `sonarjs/sonar-max-lines-per-function`
- `sonarjs/sonar-max-params`
- `sonarjs/sonar-no-control-regex`
- `sonarjs/sonar-no-dupe-keys`
- `sonarjs/sonar-no-empty-character-class`
- `sonarjs/sonar-no-fallthrough`
- `sonarjs/sonar-no-invalid-regexp`
- `sonarjs/sonar-no-magic-numbers`
- `sonarjs/sonar-no-misleading-character-class`
- `sonarjs/sonar-no-regex-spaces`
- `sonarjs/sonar-no-unused-class-component-methods`
- `sonarjs/sonar-no-unused-vars`
- `sonarjs/sonar-prefer-optional-chain`
- `sonarjs/sonar-prefer-read-only-props`

See more details in https://community.sonarsource.com/t/eslint-plugin-sonarjs-prepending-rules-with-sonar-is-redundant-and-inconsistant/127330
and https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/CHANGELOG.md#2024-12-02-version-300.
