(Part 4. Config .eslintrc.json) Startup JavaScript Project with Webpack4, Vue2, Vue-Router, Vuex, Axios, ESLint, Babel, AirBnb
4873 ワード
- .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';"
}
}
}
}
Author And Source
この問題について((Part 4. Config .eslintrc.json) Startup JavaScript Project with Webpack4, Vue2, Vue-Router, Vuex, Axios, ESLint, Babel, AirBnb), 我々は、より多くの情報をここで見つけました https://qiita.com/moonlightbox/items/288926001dbbbc905953著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .