Skip to content

Commit

Permalink
👷 split dev eslint and ci eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
dxanh97 committed Dec 18, 2024
1 parent ac49f2b commit 07e66fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
"prettier"
],
"rules": {
"react/require-default-props": 0
"@typescript-eslint/no-unused-vars": "warn",
"react/require-default-props": "off"
},
"parserOptions": {
"project": "./tsconfig.json"
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
- uses: actions/checkout@v4
- name: Install Dependencies
run: yarn
- name: Run ESLint with TypeScript
run: npx eslint . --ext .ts,.tsx --config ci.eslintrc
- name: Run Tests
run: yarn test --ci
- name: Build
Expand Down
15 changes: 15 additions & 0 deletions ci.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"extends": [
"airbnb",
"airbnb/hooks",
"airbnb-typescript",
"plugin:react/jsx-runtime",
"prettier"
],
"rules": {
"react/require-default-props": "off"
},
"parserOptions": {
"project": "./tsconfig.json"
}
}

0 comments on commit 07e66fb

Please sign in to comment.