0.0.5
- ref: désactive des règles pénibles - ref: désactive des règles en conflit avec Effect
This commit is contained in:
parent
32ed83d772
commit
201c4de5e8
8 changed files with 118 additions and 89 deletions
12
dist/index.mjs
vendored
12
dist/index.mjs
vendored
|
|
@ -224,6 +224,7 @@ const esLintRules = {
|
|||
"eslint/no-sequences": ["deny", { allowInParentheses: false }],
|
||||
"eslint/no-setter-return": "deny",
|
||||
"eslint/no-shadow": ["deny", {
|
||||
allow: ["Option"],
|
||||
builtinGlobals: true,
|
||||
hoist: "functions-and-types",
|
||||
ignoreFunctionTypeParameterNameValueShadow: true,
|
||||
|
|
@ -322,7 +323,7 @@ const esLintRules = {
|
|||
"eslint/preserve-caught-error": "allow",
|
||||
"eslint/radix": "deny",
|
||||
"eslint/require-await": "allow",
|
||||
"eslint/require-yield": "deny",
|
||||
"eslint/require-yield": "allow",
|
||||
"eslint/sort-imports": "allow",
|
||||
"eslint/sort-keys": "allow",
|
||||
"eslint/sort-vars": "allow",
|
||||
|
|
@ -357,7 +358,6 @@ const functionalRules = {
|
|||
|
||||
//#endregion
|
||||
//#region ../rules/import.ts
|
||||
const MAX_DEPTH = 4294967295;
|
||||
const importRules = {
|
||||
"import/consistent-type-specifier-style": ["deny", "prefer-top-level"],
|
||||
"import/default": "deny",
|
||||
|
|
@ -401,7 +401,7 @@ const importRules = {
|
|||
allowUnsafeDynamicCyclicDependency: false,
|
||||
ignoreExternal: false,
|
||||
ignoreTypes: true,
|
||||
maxDepth: MAX_DEPTH
|
||||
maxDepth: 4294967295
|
||||
}],
|
||||
"import/no-default-export": "allow",
|
||||
"import/no-duplicates": ["deny", {
|
||||
|
|
@ -639,8 +639,6 @@ const promiseRules = {
|
|||
|
||||
//#endregion
|
||||
//#region ../rules/typescript.ts
|
||||
/** Longueur minimale de la description accompagnat une directive (p. ex. `@ts-expect-error`). */
|
||||
const MIN_DIRECTIVE_DESCRIPTION_LENGTH = 10;
|
||||
const typeScriptRules = {
|
||||
"typescript/adjacent-overload-signatures": "deny",
|
||||
"typescript/array-type": ["deny", {
|
||||
|
|
@ -649,7 +647,7 @@ const typeScriptRules = {
|
|||
}],
|
||||
"typescript/await-thenable": "deny",
|
||||
"typescript/ban-ts-comment": ["deny", {
|
||||
minimumDescriptionLength: MIN_DIRECTIVE_DESCRIPTION_LENGTH,
|
||||
minimumDescriptionLength: 10,
|
||||
"ts-check": false,
|
||||
"ts-expect-error": "allow-with-description",
|
||||
"ts-ignore": true,
|
||||
|
|
@ -910,7 +908,7 @@ const typeScriptRules = {
|
|||
path: "never",
|
||||
types: "prefer-import"
|
||||
}],
|
||||
"typescript/unbound-method": ["deny", { ignoreStatic: false }],
|
||||
"typescript/unbound-method": ["allow", { ignoreStatic: false }],
|
||||
"typescript/unified-signatures": ["deny", {
|
||||
ignoreDifferentlyNamedParameters: false,
|
||||
ignoreOverloadsWithDifferentJSDoc: false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue