Open samhh opened 7 years ago
eslint-loader
appears to be ready for this change, at least.
The lint rule becomes, as an example:
enforce: 'pre',
test: /\.js$/,
loader: 'eslint',
options: {
configFile: './.eslintrc',
emitError: true,
emitWarning: true
},
exclude: /node_modules/
}
Need to make conditional checks here for if TypeScript or not as currently the planned TypeScript integration would use its own linter, with an inevitably differing config.
The Stylus and PostCSS loaders aren't really ready yet. I have however updated ESLint's config: https://github.com/imperodesign/generator-impero/commit/cb7b2470775f75b378c6e22bba643614e456efb1
stylus-loader
appears to be ready.
See
postcss-loader
's example: https://github.com/postcss/postcss-loader