DEV Community

Discussion on: How to setup gatsby with TypeScript and ESLint + prettier

Collapse
 
sweethuman profile image
Gheorghe Avram

I'm running gatsby@v4 and with the latest gatsby-plugin-eslint and the configed in the article didn't work for me, but this did:

{
      resolve: 'gatsby-plugin-eslint',
      options: {
        rulePaths: [gatsbyRequiredRules],
        extensions: ['js', 'jsx', 'ts', 'tsx'],
        exclude: ['node_modules', 'bower_components', '.cache', 'public'],
        stages: ['develop'],
        emitWarning: true,
        failOnError: false,
      },
    }
Enter fullscreen mode Exit fullscreen mode