Skip to content

Commit

Permalink
fix: warning for prettier rules
Browse files Browse the repository at this point in the history
  • Loading branch information
aube-dev committed Jul 23, 2024
1 parent a594219 commit e941056
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ module.exports = {
},
ignorePatterns: ['!**/.server', '!**/.client', '!.storybook'],

plugins: ['prettier'],
// Base config
extends: ['eslint:recommended', 'plugin:storybook/recommended'],

Expand Down Expand Up @@ -140,5 +141,6 @@ module.exports = {
},
],
'arrow-body-style': ['warn', 'as-needed'],
'prettier/prettier': 'warn',
},
};
3 changes: 0 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,3 @@ jobs:

- name: 📦 Run ESLint
run: pnpm exec eslint . --max-warnings=0

- name: 📦 Run Prettier
run: pnpm exec prettier . --check
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
"eslint-import-resolver-typescript": "3.6.1",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-react": "7.34.3",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-storybook": "0.8.0",
Expand All @@ -63,9 +64,6 @@
"node": ">=20.0.0"
},
"lint-staged": {
"*.{js,ts,jsx,tsx}": [
"eslint --max-warnings=0",
"prettier --check"
]
"*.{js,ts,jsx,tsx}": "eslint --max-warnings=0"
}
}
52 changes: 52 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit e941056

Please sign in to comment.