Skip to content

Some rules are not fixable #379

Closed
Closed
@casprwang

Description

@casprwang

Tell us about your environment
OSX

  • ESLint Version:
    4.17.0
  • eslint-plugin-vue Version:
    4.0.0
  • Node Version:
    9.3
    Please show your full configuration:
// https://eslint.org/docs/user-guide/configuring

module.exports = {
  root: true,
  parserOptions: {
    parser: 'babel-eslint',
  },
  env: {
    browser: true,
  },
  // https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
  // consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
  extends: ['plugin:vue/strongly-recommended'],
  // required to lint *.vue files
  plugins: [
    'vue',
  ],
  // add your custom rules here
  rules: {
    // allow debugger during development
    "indent": [0, 2],
    "linebreak-style": ["error", "unix"],
    "quotes": [0, "single"],
    "semi": ["error", "never"],
    "brace-style": [2, "1tbs", {
      "allowSingleLine": true,
    }],
    "curly": [2, "all"],
    "no-console": ["error", {
      "allow": ["warn", "error", "log"],
    }],
    "no-unused-vars": 0,
    "no-empty": [0, "never"],
    "curly": 0,
    "comma-dangle": [2, "always-multiline"],
    "no-constant-condition": [2, {
      "checkLoops": false,
    }],
    "key-spacing": [
      0, {
        "multiLine": {
          "beforeColon": false,
          "afterColon": true,
        },
        "align": {
          "beforeColon": false,
          "afterColon": false,
          "on": "colon",
        },
      },
    ],
    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
  },
}

What did you do? Please include the actual source code causing the issue.
./node_modules/.bin/eslint --fix

What did you expect to happen?
fixed
What actually happened? Please include the actual, raw output from ESLint.

   9:53  error  Attribute "class" should be on a new line  vue/max-attributes-per-line
  30:50  error  Attribute "class" should be on a new line  vue/max-attributes-per-line
  51:55  error  Attribute "class" should be on a new line  vue/max-attributes-per-line

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions