Skip to content

Commit

Permalink
Merge pull request #1725 from silx-kit/tsconfig-star
Browse files Browse the repository at this point in the history
Let each project lint its own setup files
  • Loading branch information
axelboc authored Jan 10, 2025
2 parents deed603 + 3d1d0c1 commit ecbada3
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,18 +84,20 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-0 # increment to reset cache
key: poetry-1 # increment to reset cache

- name: Install Poetry 📜
if: steps.poetry.outputs.cache-hit != 'true'
uses: snok/install-poetry@v1
with:
version: 1.8.5

- name: Restore Poetry environments 📌
id: poetry-venvs
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry/virtualenvs
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-1 # increment to reset cache
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}-3 # increment to reset cache

- name: Create Poetry environments 📜
if: steps.poetry-venvs.outputs.cache-hit != 'true'
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["*", "src"]
}
2 changes: 1 addition & 1 deletion apps/storybook/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": [".storybook/**/*", "src"]
"include": ["*", ".storybook/**/*", "src"]
}
4 changes: 2 additions & 2 deletions cypress/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "../tsconfig.json",
"include": ["*", "e2e"],
"compilerOptions": {
"isolatedModules": false,
"sourceMap": false,
Expand All @@ -8,6 +9,5 @@
"@testing-library/cypress",
"@simonsmith/cypress-image-snapshot/types"
]
},
"include": ["*", "e2e"]
}
}
1 change: 1 addition & 0 deletions packages/app/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"rootDir": "src",
Expand Down
2 changes: 1 addition & 1 deletion packages/app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["*", "src"]
}
1 change: 1 addition & 0 deletions packages/h5wasm/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"compilerOptions": {
"rootDir": "src",
"outDir": "dist-ts",
Expand Down
2 changes: 1 addition & 1 deletion packages/h5wasm/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["*", "src"]
}
1 change: 1 addition & 0 deletions packages/lib/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"rootDir": "src",
Expand Down
2 changes: 1 addition & 1 deletion packages/lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["*", "src"]
}
1 change: 1 addition & 0 deletions packages/shared/tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"extends": "./tsconfig.json",
"include": ["src"],
"exclude": ["**/*.test.ts"],
"compilerOptions": {
"rootDir": "src",
Expand Down
2 changes: 1 addition & 1 deletion packages/shared/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src"]
"include": ["*", "src"]
}
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
"useDefineForClassFields": true,
"useUnknownInCatchVariables": true
},
"include": ["*", "cypress", "apps/*/*", "packages/*/*"]
"include": ["*", "cypress"]
}

0 comments on commit ecbada3

Please sign in to comment.