feat: add eslint-plugin-sonarjs
#497
zanminkian
started this conversation in
Ideas
Replies: 1 comment
-
I just went through this myself. Here's how you can add it yourself for your own projects: At the top, use FlatCompat import { FlatCompat } from '@eslint/eslintrc';
const compat = new FlatCompat(); At the bottom, beneath all other configs, add one new legacy config: // Legacy config
...compat.config({
extends: [
'plugin:sonarjs/recommended-legacy',
],
rules: {
'sonarjs/todo-tag': 'warn',
'sonarjs/no-commented-code': 'warn',
},
}),
); Maybe not ideal, but I also like being able to quickly toggle it off for certain situations. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This plugin looks great for a better code quality. Thought?
Beta Was this translation helpful? Give feedback.
All reactions