Skip to content

Commit

Permalink
Merge branch 'master' of github.com:Superbalist/eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
mholtzhausen committed Aug 19, 2019
2 parents d5cb6de + a90a497 commit ba9d345
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 1 deletion.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ module.exports={
]
}
```

For additional support, one could add more sections to the `extends` array. Sections supported:

- `eslint-config-superbalist/index.js` Standard JavaScript / ES6 support
- `eslint-config-superbalist/vue.js` VueJs project support
- `eslint-config-superbalist/mocha.js` Mocha project support

_**These are only starting points and you will need to specify any additional properties dierctly in your eslintrc.json
file at project level**_
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 ba9d345

Please sign in to comment.