Skip to content

Commit

Permalink
feat: upgrade to Nx v20
Browse files Browse the repository at this point in the history
  • Loading branch information
twittwer committed Oct 9, 2024
1 parent 74bcc10 commit a39ac71
Show file tree
Hide file tree
Showing 9 changed files with 1,046 additions and 702 deletions.
10 changes: 8 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,18 @@
{
"files": ["*.ts", "*.tsx"],
"extends": ["plugin:@nx/typescript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
},
{
"files": ["*.js", "*.jsx"],
"extends": ["plugin:@nx/javascript"],
"rules": {}
"rules": {
"@typescript-eslint/no-extra-semi": "error",
"no-extra-semi": "off"
}
}
]
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ migrations.json
.DS_Store
Thumbs.db

.nx/cache
/.nx
2 changes: 1 addition & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@

/packages/**/files/**/*.json__tpl__

/.nx/cache
/.nx
8 changes: 4 additions & 4 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { getJestProjects } = require('@nx/jest');
const { getJestProjectsAsync } = require('@nx/jest');

export default {
projects: getJestProjects(),
};
export default async () => ({
projects: await getJestProjectsAsync(),
});
15 changes: 7 additions & 8 deletions nx.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
{
"$schema": "./node_modules/nx/schemas/nx-schema.json",
"extends": "nx/presets/npm.json",
"affected": {
"defaultBase": "main"
},
"targetDefaults": {
"lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
},
"build": {
"cache": true
},
Expand All @@ -24,8 +17,14 @@
"codeCoverage": true
}
}
},
"@nx/eslint:lint": {
"inputs": ["default", "{workspaceRoot}/.eslintrc.json"],
"cache": true
}
},
"nxCloudAccessToken": "OTdlOWY4NWItOGQ0YS00NmY1LTgwNzMtOTE5ZTJmN2ZlODNhfHJlYWQtd3JpdGU=",
"parallel": 1
"parallel": 1,
"useInferencePlugins": false,
"defaultBase": "main"
}
Loading

0 comments on commit a39ac71

Please sign in to comment.