Skip to content

Commit

Permalink
CHORE: Update Node 20
Browse files Browse the repository at this point in the history
  • Loading branch information
mazipan committed Oct 22, 2024
1 parent 6b10e7b commit 4a9d07e
Show file tree
Hide file tree
Showing 51 changed files with 455 additions and 7,004 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

14 changes: 0 additions & 14 deletions .eslintrc.js

This file was deleted.

51 changes: 20 additions & 31 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,46 +7,35 @@ on:
name: CI

jobs:
install-deps:
name: Install dependencies
lint:
name: Lint files
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js 14.x
uses: actions/setup-node@v1
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: "14.x"

- name: Install locked dependencies
run: yarn install
version: 9
run_install: false

- name: Cache dependencies
uses: actions/cache@v1
id: cache-deps
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: "."
key: ${{ github.sha }}
node-version: 20
cache: 'pnpm'

lint:
name: ESLint
runs-on: ubuntu-latest
needs: install-deps
steps:
- name: Restore cached dependencies
uses: actions/cache@v1
id: restore-deps
with:
path: "."
key: ${{ github.sha }}
- name: Install dependencies
run: pnpm install

- name: Setup Node.js 14.x
uses: actions/setup-node@v1
with:
node-version: "14.x"
- name: Format files
run: pnpm run format
env:
CI: true

- name: Lint files
run: yarn run lint --fix
run: pnpm run lint
env:
CI: true
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -54,7 +54,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -68,4 +68,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
33 changes: 17 additions & 16 deletions .github/workflows/purge_schedule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,35 @@ on:
jobs:
purge_file:
runs-on: ubuntu-latest

permissions:
contents: write # 'write' access to repository contents
pull-requests: write # 'write' access to pull requests

steps:
- uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0

- name: Setup node 18
uses: actions/setup-node@v1
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: 18.x

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
version: 9
run_install: false

- name: Cache Node.js modules
uses: actions/cache@v1
- name: Install Node.js
uses: actions/setup-node@v4
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.OS }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-yarn-
node-version: 20
cache: 'pnpm'

- name: Install dependencies
run: yarn
run: pnpm install

- name: Run purge
run: yarn purge
run: pnpm run purge

- name: Commit changes
run: |
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.18.0
1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,14 @@ _Sorted alphabetically_

```js
module.exports = {
name: 'YOUR_NAME',
name: 'YOUR NAME',
github: 'XXX',
email: '[email protected]',
twitter: '@xxx',
facebook: 'xxx',
linkedin: 'in/xxx'
linkedin: 'in/xxx',
}
```

- Create a pull request to the `master` branch in this repository, read [how to create pull request](https://help.github.com/articles/creating-a-pull-request/)
Expand Down
100 changes: 100 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off"
},
"performance": {
"noAccumulatingSpread": "warn"
},
"correctness": {
"noChildrenProp": "off",
"noUnusedImports": "error",
"noUnusedVariables": "error"
},
"suspicious": {
"noArrayIndexKey": "off"
},
"style": {
"noNonNullAssertion": "off",
"noUnusedTemplateLiteral": "off",
"noParameterAssign": "off"
},
"a11y": {
"noSvgWithoutTitle": "off",
"useGenericFontNames": "off",
"useKeyWithClickEvents": "off"
},
"security": {
"noDangerouslySetInnerHtml": "off"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto"
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
},
"css": {
"linter": {
"enabled": true
},
"formatter": {
"indentStyle": "space"
},
"parser": {
"cssModules": true
}
},
"overrides": [
{
"include": ["*.json"],
"formatter": {
"indentWidth": 2
}
}
],
"files": {
"ignore": [
".github/**",
".husky/**",
".next/**",
".vscode/**",
".swc/**",
".yarn/**",
"coverage/**",
"configs/test/**",
"configs/mocks/**",
"node_modules/**",
"vendors/**",
"scripts/**",
"public/vendors/**",
"public/mockServiceWorker.js",
"public/sw.js",
"public/service-worker-production.js"
]
}
}
Loading

0 comments on commit 4a9d07e

Please sign in to comment.