-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update to nx 16.8 and use the new next build format (#20)
* chore: update to the latest nx * chore: move to flat eslint * fix: version of eslint js * fix: eslint issues * feat: modify the next builder to match the new strutucture at nx * fix(linter): missing dependency * fix: e2e test to adjust to the new as-provided workspace layout * chore: configure workspace layout to the legacy derived
- Loading branch information
1 parent
632c308
commit 207215a
Showing
15 changed files
with
551 additions
and
453 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 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,46 @@ | ||
const { FlatCompat } = require('@eslint/eslintrc'); | ||
const baseConfig = require('../../../eslint.config.js'); | ||
const globals = require('globals'); | ||
const js = require('@eslint/js'); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
}); | ||
module.exports = [ | ||
...baseConfig, | ||
...compat.extends( | ||
'plugin:@nx/react-typescript', | ||
'next', | ||
'next/core-web-vitals' | ||
), | ||
{ languageOptions: { globals: { ...globals.jest } } }, | ||
{ | ||
files: [ | ||
'e2e/examples/cloudflare-next-app/**/*.ts', | ||
'e2e/examples/cloudflare-next-app/**/*.tsx', | ||
'e2e/examples/cloudflare-next-app/**/*.js', | ||
'e2e/examples/cloudflare-next-app/**/*.jsx', | ||
], | ||
rules: { '@next/next/no-html-link-for-pages': 'off' }, | ||
}, | ||
{ | ||
files: [ | ||
'e2e/examples/cloudflare-next-app/**/*.ts', | ||
'e2e/examples/cloudflare-next-app/**/*.tsx', | ||
], | ||
rules: {}, | ||
}, | ||
{ | ||
files: [ | ||
'e2e/examples/cloudflare-next-app/**/*.js', | ||
'e2e/examples/cloudflare-next-app/**/*.jsx', | ||
], | ||
rules: {}, | ||
}, | ||
{ | ||
ignores: [ | ||
'e2e/examples/cloudflare-next-app/.next/**/*', | ||
'e2e/examples/cloudflare-next-app/.vercel/**/*', | ||
], | ||
}, | ||
]; |
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,27 @@ | ||
const baseConfig = require('../../eslint.config.js'); | ||
module.exports = [ | ||
...baseConfig, | ||
{ | ||
files: [ | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.ts', | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.tsx', | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.js', | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.jsx', | ||
], | ||
rules: {}, | ||
}, | ||
{ | ||
files: [ | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.ts', | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.tsx', | ||
], | ||
rules: {}, | ||
}, | ||
{ | ||
files: [ | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.js', | ||
'e2e/plugins-nx-cloudflare-e2e/**/*.jsx', | ||
], | ||
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
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,50 @@ | ||
const { FlatCompat } = require('@eslint/eslintrc'); | ||
const nxEslintPlugin = require('@nx/eslint-plugin'); | ||
const js = require('@eslint/js'); | ||
|
||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
}); | ||
module.exports = [ | ||
{ plugins: { '@nx': nxEslintPlugin } }, | ||
{ | ||
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], | ||
rules: { | ||
'@nx/enforce-module-boundaries': [ | ||
'error', | ||
{ | ||
enforceBuildableLibDependency: true, | ||
allow: [], | ||
depConstraints: [ | ||
{ | ||
sourceTag: '*', | ||
onlyDependOnLibsWithTags: ['*'], | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
...compat.config({ extends: ['plugin:@nx/typescript'] }).map((config) => ({ | ||
...config, | ||
files: ['**/*.ts', '**/*.tsx'], | ||
rules: {}, | ||
})), | ||
...compat.config({ extends: ['plugin:@nx/javascript'] }).map((config) => ({ | ||
...config, | ||
files: ['**/*.js', '**/*.jsx'], | ||
rules: {}, | ||
})), | ||
...compat.config({ env: { jest: true } }).map((config) => ({ | ||
...config, | ||
files: ['**/*.spec.ts', '**/*.spec.tsx', '**/*.spec.js', '**/*.spec.jsx'], | ||
rules: {}, | ||
})), | ||
...compat.config({ parser: 'jsonc-eslint-parser' }).map((config) => ({ | ||
...config, | ||
files: ['**/*.json'], | ||
rules: { '@nx/dependency-checks': 'error' }, | ||
})), | ||
{ ignores: ['.next', '.vercel'] }, | ||
]; |
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.
Oops, something went wrong.