Skip to content

Commit

Permalink
feat: migrate to node18
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelTaylor3D committed Jul 27, 2023
1 parent bb8e6b6 commit 6c1d5ff
Show file tree
Hide file tree
Showing 9 changed files with 11,430 additions and 29,196 deletions.
13 changes: 6 additions & 7 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-runtime"
]
}
"presets": ["@babel/preset-env", "@babel/preset-react"],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-proposal-private-property-in-object"
]
}
15 changes: 7 additions & 8 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
"env": {
"browser": true,
"amd": true,
"node": true
"node": true,
"es6": true
},
"parser": "babel-eslint",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
Expand All @@ -17,15 +18,13 @@
],
"rules": {
"react/prop-types": "off",
"mocha/no-mocha-arrows": 0
"mocha/no-mocha-arrows": 0,
"react/jsx-filename-extension": ["error", { "extensions": [".js", ".jsx"] }]
},
"plugins": [
"react",
"mocha"
],
"plugins": ["react", "mocha"],
"settings": {
"react": {
"version": "detect"
}
}
}
}
12 changes: 6 additions & 6 deletions .github/workflows/build-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node 16.x
- name: Setup Node 18.16
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.16'

- name: install dmg-license
run: npm i dmg-license
Expand Down Expand Up @@ -71,10 +71,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node 16.x
- name: Setup Node 18.16
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.16'

- name: npm install
run: |
Expand All @@ -99,10 +99,10 @@ jobs:
- name: Checkout Code
uses: actions/checkout@v3

- name: Setup Node 16.x
- name: Setup Node 18.16
uses: actions/setup-node@v3
with:
node-version: '16.x'
node-version: '18.16'

- name: npm install
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16
18.16.0
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Use the following commands to prepare you development environment and run the Cl
npm install -g react-scripts
git clone [email protected]:Chia-Network/climate-explorer-ui
cd climate-explorer-ui
nvm install 16
nvm use 16
nvm install 18.16.0
nvm use 18.16.0
npm install foreman -g
npm install -g husky
npm install -g prettier
Expand Down
Loading

0 comments on commit 6c1d5ff

Please sign in to comment.