diff --git a/apps/_template/tsconfig.json b/apps/_template/tsconfig.json index 366c4b4eb..e6c49fbe4 100644 --- a/apps/_template/tsconfig.json +++ b/apps/_template/tsconfig.json @@ -26,14 +26,8 @@ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", + "../../packages/common/types/**/*.d.ts" ], - "exclude": [ - "node_modules", - ".next", - "dist", - "coverage", - "storybook-static", - "public" - ] + "exclude": ["node_modules", ".next", "dist", "coverage", "storybook-static", "public"] } diff --git a/apps/as/tsconfig.json b/apps/as/tsconfig.json index 2495f810c..e6c49fbe4 100644 --- a/apps/as/tsconfig.json +++ b/apps/as/tsconfig.json @@ -1,11 +1,7 @@ { "compilerOptions": { "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -23,23 +19,15 @@ } ], "paths": { - "@/*": [ - "./src/*" - ] + "@/*": ["./src/*"] } }, "include": [ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", + "../../packages/common/types/**/*.d.ts" ], - "exclude": [ - "node_modules", - ".next", - "dist", - "coverage", - "storybook-static", - "public" - ] + "exclude": ["node_modules", ".next", "dist", "coverage", "storybook-static", "public"] } diff --git a/apps/cm/tsconfig.json b/apps/cm/tsconfig.json index 6814b6dd3..e475267d6 100644 --- a/apps/cm/tsconfig.json +++ b/apps/cm/tsconfig.json @@ -3,11 +3,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -27,16 +23,15 @@ } ], "paths": { - "@/*": [ - "./src/*" - ] + "@/*": ["./src/*"] } }, "include": [ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", + "../../packages/common/types/**/*.d.ts" ], "exclude": [ "node_modules", diff --git a/apps/cs/tsconfig.json b/apps/cs/tsconfig.json index 6814b6dd3..e475267d6 100644 --- a/apps/cs/tsconfig.json +++ b/apps/cs/tsconfig.json @@ -3,11 +3,7 @@ "extends": "../../tsconfig.base.json", "compilerOptions": { "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" - ], + "lib": ["dom", "dom.iterable", "esnext"], "allowJs": true, "skipLibCheck": true, "strict": true, @@ -27,16 +23,15 @@ } ], "paths": { - "@/*": [ - "./src/*" - ] + "@/*": ["./src/*"] } }, "include": [ "next-env.d.ts", "**/*.ts", "**/*.tsx", - ".next/types/**/*.ts" + ".next/types/**/*.ts", + "../../packages/common/types/**/*.d.ts" ], "exclude": [ "node_modules", diff --git a/apps/st/tsconfig.json b/apps/st/tsconfig.json index 6814b6dd3..225f581f4 100644 --- a/apps/st/tsconfig.json +++ b/apps/st/tsconfig.json @@ -1,49 +1,45 @@ { - "$schema": "https://json.schemastore.org/tsconfig", - "extends": "../../tsconfig.base.json", - "compilerOptions": { - "target": "ES2017", - "lib": [ - "dom", - "dom.iterable", - "esnext" + "$schema": "https://json.schemastore.org/tsconfig", + "extends": "../../tsconfig.base.json", + "compilerOptions": { + "target": "ES2017", + "lib": ["dom", "dom.iterable", "esnext"], + "allowJs": true, + "skipLibCheck": true, + "strict": true, + "noEmit": true, + "esModuleInterop": true, + "module": "esnext", + "moduleResolution": "bundler", + "verbatimModuleSyntax": true, + "strictNullChecks": true, + "resolveJsonModule": true, + "isolatedModules": true, + "jsx": "preserve", + "incremental": true, + "plugins": [ + { + "name": "next" + } + ], + "paths": { + "@/*": ["./src/*"] + } + }, + "include": [ + ".eslintrc.*", + "next-env.d.ts", + "**/*.ts", + "**/*.tsx", + ".next/types/**/*.ts", + "../../packages/common/types/**/*.d.ts" ], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "verbatimModuleSyntax": true, - "strictNullChecks": true, - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": [ - "./src/*" - ] - } - }, - "include": [ - "next-env.d.ts", - "**/*.ts", - "**/*.tsx", - ".next/types/**/*.ts" - ], - "exclude": [ - "node_modules", - ".next", - "dist", - "coverage", - "storybook-static", - "public" - ] + "exclude": [ + "node_modules", + ".next", + "dist", + "coverage", + "storybook-static", + "public" + ] } diff --git a/packages/common/types/css.d.ts b/packages/common/types/css.d.ts new file mode 100644 index 000000000..cbe652dbe --- /dev/null +++ b/packages/common/types/css.d.ts @@ -0,0 +1 @@ +declare module "*.css";