Skip to content
Snippets Groups Projects
.eslintrc.js 9.12 KiB
module.exports = {
  root: true,
  overrides: [
    {
      files: ["*.js", "*.vue"],
      // parser: "vue-eslint-parser",
      //processor: "@graphql-eslint/graphql",
      extends: [
        "eslint:recommended",
        "plugin:vue/strongly-recommended",
        "plugin:@intlify/vue-i18n/recommended",
      ],
      rules: {
        "no-unused-vars": "warn",
        "vue/no-unused-vars": "off",
        "vue/multi-word-component-names": "off",
        "vue/attribute-hyphenation": "error",
        "vue/v-slot-style": "error",
        "@intlify/vue-i18n/key-format-style": [
          "error",
          "snake_case",
          {
            splitByDots: false,
          },
        ],
        // "@intlify/vue-i18n/no-unused-keys": ["warn", {}],
        "@intlify/vue-i18n/no-raw-text": [
          "error",
          {
            ignoreNodes: ["v-icon"],
            ignorePattern: "^[-–—·#:()\\[\\]&\\.\\s]+$",
          },
        ],
        "@intlify/vue-i18n/no-deprecated-tc": "off",
        // Fixes for prettier (avoid eslint-config-prettier)
        // The following rules can be used in some cases. See the README for more
        // information. (These are marked with `0` instead of `"off"` so that a
        // script can distinguish them.)
        curly: 0,
        "lines-around-comment": 0,
        "max-len": 0,
        "no-confusing-arrow": 0,
        "no-mixed-operators": 0,
        "no-tabs": 0,
        "no-unexpected-multiline": 0,
        quotes: 0,
        "@typescript-eslint/quotes": 0,
        "babel/quotes": 0,
        "vue/html-self-closing": 0,
        "vue/max-len": 0,

        // The rest are rules that you never need to enable when using Prettier.
        "array-bracket-newline": "off",
        "array-bracket-spacing": "off",
        "array-element-newline": "off",
        "arrow-parens": "off",
        "arrow-spacing": "off",
        "block-spacing": "off",
        "brace-style": "off",
        "comma-dangle": "off",
        "comma-spacing": "off",
        "comma-style": "off",
        "computed-property-spacing": "off",
        "dot-location": "off",
        "eol-last": "off",
        "func-call-spacing": "off",
        "function-call-argument-newline": "off",
        "function-paren-newline": "off",
        "generator-star": "off",
        "generator-star-spacing": "off",