Closed BenoitZugmeyer closed 7 years ago
module.exports = {
root: true,
parser: 'babel-eslint',
parserOptions: {
sourceType: 'module'
},
extends: ['vue', 'plugin:jasmine/recommended'],
// required to lint *.vue files
plugins: [
'html',
'jasmine'
],
globals: {
window: true,
document: true,
WatchTower: true,
},
// check if imports actually resolve
'settings': {
'import/resolver': {
'webpack': {
'config': 'webpack.config.js'
}
},
'import/alias': {
components: './resources/assets/app/components'
}
},
// add your custom rules here
'rules': {
}
};
Thank you for providing more details, but sadly I still can't reproduce. While investigating this issue I found out that the eslint-plugin-vue
won't work with v2, since it is using something that isn't exported anymore https://github.com/vuejs/eslint-plugin-vue/blob/6a3a6db540e823b51af1e02950896ac9c2b49219/index.js#L5
I wonder why you didn't encounter this issue (something like ESLint couldn't find the plugin "eslint-plugin-vue".
) while linting your file.
:+1: Removed it. It's working now.
Check this error.
error Newline required at end of file but not found eol-last
I suggest you should release an alpha with next
tag.
The eol-last errors will be fixed in #45. You're right, maybe releasing an alpha would be safer for now. I'll think about it.
I just ran into the "Invalid slice indexes" issue as well. For me it was because I had created an empty .html file. Once I added content to the file, the error went away.
Thank you!
@shannonmoeller thank you for your report!
Just wanted to drop a note here and say that I was having this exact same issue but upgrading from eslint-plugin-html
form 2.0.0 to the 2.0.1 release of this morning seems to have fixed the problem.
Very glad to know! Cheers.
Follow up: https://github.com/BenoitZugmeyer/eslint-plugin-html/pull/44#issuecomment-272816191
HTML code: