Skip to content

Commit 98fd96f

Browse files
committed
chore: lint
1 parent 284f5af commit 98fd96f

File tree

6 files changed

+13
-20
lines changed

6 files changed

+13
-20
lines changed

server/.eslintrc.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

server/.npmignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
madrun.js
22

3+
.*
4+
yarn-error.log
5+
coverage
6+
*.config.*

server/.putout.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"rules": {
33
"remove-console": "off",
4-
"remove-unused-variables": "off"
4+
"variables/remove-unused": "off"
55
}
6-
}
6+
}

server/eslint.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
'use strict';
2+
3+
const {safeAlign} = require('eslint-plugin-putout');
4+
5+
module.exports = safeAlign;

server/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ if (process.env.STATIC)
2525
app.use(express.static(join(__dirname, process.env.STATIC)));
2626

2727
// `next` is needed here to mark this as an error handler
28-
// eslint-disable-next-line no-unused-vars
29-
app.use((err, req, res) => {
28+
app.use((err, req, res, next) => {
3029
console.error(new Date().toLocaleString(), err);
3130

3231
if (err.response) {

server/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "putout-editor-server",
33
"version": "1.0.0",
4+
"type": "commonjs",
45
"main": "index.js",
56
"private": true,
67
"dependencies": {

0 commit comments

Comments
 (0)