Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix js to comply with linter #97

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,14 @@ module.exports = {
env: {
browser: true,
},
globals: {
"$": true
},

extends: [
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
'plugin:vue/essential',
'plugin:vue/essential',
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
'standard'
],
Expand All @@ -21,6 +25,15 @@ module.exports = {
],
// add your custom rules here
rules: {
// disable camecase naming and allow underscores
// See https://eslint.org/docs/rules/camelcase
"camelcase": "off",
"no-sequences": "off",
"no-self-assign": ["error", {"props": false}],
// Since we load jQuery conditionally, marking this linter off
// Should try to tunr this on
"import/no-webpack-loader-syntax": "off",

// allow async-await
'generator-star-spacing': 'off',
// allow debugger during development
Expand Down
14 changes: 7 additions & 7 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<script>
export default {
name: 'App'
};
}
</script>

<style>
Expand All @@ -19,11 +19,11 @@ export default {
color: #2c3e50;
margin-top: 65px !important;
}
.container {
display: inline-block;
padding-top: 75px !important;
padding-right: 15px;
padding-left: 15px;
.container {
display: inline-block;
padding-top: 75px !important;
padding-right: 15px;
padding-left: 15px;
text-align: center;
}
</style>
</style>
Loading