Skip to content

Commit

Permalink
ci(fix): update node.js for github action + reformat files for pretti…
Browse files Browse the repository at this point in the history
…er action (#32)
  • Loading branch information
kahboom authored Mar 11, 2024
2 parents fa4d807 + da3d110 commit 8bd98eb
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"extends": "next/core-web-vitals"
"extends": ["next", "prettier"]
}
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v3
Expand Down
2 changes: 2 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ node_modules*
.next*
**/generated/**
LICENSE
.gitignore
.tekton
5 changes: 1 addition & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
transpilePackages: [
"@patternfly/react-core",
"@patternfly/react-styles"
],
transpilePackages: ["@patternfly/react-core", "@patternfly/react-styles"],
};

module.exports = nextConfig;
34 changes: 27 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"dev": "next dev",
"build": "next build",
"start": "next start",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"lint": "next lint",
"generate": "./hack/generate_types.sh"
},
Expand Down Expand Up @@ -36,7 +38,8 @@
"caniuse-lite": "^1.0.30001441",
"eslint": "8.10.0",
"eslint-config-next": "13.0.0",
"prettier": "^3.0.0",
"eslint-config-prettier": "9.1.0",
"prettier": "3.2.5",
"typescript": "4.6.2"
}
}
2 changes: 1 addition & 1 deletion src/modules/components/Entry.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function Entry({ entry }: { entry: LogEntry }) {
? [
...expanded.slice(0, index),
...expanded.slice(index + 1, expanded.length),
]
]
: [...expanded, id];
setExpanded(newExpanded);
};
Expand Down
2 changes: 1 addition & 1 deletion src/pages/_app.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { AppProps } from "next/app";
import '@patternfly/react-core/dist/styles/base.css';
import "@patternfly/react-core/dist/styles/base.css";

function App({ Component, pageProps }: AppProps) {
return <Component {...pageProps} />;
Expand Down

0 comments on commit 8bd98eb

Please sign in to comment.