Skip to content

Commit

Permalink
fix(build): Extend linting and add Next experimental feature for susp…
Browse files Browse the repository at this point in the history
…ense

Signed-off-by: Helio Chissini de Castro <[email protected]>
  • Loading branch information
heliocastro committed Jan 31, 2024
1 parent 7c8d348 commit f432d00
Show file tree
Hide file tree
Showing 5 changed files with 197 additions and 109 deletions.
9 changes: 8 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@
"settings": {
"next": {
"rootDir": "src"
},
"import/resolver": {
"typescript": {
"alwaysTryTypes": true,
"project": "tsconfig.json"
}
}

},
"plugins": ["@typescript-eslint", "react"],
"plugins": ["@typescript-eslint", "react", "import"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": true,
Expand Down
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
. "$(dirname -- "$0")/_/husky.sh"

npm run lint
npx pretty-quick --staged
3 changes: 3 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ const withNextIntl = require('next-intl/plugin')()
const nextConfig = {
reactStrictMode: true,
output: 'standalone',
experimental: {
missingSuspenseWithCSRBailout: false,
},
}

module.exports = withNextIntl(nextConfig)
Loading

0 comments on commit f432d00

Please sign in to comment.