Skip to content

Conversation

@exarus
Copy link
Contributor

@exarus exarus commented Jan 6, 2018

I've fixed 3 small code style issues:

  1. Comment typo in word in file /build/build.js: tyescript -> typescript
  2. Jest JS example test formatting got a bit more traditional:
expect( ... )
.toEqual( ... )

->

expect( ... )
  .toEqual( ... )
  1. Style Guide Strongly Recommended Rule violated in src/App.vue.

App component should declare itself as name: 'App' instead of name: 'app'.
I've found this error by applying ESLint 'plugin:vue/recommended'.

  1. Style Guide Strongly Recommended Rule violation fixed in src/components/HelloWorld.vue.
    Each <a> link was placed fully in a single line for the sake of simplicity.
    Style Guide suggests splitting elements with several attributes over several lines.
    Old version:
<li><a href="https://vuejs.org" target="_blank">Core Docs</a></li>

Vue-styled version:

<li>
  <a
    href="https://vuejs.org"
    target="_blank"
  >
    Core Docs
  </a>
</li>

I've found this error by applying ESLint 'plugin:vue/recommended'.

exarus added 3 commits January 7, 2018 01:03
TypeScript comment typo in file /build/build.js
ESLint 'plugin:vue/recommended' detects this code style error. It violates the Style Guide rule: https://vuejs.org/v2/style-guide/#Component-name-casing-in-templates-strongly-recommended
@exarus exarus changed the title Comment typo fixed in /build Typo, whitespace and Style Guide fixes Jan 7, 2018
ESLint 'plugin:vue/recommended' detects the code style error in src/components/HelloWorld.js.
It violates the Style Guide Strongly Recommended Rule: https://vuejs.org/v2/style-guide/#Multi-attribute-elements-strongly-recommended
Copy link
Contributor

@LinusBorg LinusBorg left a comment

Choose a reason for hiding this comment

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

Thanks!

@LinusBorg LinusBorg added this to the 1.3.0 milestone Jan 10, 2018
@LinusBorg LinusBorg merged commit 162a13c into vuejs-templates:develop Jan 10, 2018
@exarus exarus deleted the patch-2 branch January 13, 2018 02:48
LinusBorg added a commit that referenced this pull request Jan 13, 2018
* develop:
  bump template version (1.3.0)
  chore: remove extra comma (#1240)
  Improve template CI tests (close #1218)
  Revert "fix bad alias (fix #1239)"
  Typo, whitespace and Style Guide fixes (#1231)
  Update runner.js (#1235)
  remove unnecessary option.
  bumping eslint dependencies
  fix bad alias (fix #1239)
  remove duplicate lines in gitignore (#1214)
  fix historyFallback rewrite for Windows systems
  improved comments in eslintrc
  updated linting docs.
  respect eslint rule for order of options.
  switch to essential ruleset.
  add eslint-plugin-vue

# Conflicts:
#	template/build/build.js
c0defre4k added a commit to neonblack-at/webpack that referenced this pull request Jan 23, 2018
* vuejs-templates/master: (66 commits)
  Bump template version (1.3.1)
  change circleci node image to 6.12.3 to ensure node 6 compat.
  replace object rest spread with Object.assign for node6 compat. (fix
vuejs-templates#1245)
  bump template version (1.3.0)
  chore: remove extra comma (vuejs-templates#1240)
  Improve template CI tests (close vuejs-templates#1218)
  Revert "fix bad alias (fix vuejs-templates#1239)"
  Typo, whitespace and Style Guide fixes (vuejs-templates#1231)
  Update runner.js (vuejs-templates#1235)
  remove unnecessary option.
  bumping eslint dependencies
  fix bad alias (fix vuejs-templates#1239)
  fix history fallback for windows.
  remove duplicate lines in gitignore (vuejs-templates#1214)
  fix historyFallback rewrite for Windows systems
  improved comments in eslintrc
  updated linting docs.
  respect eslint rule for order of options.
  switch to essential ruleset.
  add eslint-plugin-vue
  ...

# Conflicts:
#	meta.js
#	template/package.json
#	template/src/components/HelloWorld.vue
#	template/src/main.js
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants