- .eslintrc.json (DON'T use .eslintrc as file name. See here.)
.eslintrc.json
{
"root": true,
"parserOptions": {
"parser": "babel-eslint",
"ecmaVersion": 2017
},
"env": {
"browser": true,
"node": true,
"es6": true
},
"extends": [
"airbnb-base", <-- We used airbnb coding style.
"plugin:vue/essential" <-- This setting is for Vue2.
],
"plugins": [
"vue"
],
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.common.js" <-- This let us can used "import foo from '@/foo/foo';" instead of "import foo from '../../foo/foo';"
}
}
}
}