Skip to content

Commit

Permalink
Revert "Revert "Upgrade ESLint rules with next recommended" (#202)"
Browse files Browse the repository at this point in the history
This reverts commit d41e635.
  • Loading branch information
oscard0m committed Jul 23, 2022
1 parent d41e635 commit 6240f2a
Show file tree
Hide file tree
Showing 5 changed files with 11,992 additions and 8,615 deletions.
5 changes: 1 addition & 4 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,12 @@ module.exports = {
},
extends: [
'eslint:recommended',
'plugin:react/recommended',
'plugin:react-hooks/recommended',
'plugin:jsx-a11y/recommended',
'plugin:@next/next/recommended',
'plugin:prettier/recommended',
],
rules: {
'prettier/prettier': 'error',
'react/react-in-jsx-scope': 'off',
'jsx-a11y/anchor-is-valid': [
'error',
{
Expand All @@ -35,7 +33,6 @@ module.exports = {
aspects: ['invalidHref', 'preferButton'],
},
],
'react/prop-types': 0,
'no-unused-vars': 0,
'react/no-unescaped-entities': 0,
},
Expand Down
12 changes: 7 additions & 5 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ const withBundleAnalyzer = require('@next/bundle-analyzer')({
enabled: process.env.ANALYZE === 'true',
})

module.exports = withBundleAnalyzer({
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
future: {
webpack5: true,
},
webpack: (config, { dev, isServer }) => {
config.module.rules.push({
test: /\.(png|jpe?g|gif|mp4)$/i,
Expand Down Expand Up @@ -38,4 +38,6 @@ module.exports = withBundleAnalyzer({

return config
},
})
}

module.exports = withBundleAnalyzer(nextConfig)
Loading

0 comments on commit 6240f2a

Please sign in to comment.