Skip to content

[Bug] Removal of bound prop ordering (vue/attribute-order) #737

Closed as not planned
@johnleider

Description

@johnleider

Tell us about your environment Windows 10

  • ESLint version: v5.10.0
  • eslint-plugin-vue version: >= v5.0.0-beta.0
  • Node version: v.10.13.0

Please show your full configuration:

module.exports = {
  extends: [
    'standard',
    'plugin:vue/recommended'
  ],

  parserOptions: {
    parser: 'babel-eslint',
    ecmaVersion: 2017,
    sourceType: 'module'
  },

  rules: {
    'max-len': 'off',
    'indent': 'off',
    'vue/component-name-in-template-casing': ['error', 'kebab-case'],
    'vue/script-indent': ['error', 2, {
      'baseIndent': 1,
      'switchCase': 1,
      'ignores': []
    }],
    'vue/max-attributes-per-line': ['error', {
      'singleline': 1,
      'multiline': {
        'max': 1,
        'allowFirstLine': false
      }
    }],
    'vue/html-closing-bracket-newline': ['error', {
      'singleline': 'never',
      'multiline': 'always'
    }],
    'vue/html-closing-bracket-spacing': 'error',
    'vue/no-v-html': 'off'
  }
}

What did you do?

<element
  color="blue"
  gradient="to top, rgba(0,0,0,.32), rgba(0,0,0,.32)"
  :src="require('@/assets/bg.jpg')"
  min-height="100vh"
/>

What did you expect to happen?
:src to move above color/gradient

What actually happened?
:src receives no warning

This was altered in #421. Not completely clear as to whether it was an unintentional change or intended. If it was intended, please reconsider allowing the separation of bound props from unbound.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions