Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Add eslint #29

Merged
merged 8 commits into from
May 24, 2018
Merged
Show file tree
Hide file tree
Changes from 5 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
81 changes: 81 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
*.min.*
build
dist
docs/js/showLanguage.js
src/directives
src/utils

!.eslintrc.js

# yuche/vue-strap
docs/affixSidebar.vue
docs/bodyDocs.vue
docs/example/accordionDocs.vue
docs/example/affixDocs.vue
docs/example/alertDocs.vue
docs/example/asideDocs.vue
docs/example/buttonGroupDocs.vue
docs/example/carouselDocs.vue
docs/example/checkboxDocs.vue
docs/example/container.vue
docs/example/datepickerDocs.vue
docs/example/docCode.vue
docs/example/docSection.vue
docs/example/docTable.vue
docs/example/dropdownDocs.vue
docs/example/formGroupDocs.vue
docs/example/gettingStarted.vue
docs/example/inputDocs.vue
docs/example/modalDocs.vue
docs/example/navbarDocs.vue
docs/example/popoverDocs.vue
docs/example/progressbar-docs.vue
docs/example/radioDocs.vue
docs/example/selectDocs.vue
docs/example/spinnerDocs.vue
docs/example/tabsDocs.vue
docs/example/tooltipDocs.vue
docs/example/typeaheadDocs.vue
src/Accordion.vue
src/Affix.vue
src/Alert.vue
src/Aside.vue
src/buttonGroup.vue
src/Carousel.vue
src/Checkbox.vue
src/Datepicker.vue
src/Dropdown.vue
src/FormGroup.vue
src/Input.vue
src/Modal.vue
src/Navbar.vue
src/Option.vue
src/Panel.vue
src/Popover.vue
src/Progressbar.vue
src/Radio.vue
src/Select.vue
src/Slider.vue
src/Spinner.vue
src/Tab.vue
src/TabGroup.vue
src/Tabset.vue
src/Tooltip.vue
src/Typeahead.vue

# MarkBind/vue-strap
docs/example/dynamicPanelDocs.vue
docs/example/imageDocs.vue
docs/example/morphDocs.vue
docs/example/questionDocs.vue
docs/example/retrieverDocs.vue
docs/example/tipBoxDocs.vue
docs/example/triggerDocs.vue
src/DynamicPanel.vue
src/Morph.vue
src/PanelSwitch.vue
src/Pic.vue
src/Question.vue
src/Retriever.vue
src/TipBox.vue
src/trigger.vue
171 changes: 0 additions & 171 deletions .eslintrc

This file was deleted.

25 changes: 25 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
'env': {
'node': true,
'es6': true,
},
'extends': ['airbnb-base', 'plugin:vue/recommended'],
'rules': {
'array-bracket-newline': ['error', { 'multiline': true }],
'func-names': 'off',
'function-paren-newline': 'off',
'indent': [
'error',
2,
{
'CallExpression': { 'arguments': 'first' },
'FunctionDeclaration': { 'parameters': 'first' },
'FunctionExpression': { 'parameters': 'first' },
},
],
'max-len': ['error', { 'code': 110 }],
'operator-linebreak': ['error', 'before'],
'quote-props': 'off',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we consider adding 'semi': 'off', since it looks like we are not enforcing the semi-colon terminator style?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's enforce it.

'vue/order-in-components': 'off',
},
};
Loading