.eslintrc 1.3 KB
{
    "env": {
        "es6": true,
        "node": true,
    },
    "extends": [
        "plugin:vue/recommended",
        "eslint:recommended",
        "prettier/vue",
        "plugin:prettier/recommended"
    ],
    "parserOptions": {
        "sourceType": "module",
        "ecmaVersion": 2018,
        "parser": "babel-eslint"
    },
    "rules": {
        "vue/require-prop-types": "off",
        "vue/require-default-prop": "off",
        "vue/max-attributes-per-line": "off",
        "no-multiple-empty-lines": ["error", {
            "max": 1
        }],
        "object-shorthand": ["error"],
        "eqeqeq": ["error", "smart"],
        "no-var": ["error"],
        "prefer-const": ["error"],
        "prefer-object-spread": "error",
        // "lines-between-class-members": ["error", "never"],
        // "vue/max-attributes-per-line": ["error", {
        //     "singleline": 20,
        //     "multiline": {
        //         "max": 1,
        //         "allowFirstLine": false
        //     }
        // }],
        // "indent": ["error", 2]
        "prettier/prettier": [
            "error",
            {
                "trailingComma": "es5",
                "singleQuote": true,
                "printWidth": 120,
                "indent": 2,
                "tabWidth": 2
            }
        ],
    }
}