-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable containerized build. * Remove obsolete pre-render package * Fix React rendering violations. * Update readme * Adjust package-lock * Add eslint plugin * Add prettier task and run it --------- Co-authored-by: Martin Marosi <[email protected]>
- Loading branch information
1 parent
cdda238
commit 7123bce
Showing
98 changed files
with
6,487 additions
and
3,895 deletions.
There are no files selected for viewing
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,23 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended", "prettier"], | ||
"plugins": ["prettier", "@typescript-eslint"], | ||
"parserOptions": { | ||
"ecmaVersion": 6, | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true, | ||
"experimentalObjectRestSpread": true | ||
} | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "16.6" | ||
} | ||
}, | ||
"rules": { | ||
"react/react-in-jsx-scope": "off", | ||
"typescript-eslint/no-non-null-asserted-optional-chain": "off" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -36,3 +36,8 @@ public/canonical.json | |
|
||
# rollup | ||
.rollup.cache | ||
# next | ||
.next | ||
next-env.d.ts | ||
out | ||
|
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 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,39 @@ | ||
import type { NextConfig } from 'next'; | ||
import MonacoWebpackPlugin from 'monaco-editor-webpack-plugin'; | ||
|
||
const nextConfig: NextConfig = { | ||
/* config options here */ | ||
output: 'export', | ||
images: { | ||
unoptimized: true, | ||
}, | ||
...(process.env.DEV === 'true' | ||
? { | ||
async rewrites() { | ||
// proxy to get the assets from developers.redhat.com | ||
return [ | ||
{ | ||
source: '/modules/:path*', | ||
destination: 'http://localhost:3001/modules/:path*', | ||
}, | ||
]; | ||
}, | ||
basePath: '', | ||
} | ||
: { | ||
basePath: '/api-catalog', | ||
}), | ||
webpack: (config, { isServer }) => { | ||
if (!isServer) { | ||
config.plugins.push( | ||
new MonacoWebpackPlugin({ | ||
languages: ['go', 'python', 'java', 'javascript', 'shell', 'cpp', 'ruby', 'json'], | ||
filename: 'static/[name].worker.js', | ||
}), | ||
); | ||
} | ||
return config; | ||
}, | ||
}; | ||
|
||
export default nextConfig; |
Oops, something went wrong.