Skip to content

Commit f63fc32

Browse files
committed
refactor(core,styles,translations): Align tsconfigs
1 parent 8c7f25b commit f63fc32

File tree

6 files changed

+59
-107
lines changed

6 files changed

+59
-107
lines changed

packages/core/tsconfig.json

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,13 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "ESNext",
5-
"lib": ["ES2020", "DOM"],
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
9-
"outDir": "./dist",
10-
"strict": true,
11-
"noImplicitAny": true,
12-
"strictNullChecks": true,
13-
"strictFunctionTypes": true,
14-
"strictBindCallApply": true,
15-
"strictPropertyInitialization": true,
16-
"noImplicitThis": true,
17-
"useUnknownInCatchVariables": true,
18-
"alwaysStrict": true,
19-
"noUnusedLocals": true,
20-
"noUnusedParameters": true,
21-
"exactOptionalPropertyTypes": true,
22-
"noImplicitReturns": true,
23-
"noFallthroughCasesInSwitch": true,
24-
"noUncheckedIndexedAccess": true,
25-
"noImplicitOverride": true,
26-
"noPropertyAccessFromIndexSignature": true,
27-
"esModuleInterop": true,
28-
"forceConsistentCasingInFileNames": true,
29-
"skipLibCheck": true,
30-
"moduleResolution": "node",
4+
"moduleResolution": "Bundler",
315
"baseUrl": ".",
326
"paths": {
337
"~/*": ["./src/*"],
348
"~/tests/*": ["./tests/*"],
359
"@firebase-ui/translations": ["../translations/src/index.ts"]
3610
}
3711
},
38-
"include": ["src"],
39-
"exclude": ["node_modules", "dist"]
12+
"include": ["src", "eslint.config.js", "vitest.config.ts", "tsup.config.ts"]
4013
}

packages/styles/tsconfig.json

Lines changed: 4 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,7 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "ESNext",
5-
"lib": ["ES2020", "DOM"],
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
9-
"outDir": "./dist",
10-
"rootDir": "./src",
11-
"strict": true,
12-
"noImplicitAny": true,
13-
"strictNullChecks": true,
14-
"strictFunctionTypes": true,
15-
"strictBindCallApply": true,
16-
"strictPropertyInitialization": true,
17-
"noImplicitThis": true,
18-
"useUnknownInCatchVariables": true,
19-
"alwaysStrict": true,
20-
"noUnusedLocals": true,
21-
"noUnusedParameters": true,
22-
"exactOptionalPropertyTypes": true,
23-
"noImplicitReturns": true,
24-
"noFallthroughCasesInSwitch": true,
25-
"noUncheckedIndexedAccess": true,
26-
"noImplicitOverride": true,
27-
"noPropertyAccessFromIndexSignature": true,
28-
"esModuleInterop": true,
29-
"forceConsistentCasingInFileNames": true,
30-
"skipLibCheck": true,
31-
"moduleResolution": "node"
4+
"moduleResolution": "Bundler"
325
},
33-
"include": ["src"],
34-
"exclude": ["node_modules", "dist"]
35-
}
6+
"include": ["src", "vitest.config.ts", "tsup.config.ts"]
7+
}

packages/styles/vitest.config.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,9 @@ import { defineConfig } from "vitest/config";
1818

1919
export default defineConfig({
2020
test: {
21-
// Use the same environment as the package
21+
name: '@firebase-ui/styles',
2222
environment: "jsdom",
23-
// Include TypeScript files
2423
include: ["src/**/*.{test,spec}.{js,ts}"],
25-
// Exclude build output and node_modules
2624
exclude: ["node_modules/**/*", "dist/**/*"],
2725
},
2826
});
Lines changed: 3 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,7 @@
11
{
2+
"extends": "../../tsconfig.json",
23
"compilerOptions": {
3-
"target": "ES2020",
4-
"module": "ESNext",
5-
"lib": ["ES2020", "DOM"],
6-
"declaration": true,
7-
"declarationMap": true,
8-
"sourceMap": true,
9-
"outDir": "./dist",
10-
"rootDir": "./src",
11-
"strict": true,
12-
"noImplicitAny": true,
13-
"strictNullChecks": true,
14-
"strictFunctionTypes": true,
15-
"strictBindCallApply": true,
16-
"strictPropertyInitialization": true,
17-
"noImplicitThis": true,
18-
"useUnknownInCatchVariables": true,
19-
"alwaysStrict": true,
20-
"noUnusedLocals": true,
21-
"noUnusedParameters": true,
22-
"exactOptionalPropertyTypes": false,
23-
"noImplicitReturns": true,
24-
"noFallthroughCasesInSwitch": true,
25-
"noUncheckedIndexedAccess": true,
26-
"noImplicitOverride": true,
27-
"noPropertyAccessFromIndexSignature": true,
28-
"esModuleInterop": true,
29-
"forceConsistentCasingInFileNames": true,
30-
"skipLibCheck": true,
31-
"moduleResolution": "node"
4+
"moduleResolution": "Bundler"
325
},
33-
"include": ["src"],
34-
"exclude": ["node_modules", "dist"]
6+
"include": ["src", "vitest.config.ts", "tsup.config.ts"]
357
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/**
2+
* Copyright 2025 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE/2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
import { defineConfig } from "vitest/config";
18+
19+
export default defineConfig({
20+
test: {
21+
name: '@firebase-ui/translations',
22+
include: ["src/**/*.{test,spec}.{js,ts}"],
23+
exclude: ["node_modules/**/*", "dist/**/*"],
24+
},
25+
})

tsconfig.json

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,27 @@
11
{
2+
"$schema": "https://json.schemastore.org/tsconfig",
23
"compilerOptions": {
3-
"module": "commonjs",
4+
"allowJs": true,
5+
"allowSyntheticDefaultImports": true,
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
8+
"checkJs": true,
49
"declaration": true,
5-
"noImplicitAny": false,
6-
"removeComments": true,
7-
"noLib": false,
8-
"emitDecoratorMetadata": true,
9-
"experimentalDecorators": true,
10-
"target": "es6",
11-
"sourceMap": true,
12-
"lib": ["es6", "dom"]
10+
"esModuleInterop": true,
11+
"forceConsistentCasingInFileNames": true,
12+
"isolatedModules": true,
13+
"lib": ["DOM", "DOM.Iterable", "ES2022"],
14+
"module": "ES2022",
15+
"moduleResolution": "Bundler",
16+
"noEmit": true,
17+
"noImplicitReturns": true,
18+
"noUncheckedIndexedAccess": true,
19+
"noUnusedLocals": false,
20+
"noUnusedParameters": true,
21+
"resolveJsonModule": true,
22+
"skipLibCheck": true,
23+
"strict": true,
24+
"target": "ES2020"
1325
},
14-
"exclude": ["node_modules", "**/*.spec.ts", "**/__tests__/**"]
15-
}
26+
"include": ["eslint.config.js"]
27+
}

0 commit comments

Comments
 (0)