Skip to content

Commit

Permalink
[build] Migrating to yarn 2
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamedBassem committed Feb 8, 2024
1 parent bae1bcc commit c5bfa50
Show file tree
Hide file tree
Showing 6 changed files with 7,089 additions and 5,047 deletions.
62 changes: 31 additions & 31 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
module.exports = {
"env": {
"browser": true,
"es2021": true
},
"extends": [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended",
"next",
"prettier"
env: {
browser: true,
es2021: true,
},
extends: [
"next/core-web-vitals",
"eslint:recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:@next/next/recommended",
"next",
"prettier",
],
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
ignorePatterns: ["postcss.config.js"],
rules: {
"no-redeclare": "off",
"@next/next/no-html-link-for-pages": "off",
"no-undef": "off",
"react/jsx-no-undef": "off",
"no-unused-vars": [
"error",
{
varsIgnorePattern: "^_",
argsIgnorePattern: "^_",
},
],
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"ignorePatterns": ["postcss.config.js"],
"rules": {
"no-redeclare": "off",
"@next/next/no-html-link-for-pages": "off",
"no-undef": "off",
"react/jsx-no-undef": "off",
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_"
}
]
}
}
},
};
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# This is a workaround for: https://github.com/actions/setup-node/issues/899
- name: Enable Corepack before setting up Node
run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 21
cache: 'yarn'
cache-dependency-path: 'yarn.lock'
cache: "yarn"
cache-dependency-path: "yarn.lock"
- name: Install deps
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Lint
run: yarn eslint .
- name: Format
Expand Down
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
"eslint-config-next": "14.1.0",
"prettier": "3.2.5",
"typescript": "^5"
}
},
"packageManager": "yarn@4.1.0"
}
4 changes: 2 additions & 2 deletions packages/db/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"main": "index.ts",
"dependencies": {
"prisma": "^5.9.1",
"@prisma/client": "^5.9.1"
"@prisma/client": "^5.9.1",
"prisma": "^5.9.1"
}
}
Loading

0 comments on commit c5bfa50

Please sign in to comment.