Skip to content

Commit d32a35d

Browse files
committed
chore: lint
1 parent bea8ef7 commit d32a35d

7 files changed

Lines changed: 26 additions & 24 deletions

File tree

.gitignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
*.swp
2+
*.log
3+
*.lock
4+
5+
.nyc_output
6+
.idea
7+
18
package-lock.json
9+
210
node_modules
3-
npm-debug.log
4-
.nyc_output
5-
yarn-error.log
611
coverage
7-
812
dist
913
dist-dev
10-
11-
*.swp
12-
13-
.idea

.madrun.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ export default {
2323
'wisdom': () => run('build'),
2424
'build': () => run('6to5:*'),
2525
'build:start': () => run(['build:client', 'start']),
26-
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
26+
'build:start:dev': () => run([
27+
'build:client:dev',
28+
'start:dev',
29+
]),
2730
'build:client': () => run('6to5:client'),
2831
'build:client:dev': () => run('6to5:client:dev'),
2932
'watch:lint': async () => `nodemon -w client -w server -w webpack.config.js -x ${await run('lint')}`,

.npmignore

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
*.swp
2+
*.config.*
3+
*.log
4+
*.loc
5+
16
.*
27

38
webpack.config.js
9+
410
client
511
test
6-
yarn-error.log
712
coverage
8-
913
img
10-
11-
*.swp
12-
13-
*.config.*

.nycrc.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
"check-coverage": true,
33
"all": true,
44
"exclude": [
5-
"bin",
6-
"coverage",
7-
"*.js",
8-
"dist**",
95
"**/*.spec.js",
6+
"**/*.config.*",
107
"**/fixture",
11-
"test",
8+
"*.js",
129
".*.{js,mjs}",
13-
"**/*.config.*"
10+
"bin",
11+
"coverage",
12+
"dist**",
13+
"test"
1414
],
1515
"branches": 100,
1616
"lines": 100,

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ And use it this way:
109109
// server.js
110110
import http from 'node:http';
111111
import {gritty} from 'gritty';
112-
113112
import express from 'express';
114113
import {Server} from 'socket.io';
115114

server/gritty.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ export function gritty(options = {}) {
5757

5858
return router;
5959
};
60-
6160
function _terminalFn(options, req, res, next) {
6261
const {prefix = '/gritty'} = options;
6362

@@ -88,6 +87,7 @@ function createTerminal(overrides = {}) {
8887
} = overrides;
8988

9089
const [cmd, ...args] = stringArgv(command);
90+
9191
const term = pty.spawn(cmd, args, {
9292
name: 'xterm-color',
9393
cols,

webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const rules = clean([
1919
test: /\.js$/,
2020
exclude: /node_modules/,
2121
loader: 'babel-loader',
22-
},{
22+
}, {
2323
test: /\.css$/,
2424
use: [
2525
'style-loader',

0 commit comments

Comments
 (0)