Skip to content

Instantly share code, notes, and snippets.

@zindel
Created March 27, 2019 16:12
Show Gist options
  • Save zindel/fab6cbe9de6bfb02b9dac28268297f65 to your computer and use it in GitHub Desktop.
Save zindel/fab6cbe9de6bfb02b9dac28268297f65 to your computer and use it in GitHub Desktop.
// First, run the linter.
// It's important to do this before Babel processes the JS.
{
test: /\.(js|mjs|jsx)$/,
enforce: 'pre',
use: [
{
options: {
formatter: require.resolve('react-dev-utils/eslintFormatter'),
eslintPath: require.resolve('eslint'),
},
loader: require.resolve('eslint-loader'),
},
],
include: paths.appSrc,
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment