0.0.11
This commit is contained in:
parent
d14e999d04
commit
62ee424274
27 changed files with 1290 additions and 996 deletions
17
rules/sonarjs.ts
Normal file
17
rules/sonarjs.ts
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
import type { Linter } from "eslint";
|
||||
|
||||
import sonarJs from "eslint-plugin-sonarjs";
|
||||
|
||||
export const sonarJsRules: Readonly<Linter.Config> = {
|
||||
name: "SonarJS",
|
||||
plugins: sonarJs.configs.recommended.plugins ?? {},
|
||||
rules: {
|
||||
...sonarJs.configs.recommended.rules,
|
||||
"sonarjs/arguments-usage": "error",
|
||||
"sonarjs/no-collapsible-if": "error",
|
||||
"sonarjs/no-duplicate-string": "error",
|
||||
"sonarjs/no-inconsistent-returns": "error",
|
||||
"sonarjs/no-nested-switch": "error",
|
||||
"sonarjs/prefer-immediate-return": "error",
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue