Skip to content

Commit

Permalink
chore: Add prettier formatting for all files (bootstrap-vue#2444)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobmllr95 authored and tmorehouse committed Jan 13, 2019
1 parent f2b6a3b commit 3723493
Show file tree
Hide file tree
Showing 269 changed files with 3,530 additions and 2,714 deletions.
6 changes: 3 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
sw.js
play.js
/nuxt/plugin.template.js
.nuxt/
node_modules/
nuxt/plugin.template.js
16 changes: 8 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
module.exports = {
extends: [
'standard',
'plugin:vue/recommended'
],
plugins: [
'jest'
],
extends: ['standard', 'plugin:vue/recommended', 'plugin:prettier/recommended'],
plugins: ['jest', 'node', 'promise'],
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
Expand All @@ -19,7 +14,12 @@ module.exports = {
Vue: true
},
rules: {
'vue/max-attributes-per-line': ['error', { singleline: 4 }],
'vue/no-template-shadow': 'off',
'vue/no-use-v-if-with-v-for': 'off',
'vue/no-v-html': 'off',
'vue/require-default-prop': 'off',
'vue/require-prop-types': 'off'
'vue/require-prop-types': 'off',
'vue/singleline-html-element-content-newline': 'off'
}
}
16 changes: 10 additions & 6 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@ Before opening an issue:

- [Search for duplicate or closed issues](https://github.com/bootstrap-vue/bootstrap-vue/issues?utf8=%E2%9C%93&q=is%3Aissue)
- Prepare a [reduced test case](https://css-tricks.com/reduced-test-cases/) for any bugs
- Read the [contributing guidelines](https://github.com/bootstrap-vue/bootstrap-vue/blob/dev/CONTRIBUTING.md)
- Read the
[contributing guidelines](https://github.com/bootstrap-vue/bootstrap-vue/blob/dev/CONTRIBUTING.md)

When asking general "how to" questions:

- Please avoid opening an issue here
- Instead, ask for help on StackOverflow, IRC, or [Discord](https://discord.gg/j2Mtcny), and also check out the [online documentation](https://bootstrap-vue.js.org)
- Instead, ask for help on StackOverflow, IRC, or [Discord](https://discord.gg/j2Mtcny), and also
check out the [online documentation](https://bootstrap-vue.js.org)

When reporting a bug, include:

- Operating system and version (Windows, Mac OS X, Android, iOS, Win10 Mobile)
- Browser and version (Chrome, Firefox, Safari, IE, MS Edge, Opera 15+, Android Browser)
- Version of BootstrapVue that you are using
- Reduced test cases and potential fixes using [CodePen](https://codepen.io/), [JS Bin](https://jsbin.com/), or [JsFiddle](https://jsfiddle.net/) (You can export markup from the [online playground](https://bootstrap-vue.js.org/play) to JS Fiddle)
- Version of Bootstrap-Vue that you are using
- Reduced test cases and potential fixes using [CodePen](https://codepen.io/),
[JS Bin](https://jsbin.com/), or [JsFiddle](https://jsfiddle.net/) (You can export markup from the
[online playground](https://bootstrap-vue.js.org/play) to JS Fiddle)

When suggesting a feature, include:

- As much detail as possible for what we should add and why it's important to Bootstrap
- Relevant links to prior art, screenshots, or live demos whenever possible

Love bootstrap-vue? Please consider supporting our collective:
👉 https://opencollective.com/bootstrap-vue/donate
Love bootstrap-vue? Please consider supporting our collective: 👉
https://opencollective.com/bootstrap-vue/donate
38 changes: 25 additions & 13 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@

<!-- PULL REQUEST TEMPLATE -->
## Description of Pull Request:


Please replace this line with a detailed description of your pull request. If no description your PR may be rejected.
## Description of Pull Request:

Please replace this line with a detailed description of your pull request. If no description your PR
may be rejected.

## PR checklist:

<!-- (Update "[ ]" to "[x]" to check a box) -->

**What kind of change does this PR introduce?** (check at least one)

- [ ] Bugfix
- [ ] Feature
- [ ] Enhancement to an existing feature
Expand All @@ -19,25 +19,37 @@ Please replace this line with a detailed description of your pull request. If no
- [ ] Other, please describe:

**Does this PR introduce a breaking change?** (check one)

- [ ] Yes
- [ ] No

If yes, please describe the impact:


**The PR fulfills these requirements:**

- [ ] It's submitted to the `dev` branch, **not** the `master` branch
- [ ] When resolving a specific issue, it's referenced in the PR's title (i.e. `fixes #xxxx[,#xxxx]`, where "xxxx" is the issue number)
- [ ] The PR should address only one issue or feature. If adding multiple features or fixing a bug and adding a new feature, break them into separate PRs if at all possible.
- [ ] PR titles should following the [**Conventional Commits**](https://www.conventionalcommits.org/) naming convention (i.e. "fix(alert): not alerting during SSR render", "docs(badge): Updated pill examples, fix typos", "chore: fix typo in docs", etc). **This is very important, as the `CHANGELOG` is generated from these messages.**
- [ ] When resolving a specific issue, it's referenced in the PR's title (i.e.
`fixes #xxxx[,#xxxx]`, where "xxxx" is the issue number)
- [ ] The PR should address only one issue or feature. If adding multiple features or fixing a bug
and adding a new feature, break them into separate PRs if at all possible.
- [ ] PR titles should following the
[**Conventional Commits**](https://www.conventionalcommits.org/) naming convention (i.e.
"fix(alert): not alerting during SSR render", "docs(badge): Updated pill examples, fix typos",
"chore: fix typo in docs", etc). **This is very important, as the `CHANGELOG` is generated
from these messages.**

**If new features/enhancement/fixes are added or changed:**
- [ ] Includes documentation updates (including updating the component's `package.json` for slot and event changes)

- [ ] Includes documentation updates (including updating the component's `package.json` for slot and
event changes)
- [ ] New/updated tests are included and passing (if required)
- [ ] Existing test suites are passing
- [ ] The changes have not impacted the functionality of other components or directives
- [ ] ARIA Accessibility has been taken into consideration (does it affect screen reader users or keyboard only users? clickable items should be in the tab index, etc)
- [ ] The changes have not impacted the functionality of other components or directives
- [ ] ARIA Accessibility has been taken into consideration (does it affect screen reader users or
keyboard only users? clickable items should be in the tab index, etc)

**If adding a new feature, or changing the functionality of an existing feature, the PR's description above includes:**
- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a suggestion issue first and wait for approval before working on it)
**If adding a new feature, or changing the functionality of an existing feature, the PR's
description above includes:**

- [ ] A convincing reason for adding this feature (to avoid wasting your time, it's best to open a
suggestion issue first and wait for approval before working on it)
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
node_modules/*
.nuxt/
node_modules/
nuxt/plugin.template.js
10 changes: 9 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,13 @@
"proseWrap": "always",
"semi": false,
"singleQuote": true,
"tabWidth": 2
"tabWidth": 2,
"overrides": [
{
"files": "*.scss",
"options": {
"singleQuote": false
}
}
]
}
53 changes: 36 additions & 17 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,64 @@

## Our Pledge

In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
In the interest of fostering an open and welcoming environment, we as contributors and maintainers
pledge to making participation in our project and our community a harassment-free experience for
everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level
of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.

## Our Standards

Examples of behavior that contributes to creating a positive environment include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit
permission
- Other conduct which could reasonably be considered inappropriate in a professional setting

## Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers are responsible for clarifying the standards of acceptable behavior and are
expected to take appropriate and fair corrective action in response to any instances of unacceptable
behavior.

Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits,
code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or
to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

## Scope

This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
This Code of Conduct applies both within project spaces and in public spaces when an individual is
representing the project or its community. Examples of representing a project or community include
using an official project e-mail address, posting via an official social media account, or acting as
an appointed representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

## Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting
the project team at [email protected]. The project team will review and investigate all complaints, and
will respond in a way that it deems appropriate to the circumstances. The project team is obligated
to maintain confidentiality with regard to the reporter of an incident. Further details of specific
enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face
temporary or permanent repercussions as determined by other members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at
[http://contributor-covenant.org/version/1/4][version]

[homepage]: http://contributor-covenant.org
[version]: http://contributor-covenant.org/version/1/4/
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,12 @@ BootstrapVue provides one of the most comprehensive implementations of Bootstrap
- 💬 [Discord Chat](https://discord.gg/j2Mtcny)
- 🐦 [Twitter](https://twitter.com/BootstrapVue)


<h2 align="center">Sponsors</h2>

Support this project by becoming a sponsor.

Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/bootstrap-vue#sponsor)]
Your logo will show up here with a link to your website.
[[Become a sponsor](https://opencollective.com/bootstrap-vue#sponsor)]

<a href="https://opencollective.com/bootstrap-vue/sponsor/0/website" target="_blank"><img src="https://opencollective.com/bootstrap-vue/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/bootstrap-vue/sponsor/1/website" target="_blank"><img src="https://opencollective.com/bootstrap-vue/sponsor/1/avatar.svg"></a>
Expand All @@ -76,7 +76,8 @@ Your logo will show up here with a link to your website. [[Become a sponsor](htt

<h2 align="center">Backers</h2>

Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/bootstrap-vue#backer)]
Thank you to all our backers! 🙏
[[Become a backer](https://opencollective.com/bootstrap-vue#backer)]

<a href="https://opencollective.com/bootstrap-vue#backers" target="_blank"><img src="https://opencollective.com/bootstrap-vue/backers.svg?width=890"></a>

Expand All @@ -85,7 +86,6 @@ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com
This project exists thanks to all the people who contribute. [[Contribute]](CONTRIBUTING.md).
<a href="https://github.com/bootstrap-vue/bootstrap-vue/graphs/contributors"><img src="https://opencollective.com/bootstrap-vue/contributors.svg?width=890" /></a>


<h2 align="center">License</h2>

Released under The MIT [License](./LICENSE). Copyright (c) BootstrapVue.
Expand Down
23 changes: 13 additions & 10 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,22 @@
module.exports = {
presets: [
['@babel/env', {
useBuiltIns: 'entry'
}]
],
plugins: [
'@babel/proposal-object-rest-spread',
'@babel/transform-runtime'
[
'@babel/env',
{
useBuiltIns: 'entry'
}
]
],
plugins: ['@babel/proposal-object-rest-spread', '@babel/transform-runtime'],
env: {
test: {
presets: [
['@babel/env', {
targets: { node: 'current' }
}]
[
'@babel/env',
{
targets: { node: 'current' }
}
]
]
}
}
Expand Down
15 changes: 8 additions & 7 deletions docs/components/codemirror.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<template>
<textarea
ref="textArea"
:value="value"/>
:value="value"
/>
</template>

<script>
Expand Down Expand Up @@ -61,19 +62,19 @@ export default {
default: false
}
},
data () {
data() {
return {
CM: null
}
},
watch: {
value (new_val, old_val) {
if (!old_val || old_val === '') {
this.CM.setValue(new_val)
value(newVal, oldVal) {
if (!oldVal || oldVal === '') {
this.CM.setValue(newVal)
}
}
},
mounted () {
mounted() {
this.CM = CodeMirror.fromTextArea(this.$refs.textArea, {
mode: this.mode,
theme: this.theme,
Expand All @@ -90,7 +91,7 @@ export default {
this.$emit('input', this.CM.getValue())
})
},
beforeDestroy () {
beforeDestroy() {
if (this.CM) {
this.CM.toTextArea()
}
Expand Down
Loading

0 comments on commit 3723493

Please sign in to comment.