-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #482 from Digital-Coder/nextjs-11
next.js 11 webpack 5 eslint prettier
- Loading branch information
Showing
10 changed files
with
18,759 additions
and
22,094 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
node_modules | ||
production | ||
staging | ||
workload | ||
.next | ||
/out/ | ||
.vscode | ||
.github | ||
*.json | ||
*.lock | ||
*.md | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"extends": ["airbnb-base", "next", "prettier"], | ||
"env": { "browser": true, "node": true, "es2021": true } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.next | ||
/out/ | ||
/node_modules/ | ||
.github |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"singleQuote": false, | ||
"trailingComma": "es5", | ||
"printWidth": 80, | ||
"tabWidth": 2, | ||
"useTabs": false, | ||
"semi": true, | ||
"jsxSingleQuote": false, | ||
"jsxBracketSameLine": false, | ||
"bracketSpacing": true, | ||
"arrowParens": "always", | ||
"endOfLine": "lf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"jpoissonnier.vscode-styled-components" | ||
"jpoissonnier.vscode-styled-components", | ||
"dbaeumer.vscode-eslint" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
const withImages = require("next-images"); | ||
|
||
module.exports = withImages({ | ||
webpack(config, { isServer }) { | ||
// Fixes npm packages that depend on `fs` module | ||
if (!isServer) { | ||
config.node = { | ||
fs: "empty" | ||
}; | ||
} | ||
return config; | ||
}, | ||
async redirects() { | ||
return [ | ||
{ | ||
source: "/meet", | ||
destination: "/hangout", | ||
permanent: true | ||
} | ||
permanent: true, | ||
}, | ||
]; | ||
} | ||
}, | ||
images: { | ||
/* | ||
next-images plugin is conflicting with Next.js 11 static import feature. | ||
see the discussion here: | ||
https://github.com/twopluszero/next-images/issues/73 | ||
*/ | ||
disableStaticImages: true, | ||
}, | ||
webpack5: true, | ||
reactStrictMode: true, // It helps you avoid legacy code, and deprecated APIs. | ||
eslint: { | ||
// Warning: Dangerously allow production builds to successfully complete even if | ||
// your project has ESLint errors. | ||
// we have too many errors if you run npm run lint ,but after bug fixes we could enforce this. | ||
ignoreDuringBuilds: true, | ||
}, | ||
}); |
Oops, something went wrong.