Skip to content
Discussion options

You must be logged in to vote

Where are you wanting to see the lint output? In your terminal? Or in your editor (i.e. Visual Studio Code)? Or lint it manually by running a command?

If you want the lint errors to show in your terminal, you need to use something like eslint-loader similar to how it is done in this issue #9904

next.config.js

module.exports = {
  webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
    if (dev) {
      config.module.rules.push({
        test: /\.(j|t)s?$/,
        exclude: /node_modules/,
        loader: 'eslint-loader',
      })
    }
    return config
  },
}

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Andrewnt219
Comment options

@Andrewnt219
Comment options

Answer selected by Andrewnt219
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants