Skip to content

Commit

Permalink
Add the additional rules for mocha and vue into eslint.
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzhausen committed Aug 19, 2019
1 parent fe46460 commit 3d6c42a
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
"eslint:recommended",
],
"rules": {
"quote-props": ["warn","consistent-as-needed"],
"quote-props": ["warn", "consistent-as-needed"],
"arrow-parens": 0,
"generator-star-spacing": 0,
"no-debugger": 0,
Expand Down
16 changes: 16 additions & 0 deletions mocha.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
"root": true,
"env": {
"es6": true,
"mocha": true
},
"extends": [
"eslint:recommended",
],
"plugins": [
"mocha"
],
"rules": {
"mocha/no-exclusive-tests": "error",
}
}
5 changes: 5 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions vue.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
module.exports = {
"root": true,
"env": {
"es6": true,
"browser": true,
"node": true,
},
"extends": [
"eslint:recommended",
],
"rules": {
"vue/html-self-closing": [
"error",
{
"html": {
"void": "never",
"normal": "never",
"component": "never"
},
"svg": "never",
"math": "never"
}
],
"vue/max-attributes-per-line": 0,
"vue/html-indent": [
2,
4
],
"vue/no-v-html": "warn"

}
}

0 comments on commit 3d6c42a

Please sign in to comment.