Skip to content

Commit

Permalink
Revert "Upgrade ESLint rules with next recommended" (#202)
Browse files Browse the repository at this point in the history
Revert "Upgrade ESLint rules with next recommended (#201)"

This reverts commit 2b49b5a.
  • Loading branch information
oscard0m authored Jul 23, 2022
1 parent 2b49b5a commit d41e635
Show file tree
Hide file tree
Showing 5 changed files with 8,484 additions and 11,861 deletions.
5 changes: 4 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@ 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 @@ -33,6 +35,7 @@ module.exports = {
aspects: ['invalidHref', 'preferButton'],
},
],
'react/prop-types': 0,
'no-unused-vars': 0,
'react/no-unescaped-entities': 0,
},
Expand Down
12 changes: 5 additions & 7 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',
})

/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
module.exports = withBundleAnalyzer({
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,6 +38,4 @@ const nextConfig = {

return config
},
}

module.exports = withBundleAnalyzer(nextConfig)
})
Loading

1 comment on commit d41e635

@vercel
Copy link

@vercel vercel bot commented on d41e635 Jul 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.