0.0.5
This commit is contained in:
parent
18d605339f
commit
268cf80769
14 changed files with 126 additions and 48 deletions
|
|
@ -32,12 +32,24 @@ export const règlesUnicorn: Readonly<Linter.Config> = {
|
|||
* @link [GitHub](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/explicit-length-check.md)
|
||||
*/
|
||||
"unicorn/explicit-length-check": ["error", { "non-zero": "not-equal" }],
|
||||
/**
|
||||
* Interdit l'usage de conditions négatives pour la clarté du code.
|
||||
*
|
||||
* @link [GitHub](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-negated-condition.md)
|
||||
*/
|
||||
"unicorn/no-negated-condition": "error",
|
||||
/**
|
||||
* Interdit l'usage d'opérateurs ternaires imbriqués. Cette règle remplace celle présente par défaut dans _ESLint_
|
||||
* avec le même nom.
|
||||
*
|
||||
* @link [GitHub](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-nested-ternary.md)
|
||||
*/
|
||||
"unicorn/no-nested-ternary": ["error"],
|
||||
"unicorn/no-nested-ternary": "error",
|
||||
/**
|
||||
* Interdit l'usage de `null`.
|
||||
*
|
||||
* @link [GitHub](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-null.md)
|
||||
*/
|
||||
"unicorn/no-null": "error",
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue