Skip to content

Commit 7547e4e

Browse files
authored
re-enable standardjs as linting tool
* rollback to standard vs rome
1 parent d3c7006 commit 7547e4e

File tree

4 files changed

+4
-24
lines changed

4 files changed

+4
-24
lines changed

.github/workflows/tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
run: npm install
1616

1717
- name: Linting
18-
run: npm run lint
18+
run: npx standard
1919

2020
- name: Run tests
2121
run: npm run test

lib/next.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
function next(middlewares, req, res, index, routers, defaultRoute, errorHandler) {
1+
function next (middlewares, req, res, index, routers, defaultRoute, errorHandler) {
22
routers = routers || {}
33

44
const middleware = middlewares[index]
@@ -10,7 +10,7 @@ function next(middlewares, req, res, index, routers, defaultRoute, errorHandler)
1010
return
1111
}
1212

13-
function step(err) {
13+
function step (err) {
1414
if (err) {
1515
return errorHandler(err, req, res)
1616
} else {

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"description": "Cero friction HTTP request router. The need for speed!",
55
"main": "index.js",
66
"scripts": {
7-
"lint": "npx rome ci . --semicolons=as-needed",
8-
"format": "npx rome format . --semicolons=as-needed --write",
7+
"format": "npx standard --fix",
98
"test": "cross-env PORT=3000 NODE_ENV=testing npx nyc --check-coverage --lines 85 node ./node_modules/mocha/bin/mocha tests/*.test.js"
109
},
1110
"repository": {

rome.json

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

0 commit comments

Comments
 (0)