From f8a0682a4a3fa0f2d1b4802eed34373ef5905206 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Tue, 21 Jun 2022 11:17:20 +0300 Subject: [PATCH] make eslint & tsconfig standalone for common-ui --- .eslintrc.json | 9 ++++----- tsconfig.json | 19 +++++++++++++++---- 2 files changed, 19 insertions(+), 9 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index d08cfd9..daa6957 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,5 +1,4 @@ { - "extends": ["../../.eslintrc.json"], "env": { "browser": true, "node": true @@ -9,9 +8,7 @@ { "files": ["**/*.ts"], "parserOptions": { - "project": [ - "projects/common-ui/tsconfig.json" - ] + "project": "tsconfig.base.json" }, "rules": { "@angular-eslint/directive-selector": [ @@ -65,9 +62,11 @@ "no-dupe-class-members": "off", "no-redeclare": "off", "consistent-return": "off", + "import/no-unresolved": "off", + "import/named": "off", "@typescript-eslint/restrict-template-expressions": "off", "@typescript-eslint/lines-between-class-members": "off" } } ] -} +} diff --git a/tsconfig.json b/tsconfig.json index cc10762..c57e5c6 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,4 @@ { - "extends": "../../tsconfig.base.json", "compilerOptions": { "outDir": "../../dist/out-tsc", "strict": true, @@ -9,9 +8,19 @@ "forceConsistentCasingInFileNames": true, "noImplicitReturns": true, "noFallthroughCasesInSwitch": true, + "noPropertyAccessFromIndexSignature": true, + "sourceMap": true, + "downlevelIteration": true, + "experimentalDecorators": true, + "noImplicitAny": true, + "moduleResolution": "node", + "importHelpers": true, + "resolveJsonModule": true, + "target": "es2021", + "module": "es2020", "lib": [ - "dom", - "es2020" + "es2021", + "dom" ], "allowSyntheticDefaultImports": true }, @@ -19,7 +28,9 @@ "**/*.ts" ], "angularCompilerOptions": { + "enableI18nLegacyMessageIdFormat": false, "strictInjectionParameters": true, - "strictInputAccessModifiers": true + "strictInputAccessModifiers": true, + "strictTemplates": true } }