chore: move linting exceptions to .eslintrc.json

This commit is contained in:
Bill Church 2021-05-20 12:41:43 -04:00
parent b05c15c25e
commit 039e1cfc62
5 changed files with 4 additions and 8 deletions

View file

@ -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"] }]
} }
} }

View file

@ -1,5 +1,3 @@
/* eslint no-console: ["error", { allow: ["warn", "error"] }] */
/* jshint esversion: 6, asi: true, node: true */
/* /*
* index.js * index.js
* *

View file

@ -1,3 +1,4 @@
// expressOptions.js
module.exports = { module.exports = {
dotfiles: 'ignore', dotfiles: 'ignore',
etag: false, etag: false,

View file

@ -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

View file

@ -1,4 +1,3 @@
/* jshint esversion: 6, asi: true, node: true */
// util.js // util.js
// private // private