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"
|
"prettier"
|
||||||
],
|
],
|
||||||
"rules": {
|
"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
|
* index.js
|
||||||
*
|
*
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
// expressOptions.js
|
||||||
module.exports = {
|
module.exports = {
|
||||||
dotfiles: 'ignore',
|
dotfiles: 'ignore',
|
||||||
etag: false,
|
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
|
// socket.js
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* jshint esversion: 6, asi: true, node: true */
|
|
||||||
// util.js
|
// util.js
|
||||||
|
|
||||||
// private
|
// private
|
||||||
|
|
Loading…
Reference in a new issue