Skip to content

Commit

Permalink
eslint for vue
Browse files Browse the repository at this point in the history
  • Loading branch information
dimpurr committed Dec 22, 2017
1 parent 3968b7e commit 0cee4c8
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
"es6": true
},
"extends": "eslint:recommended",
"plugins": [
"html"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@
"devDependencies": {
"autoprefixer": "^7.1.6",
"babel-core": "^6.26.0",
"babel-eslint": "^8.0.3",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"clean-webpack-plugin": "^0.1.17",
"css-loader": "^0.28.7",
"eslint": "^4.11.0",
"eslint-loader": "^1.9.0",
"eslint-plugin-html": "^4.0.1",
"extract-text-webpack-plugin": "^3.0.2",
"file-loader": "^1.1.6",
"html-webpack-plugin": "^2.30.1",
Expand Down
4 changes: 2 additions & 2 deletions src/hello.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
</template>

<script>
import test from "./test.vue";
import test from './test.vue';
module.exports = {
data: function () {
return {
vue_hello: "hello"
vue_hello: 'hello'
};
},
components: {
Expand Down
6 changes: 3 additions & 3 deletions src/test.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@
module.exports = {
data: function() {
return {
vue_name: "component"
}
vue_name: 'component'
};
}
}
};
</script>

<style scoped lang="scss">
Expand Down

0 comments on commit 0cee4c8

Please sign in to comment.