Skip to content

UTF-8 characters break PascalCase checking #688

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

Closed
mariszin opened this issue Nov 29, 2018 · 0 comments · Fixed by #1152
Closed

UTF-8 characters break PascalCase checking #688

mariszin opened this issue Nov 29, 2018 · 0 comments · Fixed by #1152

Comments

@mariszin
Copy link

When using UTF8 characters in component name, the plugin fails to recognize PascalCase name.

  • ESLint version: v4.19.1
  • eslint-plugin-vue version: v4.7.1
  • Node version: v8.11.3

Please show your full configuration:

module.exports = {
  root: true,
  env: {
    node: true
  },
  'extends': [
    'plugin:vue/recommended',
    '@vue/airbnb'
  ],
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
  },
  parserOptions: {
    parser: 'babel-eslint'
  }
};

What did you do?

export default {
  name: 'DarbībaShow',
};

What did you expect to happen?
linter should recognize this as a valid PascalCase

What actually happened?

...\show.vue
  13:9  error  Property name "DarbībaShow" is not PascalCase  vue/name-property-casing

✖ 1 problem (1 error, 0 warnings)
  1 error, 0 warnings potentially fixable with the `--fix` option.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants