Closed akauppi closed 8 years ago
@akauppi Can you show your rollup config?
I have the exact same error. Here is my rollup config.
import babel from 'rollup-plugin-babel';
import eslint from 'rollup-plugin-eslint';
import nodeResolve from 'rollup-plugin-node-resolve';
export default {
entry: 'src/js/index.js',
format: 'iife',
dest: 'dist/bundle.js',
plugins: [
nodeResolve({
jsnext: true
}),
babel({
exclude: 'node_modules/**'
}),
eslint({
exclude: 'node_modules/**'
})
],
sourceMap: 'inline'
};
@miroli Of course you have wrong positions. You are trying to lint babeled code. Order of plugins is important.
Wow. Thank you!
http://stackoverflow.com/questions/39317999/getting-wrong-line-numbers-with-eslint-and-rollup
Do I need to have a certain version of
eslint
installed, for the plugin?Currently have:
rollup-plugin-eslint 2.0.2
Symptoms:
.eslintrc.js
node_modules/.bin/rollup -c
lint errors, in any way