Created
January 15, 2021 17:20
-
-
Save markhilton/3054e332b860e1f0ef8cb2fb810be469 to your computer and use it in GitHub Desktop.
ESlint rules for VUE CLI projects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"globals": { | |
"dataLayer": "writable" | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:vue/recommended" | |
], | |
"rules": { | |
"vue/max-attributes-per-line": [ | |
"error", | |
{ | |
"singleline": 1, | |
"multiline": { | |
"max": 1, | |
"allowFirstLine": false | |
} | |
} | |
], | |
"no-console": [ | |
"error", | |
{ | |
"allow": [ | |
"log", | |
"error", | |
"warn" | |
] | |
} | |
], | |
"comma-dangle": [ | |
"error", | |
"always-multiline" | |
], | |
"arrow-parens": [ | |
"error", | |
"as-needed" | |
], | |
"no-debugger": "off", | |
"vue/no-v-html": false, | |
"vue/require-prop-types": false, | |
"vue/require-default-prop": false | |
}, | |
"parser": "vue-eslint-parser", | |
"parserOptions": { | |
"parser": "babel-eslint", | |
"sourceType": "module", | |
"ecmaVersion": 2018, | |
"ecmaFeatures": { | |
"globalReturn": false, | |
"impliedStrict": false, | |
"jsx": false | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment