Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: vuejs/eslint-plugin-vue
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v8.0.1
Choose a base ref
...
head repository: vuejs/eslint-plugin-vue
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v8.0.2
Choose a head ref
  • 3 commits
  • 4 files changed
  • 1 contributor

Commits on Oct 29, 2021

  1. Update bug_report.md

    ota-meshi authored Oct 29, 2021

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    c6ca602 View commit details
  2. Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    fa1675c View commit details
  3. 8.0.2

    ota-meshi committed Oct 29, 2021
    Copy the full SHA
    ec7cb15 View commit details
Showing with 11 additions and 2 deletions.
  1. +4 −0 .github/ISSUE_TEMPLATE/bug_report.md
  2. +2 −1 lib/rules/multi-word-component-names.js
  3. +1 −1 package.json
  4. +4 −0 tests/lib/rules/multi-word-component-names.js
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -51,4 +51,8 @@ about: Create a report to help us improve
-->

**Repository to reproduce this issue**
<!--
Please share a repository that can reproduce your issue.
If you don't share it, we will most likely add a comment asking you to share the repository.
-->

3 changes: 2 additions & 1 deletion lib/rules/multi-word-component-names.js
Original file line number Diff line number Diff line change
@@ -8,6 +8,7 @@
// Requirements
// ------------------------------------------------------------------------------

const path = require('path')
const casing = require('../utils/casing')
const utils = require('../utils')

@@ -111,7 +112,7 @@ module.exports = {
if (hasName) return
if (!hasVue && node.body.length > 0) return
const fileName = context.getFilename()
const componentName = fileName.replace(/\.[^/.]+$/, '')
const componentName = path.basename(fileName, path.extname(fileName))
if (
utils.isVueFile(fileName) &&
!isValidComponentName(componentName)
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-plugin-vue",
"version": "8.0.1",
"version": "8.0.2",
"description": "Official ESLint plugin for Vue.js",
"main": "lib/index.js",
"scripts": {
4 changes: 4 additions & 0 deletions tests/lib/rules/multi-word-component-names.js
Original file line number Diff line number Diff line change
@@ -39,6 +39,10 @@ tester.run('multi-word-component-names', rule, {
filename: 'app.vue',
code: ''
},
{
filename: 'path/to/app.vue',
code: '<script></script>'
},
{
filename: 'invalid.vue',
code: `