Skip to content

Commit

Permalink
feat: npmignore && eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
dwb1994 committed Oct 9, 2018
1 parent 8c4620b commit af24350
Show file tree
Hide file tree
Showing 7 changed files with 1,525 additions and 40 deletions.
36 changes: 36 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
{
"env": {
"node": true,
"commonjs": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
"indent": [
"error",
4
],
"comma-dangle": [
"error",
"never"
],
"no-console": [
"off"
],
"spaced-comment": [
2
],
"no-trailing-spaces": [
2
],
"no-spaced-func": 2,
"comma-spacing": 0,
"space-before-blocks": [
0,
"always"
],
"experimentalObjectRestSpread": true
}
}
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
./example
.gitignore
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"eslint.options": {
"configFile": "/Users/qitmac000310/git/qscan/.eslintrc.json"
}
}
2 changes: 1 addition & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ scan.run({
type: 'ide-login-scan'
}, (err) => {
console.log(err);
});
});
Loading

0 comments on commit af24350

Please sign in to comment.