-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #726 from Tirke/bumps
chore: bump nx
- Loading branch information
Showing
13 changed files
with
836 additions
and
1,547 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
const { FlatCompat } = require('@eslint/eslintrc') | ||
const js = require('@eslint/js') | ||
const nxEslintPlugin = require('@nx/eslint-plugin') | ||
const eslintPluginImport = require('eslint-plugin-import') | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
}) | ||
|
||
module.exports = [ | ||
{ | ||
plugins: { | ||
'@nx': nxEslintPlugin, | ||
import: eslintPluginImport, | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | ||
rules: { | ||
'@nx/enforce-module-boundaries': [ | ||
'error', | ||
{ | ||
enforceBuildableLibDependency: true, | ||
allow: [], | ||
depConstraints: [ | ||
{ | ||
sourceTag: '*', | ||
onlyDependOnLibsWithTags: ['*'], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
...compat.config({ extends: ['plugin:@nx/typescript', 'plugin:import/typescript'] }).map((config) => ({ | ||
...config, | ||
files: ['**/*.ts', '**/*.tsx'], | ||
rules: { | ||
...config.rules, | ||
'no-multiple-empty-lines': 'error', | ||
'no-else-return': 'error', | ||
'no-unneeded-ternary': 'error', | ||
'no-return-await': 'error', | ||
'no-trailing-spaces': 'error', | ||
'prefer-const': 'error', | ||
'template-curly-spacing': 'error', | ||
'import/order': [ | ||
'error', | ||
{ | ||
groups: ['builtin', 'external', 'internal', ['parent', 'sibling', 'index']], | ||
alphabetize: { | ||
order: 'asc', | ||
caseInsensitive: true, | ||
}, | ||
'newlines-between': 'always', | ||
}, | ||
], | ||
'no-extra-semi': 'error', | ||
}, | ||
})), | ||
...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({ | ||
...config, | ||
files: ['**/*.js', '**/*.jsx'], | ||
rules: { | ||
...config.rules, | ||
'no-extra-semi': 'error', | ||
}, | ||
})), | ||
{ ignores: ['**/dist', '**/node_modules', 'node_modules/'] }, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
import { getJestProjects } from '@nx/jest' | ||
import { getJestProjectsAsync } from '@nx/jest' | ||
|
||
export default { | ||
projects: getJestProjects(), | ||
} | ||
export default async () => ({ | ||
projects: await getJestProjectsAsync(), | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,67 +1,27 @@ | ||
{ | ||
"migrations": [ | ||
{ | ||
"cli": "nx", | ||
"version": "17.3.0-beta.6", | ||
"description": "Updates the nx wrapper.", | ||
"implementation": "./src/migrations/update-17-3-0/update-nxw", | ||
"version": "20.0.0-beta.7", | ||
"description": "Migration for v20.0.0-beta.7", | ||
"implementation": "./src/migrations/update-20-0-0/move-use-daemon-process", | ||
"package": "nx", | ||
"name": "17.3.0-update-nx-wrapper" | ||
"name": "move-use-daemon-process" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "18.0.0-beta.2", | ||
"description": "Updates nx.json to disabled adding plugins when generating projects in an existing Nx workspace", | ||
"implementation": "./src/migrations/update-18-0-0/disable-crystal-for-existing-workspaces", | ||
"version": "20.0.1", | ||
"description": "Set `useLegacyCache` to true for migrating workspaces", | ||
"implementation": "./src/migrations/update-20-0-1/use-legacy-cache", | ||
"x-repair-skip": true, | ||
"package": "nx", | ||
"name": "18.0.0-disable-adding-plugins-for-existing-workspaces" | ||
}, | ||
{ | ||
"version": "18.1.0-beta.3", | ||
"description": "Moves affected.defaultBase to defaultBase in `nx.json`", | ||
"implementation": "./src/migrations/update-17-2-0/move-default-base", | ||
"package": "nx", | ||
"name": "move-default-base-to-nx-json-root" | ||
"name": "use-legacy-cache" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "19.2.0-beta.2", | ||
"description": "Updates the default workspace data directory to .nx/workspace-data", | ||
"implementation": "./src/migrations/update-19-2-0/move-workspace-data-directory", | ||
"package": "nx", | ||
"name": "19-2-0-move-graph-cache-directory" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "19.2.2-beta.0", | ||
"description": "Updates the nx wrapper.", | ||
"implementation": "./src/migrations/update-17-3-0/update-nxw", | ||
"package": "nx", | ||
"name": "19-2-2-update-nx-wrapper" | ||
}, | ||
{ | ||
"version": "19.2.4-beta.0", | ||
"description": "Set project name in nx.json explicitly", | ||
"implementation": "./src/migrations/update-19-2-4/set-project-name", | ||
"x-repair-skip": true, | ||
"package": "nx", | ||
"name": "19-2-4-set-project-name" | ||
}, | ||
{ | ||
"cli": "nx", | ||
"version": "19.1.0-beta.6", | ||
"description": "Migrate no-extra-semi rules into user config, out of nx extendable configs", | ||
"implementation": "./src/migrations/update-19-1-0-migrate-no-extra-semi/migrate-no-extra-semi", | ||
"package": "@nx/eslint-plugin", | ||
"name": "update-19-1-0-rename-no-extra-semi" | ||
}, | ||
{ | ||
"version": "17.2.9", | ||
"description": "Move executor options to target defaults", | ||
"implementation": "./src/migrations/update-17-2-9/move-options-to-target-defaults", | ||
"package": "@nx/eslint", | ||
"name": "move-options-to-target-defaults" | ||
"version": "20.0.0-beta.5", | ||
"description": "replace getJestProjects with getJestProjectsAsync", | ||
"implementation": "./src/migrations/update-20-0-0/replace-getJestProjects-with-getJestProjectsAsync", | ||
"package": "@nx/jest", | ||
"name": "replace-getJestProjects-with-getJestProjectsAsync" | ||
} | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const baseConfig = require('../../eslint.config.js') | ||
|
||
module.exports = [ | ||
...baseConfig, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | ||
rules: { '@typescript-eslint/no-explicit-any': 0 }, | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
{ | ||
files: ['**/*.js', '**/*.jsx'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
const baseConfig = require('../../eslint.config.js') | ||
|
||
module.exports = [ | ||
...baseConfig, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | ||
rules: { '@typescript-eslint/no-explicit-any': 0 }, | ||
}, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
{ | ||
files: ['**/*.js', '**/*.jsx'], | ||
// Override or add rules here | ||
rules: {}, | ||
}, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,6 +28,6 @@ | |
"provenance": true | ||
}, | ||
"dependencies": { | ||
"mongodb": "^6.8.0" | ||
"mongodb": "^6.10.0" | ||
} | ||
} |
Oops, something went wrong.