|
@ -7,7 +7,7 @@ |
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], |
|
|
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"], |
|
|
"rules": { |
|
|
"rules": { |
|
|
"@nx/enforce-module-boundaries": [ |
|
|
"@nx/enforce-module-boundaries": [ |
|
|
"error", |
|
|
"warn", |
|
|
{ |
|
|
{ |
|
|
"enforceBuildableLibDependency": true, |
|
|
"enforceBuildableLibDependency": true, |
|
|
"allow": [], |
|
|
"allow": [], |
|
@ -18,30 +18,24 @@ |
|
|
} |
|
|
} |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
] |
|
|
], |
|
|
|
|
|
"@typescript-eslint/no-extra-semi": "error", |
|
|
|
|
|
"no-extra-semi": "off" |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
"files": ["*.ts", "*.tsx"], |
|
|
"files": ["*.ts", "*.tsx"], |
|
|
"extends": ["plugin:@nx/typescript"], |
|
|
"extends": ["plugin:@nx/typescript"] |
|
|
"rules": { |
|
|
|
|
|
"@typescript-eslint/no-extra-semi": "error", |
|
|
|
|
|
"no-extra-semi": "off" |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
"files": ["*.js", "*.jsx"], |
|
|
"files": ["*.js", "*.jsx"], |
|
|
"extends": ["plugin:@nx/javascript"], |
|
|
"extends": ["plugin:@nx/javascript"] |
|
|
"rules": { |
|
|
|
|
|
"@typescript-eslint/no-extra-semi": "error", |
|
|
|
|
|
"no-extra-semi": "off" |
|
|
|
|
|
} |
|
|
|
|
|
}, |
|
|
}, |
|
|
{ |
|
|
{ |
|
|
"files": ["*.ts"], |
|
|
"files": ["*.ts"], |
|
|
"plugins": ["eslint-plugin-import", "@typescript-eslint"], |
|
|
"plugins": ["eslint-plugin-import", "@typescript-eslint"], |
|
|
"rules": { |
|
|
"rules": { |
|
|
"@typescript-eslint/consistent-type-definitions": "error", |
|
|
"@typescript-eslint/consistent-type-definitions": "warn", |
|
|
"@typescript-eslint/dot-notation": "off", |
|
|
"@typescript-eslint/dot-notation": "off", |
|
|
"@typescript-eslint/explicit-member-accessibility": [ |
|
|
"@typescript-eslint/explicit-member-accessibility": [ |
|
|
"off", |
|
|
"off", |
|
@ -49,76 +43,62 @@ |
|
|
"accessibility": "explicit" |
|
|
"accessibility": "explicit" |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"@typescript-eslint/member-ordering": "error", |
|
|
"@typescript-eslint/member-ordering": "warn", |
|
|
"@typescript-eslint/naming-convention": "off", |
|
|
"@typescript-eslint/naming-convention": "off", |
|
|
"@typescript-eslint/no-empty-function": "off", |
|
|
"@typescript-eslint/no-empty-function": "off", |
|
|
"@typescript-eslint/no-empty-interface": "error", |
|
|
"@typescript-eslint/no-empty-interface": "warn", |
|
|
"@typescript-eslint/no-inferrable-types": [ |
|
|
"@typescript-eslint/no-inferrable-types": [ |
|
|
"error", |
|
|
"warn", |
|
|
{ |
|
|
{ |
|
|
"ignoreParameters": true |
|
|
"ignoreParameters": true |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"@typescript-eslint/no-misused-new": "error", |
|
|
"@typescript-eslint/no-misused-new": "error", |
|
|
"@typescript-eslint/no-non-null-assertion": "error", |
|
|
"@typescript-eslint/no-non-null-assertion": "warn", |
|
|
"@typescript-eslint/no-shadow": [ |
|
|
"@typescript-eslint/no-shadow": [ |
|
|
"error", |
|
|
"warn", |
|
|
{ |
|
|
{ |
|
|
"hoist": "all" |
|
|
"hoist": "all" |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"@typescript-eslint/no-unused-expressions": "error", |
|
|
"@typescript-eslint/no-unused-expressions": "warn", |
|
|
"@typescript-eslint/prefer-function-type": "error", |
|
|
"@typescript-eslint/prefer-function-type": "warn", |
|
|
"@typescript-eslint/unified-signatures": "error", |
|
|
"@typescript-eslint/unified-signatures": "error", |
|
|
|
|
|
"@typescript-eslint/no-loss-of-precision": "warn", |
|
|
|
|
|
"@typescript-eslint/no-var-requires": "warn", |
|
|
|
|
|
"@typescript-eslint/ban-ts-comment": "warn", |
|
|
|
|
|
"@typescript-eslint/ban-types": "warn", |
|
|
"arrow-body-style": "off", |
|
|
"arrow-body-style": "off", |
|
|
"constructor-super": "error", |
|
|
"constructor-super": "error", |
|
|
"eqeqeq": ["error", "smart"], |
|
|
"eqeqeq": ["error", "smart"], |
|
|
"guard-for-in": "error", |
|
|
"guard-for-in": "warn", |
|
|
"id-blacklist": "off", |
|
|
"id-blacklist": "off", |
|
|
"id-match": "off", |
|
|
"id-match": "off", |
|
|
"import/no-deprecated": "warn", |
|
|
"import/no-deprecated": "warn", |
|
|
"no-bitwise": "error", |
|
|
"no-bitwise": "error", |
|
|
"no-caller": "error", |
|
|
"no-caller": "error", |
|
|
"no-console": [ |
|
|
|
|
|
"error", |
|
|
|
|
|
{ |
|
|
|
|
|
"allow": [ |
|
|
|
|
|
"log", |
|
|
|
|
|
"warn", |
|
|
|
|
|
"dir", |
|
|
|
|
|
"timeLog", |
|
|
|
|
|
"assert", |
|
|
|
|
|
"clear", |
|
|
|
|
|
"count", |
|
|
|
|
|
"countReset", |
|
|
|
|
|
"group", |
|
|
|
|
|
"groupEnd", |
|
|
|
|
|
"table", |
|
|
|
|
|
"dirxml", |
|
|
|
|
|
"error", |
|
|
|
|
|
"groupCollapsed", |
|
|
|
|
|
"Console", |
|
|
|
|
|
"profile", |
|
|
|
|
|
"profileEnd", |
|
|
|
|
|
"timeStamp", |
|
|
|
|
|
"context" |
|
|
|
|
|
] |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
|
|
|
"no-debugger": "error", |
|
|
"no-debugger": "error", |
|
|
"no-empty": "off", |
|
|
"no-empty": "off", |
|
|
"no-eval": "error", |
|
|
"no-eval": "error", |
|
|
"no-fallthrough": "error", |
|
|
"no-fallthrough": "error", |
|
|
"no-new-wrappers": "error", |
|
|
"no-new-wrappers": "error", |
|
|
"no-restricted-imports": ["error", "rxjs/Rx"], |
|
|
"no-restricted-imports": ["error", "rxjs/Rx"], |
|
|
"no-throw-literal": "error", |
|
|
"no-throw-literal": "warn", |
|
|
"no-undef-init": "error", |
|
|
"no-undef-init": "error", |
|
|
"no-underscore-dangle": "off", |
|
|
"no-underscore-dangle": "off", |
|
|
"no-var": "error", |
|
|
"no-var": "error", |
|
|
"prefer-const": "error", |
|
|
"prefer-const": "warn", |
|
|
"radix": "error" |
|
|
"radix": "error", |
|
|
|
|
|
"no-unsafe-optional-chaining": "warn", |
|
|
|
|
|
"no-extra-boolean-cast": "warn", |
|
|
|
|
|
"no-empty-pattern": "warn", |
|
|
|
|
|
"no-useless-catch": "warn", |
|
|
|
|
|
"no-unsafe-finally": "warn", |
|
|
|
|
|
"no-prototype-builtins": "warn", |
|
|
|
|
|
"no-async-promise-executor": "warn", |
|
|
|
|
|
"no-constant-condition": "warn" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
"extends": [null, "plugin:storybook/recommended"] |
|
|
"extends": ["plugin:storybook/recommended"] |
|
|
} |
|
|
} |
|
|