chore: move linting exceptions to .eslintrc.json
This commit is contained in:
parent
b05c15c25e
commit
039e1cfc62
5 changed files with 4 additions and 8 deletions
|
@ -19,6 +19,8 @@
|
|||
"prettier"
|
||||
],
|
||||
"rules": {
|
||||
"prettier/prettier": ["error"]
|
||||
"prettier/prettier": ["error"],
|
||||
"no-unused-expressions": ["error", { "allowShortCircuit": true, "allowTernary": true }],
|
||||
"no-console": ["error", { "allow": ["warn", "error"] }]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
|
||||
/* jshint esversion: 6, asi: true, node: true */
|
||||
/*
|
||||
* index.js
|
||||
*
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
// expressOptions.js
|
||||
module.exports = {
|
||||
dotfiles: 'ignore',
|
||||
etag: false,
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
/* eslint-disable complexity */
|
||||
/* eslint no-unused-expressions: ["error", { "allowShortCircuit": true, "allowTernary": true }],
|
||||
no-console: ["error", { allow: ["warn", "error"] }] */
|
||||
/* jshint esversion: 6, asi: true, node: true */
|
||||
// socket.js
|
||||
|
||||
// private
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
/* jshint esversion: 6, asi: true, node: true */
|
||||
// util.js
|
||||
|
||||
// private
|
||||
|
|
Loading…
Reference in a new issue