Skip to content
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

eslint errors #20

Open
RHEEUNION opened this issue Mar 30, 2021 · 0 comments
Open

eslint errors #20

RHEEUNION opened this issue Mar 30, 2021 · 0 comments

Comments

@RHEEUNION
Copy link

RHEEUNION commented Mar 30, 2021

Hi, I got bunch of errors with Eslint.
I have solved thousands of them, but keep showing new errors in every each of files.
Could you share your eslint.js settings?

Mine looks like below:

module.exports = {
  env: {
    browser: true,
    es6: true
  },
  extends: ["plugin:vue/vue3-recommended", "@vue/airbnb"],
  globals: {
    Atomics: "readonly",
    SharedArrayBuffer: "readonly"
  },
  parser: "vue-eslint-parser",
  parserOptions: {
    parser: "babel-eslint",
    ecmaVersion: 2018,
    sourceType: "module"
  },
  plugins: ["import", "vue"],
  rules: {
    indent: ["error", 2],
    quotes: [
      "error",
      "double",
      {
        avoidEscape: true,
        allowTemplateLiterals: true
      }
    ],
    "comma-dangle": ["error", "never"],
    // or
    "comma-dangle": [
      "error",
      {
        arrays: "never",
        objects: "never",
        imports: "never",
        exports: "never",
        functions: "never"
      }
    ],
    semi: ["error", "always"]
  }
};

And my ERRORS looks like this below:

  5:39  warning  Expected 1 line break after opening tag (`<v-btn>`), but no line breaks found    vue/singleline-html-element-content-newline
  5:45  warning  Expected 1 line break before closing tag (`</v-btn>`), but no line breaks found  vue/singleline-html-element-content-newline
  9:12  error    Newline required at end of file but not found                                    eol-last
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant