Skip to content

Commit

Permalink
chore: add new rules to eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed Apr 28, 2022
1 parent 063d649 commit 8584201
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules
*.log
*~
4 changes: 4 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ parserOptions:
ecmaVersion: 13
rules:
no-console: "error"
consistent-return: "error"
no-trailing-spaces: "warn"
no-whitespace-before-property: "warn"
no-multiple-empty-lines: ["warn", { max: 1 }]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
},
"scripts": {
"start": "node server.js",
"lint": "./node_modules/.bin/eslint server.js lib/**",
"lint": "./node_modules/.bin/eslint ./",
"lint:file": "./node_modules/.bin/eslint",
"nodemon-start": "node_modules/nodemon/bin/nodemon.js server.js",
"postinstall": "cd node_modules/sip.js/src/Grammar && mkdir -p dist && pegjs --extra-options-file peg.json src/Grammar.pegjs dist/Grammar.js"
Expand Down

0 comments on commit 8584201

Please sign in to comment.