aboutsummaryrefslogtreecommitdiff
path: root/viewer/.eslintrc.js
blob: 9d3fbbc9c2e05d144ac1bc9f2a5412a7f93594d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
module.exports = {
  root: true,

  env: {
    node: true,
  },

  plugins: ["prettier"],

  extends: ["plugin:vue/essential", "plugin:prettier/recommended", "@vue/typescript"],

  rules: {
    "no-console": "off",
    "no-debugger": process.env.NODE_ENV === "production" ? "error" : "off",
    "prettier/prettier": "warn",
    "eol-last": ["warn", "always"],
    "object-curly-spacing": ["warn", "always"],
    "quote-props": ["warn", "as-needed"],
    indent: ["warn", 2, { SwitchCase: 1 }],
    quotes: ["warn", "double"],
    "vue/attribute-hyphenation": "warn",
    "vue/html-closing-bracket-spacing": "warn",
    "vue/html-end-tags": "error",
    "vue/html-quotes": "warn",
    "vue/html-self-closing": "off",
    "vue/no-multi-spaces": "warn",
    "vue/no-spaces-around-equal-signs-in-attribute": "warn",
    "vue/no-template-shadow": "error",
    "vue/v-bind-style": "warn",
    "vue/v-on-style": "warn",
    "vue/attributes-order": "warn",
    "vue/this-in-template": "warn",
  },

  parserOptions: {
    sourceType: "module",
    parser: "@typescript-eslint/parser",
  },
};