Skip to content

Commit

Permalink
Merge pull request #19 from hamid-Ft/hamid-Ft/zustand
Browse files Browse the repository at this point in the history
Hamid-Ft/zustand
  • Loading branch information
hamid-Ft authored Nov 30, 2023
2 parents d943a07 + 7f2bab0 commit 91c9d3b
Show file tree
Hide file tree
Showing 16 changed files with 650 additions and 20 deletions.
17 changes: 15 additions & 2 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,24 @@ module.exports = {
settings: { react: { version: 'detect' } },
plugins: ['prettier', '@typescript-eslint', 'react-refresh'],
rules: {
'linebreak-style': ['error', 'unix'],
'react/no-danger': 'off', // it's self explainatory that no-danger should be used sparingly
'react/react-in-jsx-scope': 'off', // next.js does not require react in most components
'react/prop-types': 'off', // as long as TS strict mode is off this is not required
'prettier/prettier': 'error',
'prettier/prettier': [
'error',
{
printWidth: 80,
tabWidth: 4,
semi: true,
singleQuote: true,
trailingComma: 'all',
bracketSpacing: true,
bracketSameLine: true,
arrowParens: 'avoid',
htmlWhitespaceSensitivity: 'css',
endOfLine: 'auto',
},
],
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"bracketSameLine": true,
"arrowParens": "avoid",
"htmlWhitespaceSensitivity": "css",
"endOfLine": "lf"
"endOfLine": "auto"
}
83 changes: 74 additions & 9 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,13 @@
"@testing-library/user-event": "^14.5.1",
"@vitejs/plugin-react": "^4.0.3",
"axios": "^1.6.0",
"immer": "^10.0.3",
"jest-environment-jsdom": "^29.7.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"vite": "^4.4.5",
"vite-plugin-environment": "^1.1.3"
"vite-plugin-environment": "^1.1.3",
"zustand": "^4.4.6"
},
"devDependencies": {
"@testing-library/jest-dom": "^6.1.4",
Expand Down
Loading

0 comments on commit 91c9d3b

Please sign in to comment.