Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add next lint script #82

Merged
merged 4 commits into from
Nov 7, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Ignore eslint during builds
  • Loading branch information
exu3 committed Nov 7, 2021
commit 64df5f29d9608d78f30ef8ed7ac53b62eeda6591
17 changes: 13 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
const withMDX = require('@next/mdx')({ extension: /\.mdx?$/ })
module.exports = withMDX({
const nextConfig = {
experimental: { trailingSlash: true },
pageExtensions: ['js', 'jsx', 'mdx']
})
pageExtensions: ['js', 'jsx', 'mdx'],
eslint: {
// Warning: This allows production builds to successfully complete even if
// your project has ESLint errors.
ignoreDuringBuilds: true
}
}
const withPlugins = require('next-compose-plugins')

const withMDX = require('@next/mdx')({ extension: /\.mdx?$/ })

module.exports = withPlugins([withMDX], nextConfig)
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"@next/mdx": "^10.0.4",
"lodash": "^4.17.21",
"next": "^12.0.2",
"next-compose-plugins": "^2.2.1",
"nprogress": "^0.2.0",
"pluralize": "^8.0.0",
"react": "^17.0.2",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3093,6 +3093,11 @@ natural-compare@^1.4.0:
resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7"
integrity sha1-Sr6/7tdUHywnrPspvbvRXI1bpPc=

next-compose-plugins@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/next-compose-plugins/-/next-compose-plugins-2.2.1.tgz#020fc53f275a7e719d62521bef4300fbb6fde5ab"
integrity sha512-OjJ+fV15FXO2uQXQagLD4C0abYErBjyjE0I0FHpOEIB8upw0hg1ldFP6cqHTJBH1cZqy96OeR3u1dJ+Ez2D4Bg==

next@^12.0.2:
version "12.0.2"
resolved "https://registry.yarnpkg.com/next/-/next-12.0.2.tgz#269512cdf14d12c535c12240280da95e7be2d006"
Expand Down