Skip to content

Commit 9283e49

Browse files
committed
chore(console) lint
1 parent af3671b commit 9283e49

9 files changed

+117
-115
lines changed

.madrun.js .madrun.mjs

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
'use strict';
1+
import {run} from 'madrun';
22

3-
const {run} = require('madrun');
4-
5-
module.exports = {
3+
export default {
64
'start': () => 'node bin/console',
75
'start:dev': () => 'NODE_ENV=development npm start',
86
'build-progress': () => 'webpack --progress',
97
'build:client': () => run('build-progress', '--mode production'),
10-
'build:client:dev': () => `NODE_ENV=development ${run('build-progress', '--mode development')}`,
8+
'build:client:dev': async () => `NODE_ENV=development ${await run('build-progress', '--mode development')}`,
119
'build:start': () => run(['build:client', 'start']),
1210
'build:start:dev': () => run(['build:client:dev', 'start:dev']),
1311
'build': () => run('build:client*'),
@@ -16,7 +14,9 @@ module.exports = {
1614
'watch:lint': () => run('watcher', '\'npm run lint\''),
1715
'watch:client': () => run('build:client', '--watch'),
1816
'watch:client:dev': () => run('build:client:dev', '--watch'),
19-
'lint': () => 'putout client server *.js *.md {.,json}/*.json',
17+
'lint': () => 'putout .',
18+
'fresh:lint': () => run('lint', '--fresh'),
19+
'lint:fresh': () => run('lint', '--fresh'),
2020
'fix:lint': () => run('lint', '--fix'),
2121
};
2222

.putout.json

+5-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
{
22
"match": {
33
"(bin|client/console.js)": {
4-
"remove-console": false
4+
"remove-console": "off"
55
}
6-
}
6+
},
7+
"ignore": [
8+
"modules"
9+
]
710
}

.stylelintrc.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
rules:
2+
block-no-empty: null

.travis.yml

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
language: node_js
22
node_js:
3-
- 14
4-
- 12
5-
3+
- 15
4+
- 14
65
cache: false
7-
86
script:
97
- npm run lint
10-
118
notifications:
12-
email:
13-
on_success: never
14-
on_failure: change
15-
9+
email:
10+
on_success: never
11+
on_failure: change

bower.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
{
2-
"name": "console-io",
3-
"homepage": "https://github.com/cloudcmd/console",
4-
"authors": [
5-
"coderaiser <[email protected]>"
6-
],
7-
"description": "web console",
8-
"license": "MIT",
9-
"private": true,
10-
"ignore": [
11-
"node_modules",
12-
"modules"
13-
],
14-
"dependencies": {
15-
"jq-console": "~2.13.2",
16-
"jquery": "^3.4.0"
17-
}
2+
"name": "console-io",
3+
"homepage": "https://github.com/cloudcmd/console",
4+
"authors": [
5+
"coderaiser <[email protected]>"
6+
],
7+
"description": "web console",
8+
"license": "MIT",
9+
"private": true,
10+
"ignore": [
11+
"node_modules",
12+
"modules"
13+
],
14+
"dependencies": {
15+
"jq-console": "~2.13.2",
16+
"jquery": "^3.4.0"
17+
}
1818
}

client/spawn.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ function SpawnProto(jqconsole, options) {
6363
} = options;
6464

6565
socket = io.connect(href + prefixSocket, {
66-
'max reconnection attempts' : 2 ** 32,
67-
'reconnection limit' : FIVE_SECONDS,
66+
'max reconnection attempts': 2 ** 32,
67+
'reconnection limit': FIVE_SECONDS,
6868
'path': socketPath + '/socket.io',
6969
'transportOptions': {
7070
polling: {

css/ansi.css

+68-68
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,84 @@
11
.jqconsole-ansi-bold {
2-
/* font-weight: bold; */
2+
/* font-weight: bold; */
33
}
44

55
.jqconsole-ansi-lighter {
6-
font-weight: lighter;
6+
font-weight: lighter;
77
}
88

99
.jqconsole-ansi-italic {
10-
font-style: italic;
10+
font-style: italic;
1111
}
1212

1313
.jqconsole-ansi-underline {
14-
text-decoration: underline;
14+
text-decoration: underline;
1515
}
1616

17-
@-webkit-keyframes blinker {
18-
from { opacity: 1.0; }
19-
to { opacity: 0.0; }
17+
@-webkit-keyframes blinker {
18+
from { opacity: 1.0; }
19+
to { opacity: 0.0; }
2020
}
2121

22-
@-moz-keyframes blinker {
23-
from { opacity: 1.0; }
24-
to { opacity: 0.0; }
22+
@-moz-keyframes blinker {
23+
from { opacity: 1.0; }
24+
to { opacity: 0.0; }
2525
}
2626

27-
@-ms-keyframes blinker {
28-
from { opacity: 1.0; }
29-
to { opacity: 0.0; }
27+
@-ms-keyframes blinker {
28+
from { opacity: 1.0; }
29+
to { opacity: 0.0; }
3030
}
3131

32-
@-o-keyframes blinker {
33-
from { opacity: 1.0; }
34-
to { opacity: 0.0; }
32+
@-o-keyframes blinker {
33+
from { opacity: 1.0; }
34+
to { opacity: 0.0; }
3535
}
3636

3737
.jqconsole-ansi-blink {
38-
-webkit-animation-duration: 1s;
39-
-moz-animation-duration: 1s;
40-
-ms-animation-duration: 1s;
41-
-o-animation-duration: 1s;
42-
-webkit-animation-iteration-count: infinite;
43-
-moz-animation-iteration-count: infinite;
44-
-ms-animation-iteration-count: infinite;
45-
-o-animation-iteration-count: infinite;
46-
-webkit-animation-name: blinker;
47-
-moz-animation-name: blinker;
48-
-ms-animation-name: blinker;
49-
-o-animation-name: blinker;
50-
-webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
51-
-moz-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
52-
-ms-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
53-
-o-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
38+
-webkit-animation-duration: 1s;
39+
-moz-animation-duration: 1s;
40+
-ms-animation-duration: 1s;
41+
-o-animation-duration: 1s;
42+
-webkit-animation-iteration-count: infinite;
43+
-moz-animation-iteration-count: infinite;
44+
-ms-animation-iteration-count: infinite;
45+
-o-animation-iteration-count: infinite;
46+
-webkit-animation-name: blinker;
47+
-moz-animation-name: blinker;
48+
-ms-animation-name: blinker;
49+
-o-animation-name: blinker;
50+
-webkit-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
51+
-moz-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
52+
-ms-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
53+
-o-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
5454
}
5555

5656
.jqconsole-ansi-blink-rapid {
57-
-webkit-animation-duration: 0.5s;
58-
-moz-animation-duration: 0.5s;
59-
-ms-animation-duration: 0.5s;
60-
-o-animation-duration: 0.5s;
61-
-webkit-animation-iteration-count: infinite;
62-
-moz-animation-iteration-count: infinite;
63-
-ms-animation-iteration-count: infinite;
64-
-o-animation-iteration-count: infinite;
65-
-webkit-animation-name: blinker;
66-
-moz-animation-name: blinker;
67-
-ms-animation-name: blinker;
68-
-o-animation-name: blinker;
69-
-webkit-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
70-
-moz-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
71-
-ms-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
72-
-o-animation-timing-function: cubic-bezier(1.0,0,0,1.0);
57+
-webkit-animation-duration: 0.5s;
58+
-moz-animation-duration: 0.5s;
59+
-ms-animation-duration: 0.5s;
60+
-o-animation-duration: 0.5s;
61+
-webkit-animation-iteration-count: infinite;
62+
-moz-animation-iteration-count: infinite;
63+
-ms-animation-iteration-count: infinite;
64+
-o-animation-iteration-count: infinite;
65+
-webkit-animation-name: blinker;
66+
-moz-animation-name: blinker;
67+
-ms-animation-name: blinker;
68+
-o-animation-name: blinker;
69+
-webkit-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
70+
-moz-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
71+
-ms-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
72+
-o-animation-timing-function: cubic-bezier(1.0, 0, 0, 1.0);
7373
}
7474

7575

7676
.jqconsole-ansi-hidden {
77-
visibility:hidden;
77+
visibility: hidden;
7878
}
7979

8080
.jqconsole-ansi-line-through {
81-
text-decoration: line-through;
81+
text-decoration: line-through;
8282
}
8383

8484
.jqconsole-ansi-fonts-1 {
@@ -114,59 +114,59 @@
114114
}
115115

116116
.jqconsole-ansi-color-black {
117-
color: black;
117+
color: black;
118118
}
119119
.jqconsole-ansi-color-red {
120-
color: red;
120+
color: red;
121121
}
122122
.jqconsole-ansi-color-green {
123-
color: green;
123+
color: green;
124124
}
125125
.jqconsole-ansi-color-yellow {
126-
color: yellow;
126+
color: yellow;
127127
}
128128
.jqconsole-ansi-color-blue {
129-
color: rgb(49,123,249);
129+
color: rgb(49, 123, 249);
130130
}
131131
.jqconsole-ansi-color-magenta {
132-
color: magenta;
132+
color: magenta;
133133
}
134134
.jqconsole-ansi-color-cyan {
135-
color: cyan;
135+
color: cyan;
136136
}
137137
.jqconsole-ansi-color-white {
138-
color: white;
138+
color: white;
139139
}
140140

141141
.jqconsole-ansi-background-color-black {
142-
background-color: black;
142+
background-color: black;
143143
}
144144
.jqconsole-ansi-background-color-red {
145-
background-color: red;
145+
background-color: red;
146146
}
147147
.jqconsole-ansi-background-color-green {
148-
background-color: green;
148+
background-color: green;
149149
}
150150
.jqconsole-ansi-background-color-yellow {
151-
background-color: yellow;
151+
background-color: yellow;
152152
}
153153
.jqconsole-ansi-background-color-blue {
154-
background-color: blue;
154+
background-color: blue;
155155
}
156156
.jqconsole-ansi-background-color-magenta {
157-
background-color: magenta;
157+
background-color: magenta;
158158
}
159159
.jqconsole-ansi-background-color-cyan {
160-
background-color: cyan;
160+
background-color: cyan;
161161
}
162162
.jqconsole-ansi-background-color-white {
163-
background-color: white;
163+
background-color: white;
164164
}
165165

166166
.jqconsole-ansi-framed {
167-
border: 1px solid;
167+
border: 1px solid;
168168
}
169169
.jqconsole-ansi-overline {
170-
text-decoration: overline;
170+
text-decoration: overline;
171171
}
172172

css/console.css

+5-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
color: crimson;
33
}
44

5-
.log-msg{
5+
.log-msg {
66
color: #444;
77
}
88

@@ -17,7 +17,7 @@
1717
}
1818

1919
.error-msg, .log-msg, .jqconsole-prompt, .jqconsole-old-prompt {
20-
font : 16px "Droid Sans Mono", "Ubuntu Mono", "Consolas", monospace;
20+
font : 16px 'Droid Sans Mono', 'Ubuntu Mono', 'Consolas', monospace;
2121
}
2222

2323
.jqconsole {
@@ -47,11 +47,11 @@
4747
}
4848

4949
.brace {
50-
color: #00FFFF;
50+
color: #0ff;
5151
}
5252
.paran {
53-
color: #FF00FF;
53+
color: #f0f;
5454
}
5555
.bracket {
56-
color: #FFFF00;
56+
color: #ff0;
5757
}

css/style.css

+8-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
@font-face {
2-
font-family : 'Droid Sans Mono';
2+
font-family : 'Droid Sans Mono';
33
src : url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot);
4-
src : local('Droid Sans Mono'),
5-
local('DroidSansMono'),
6-
url(/font/DroidSansMono.eot) format('embedded-opentype'),
7-
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot?#iefix) format('embedded-opentype'),
4+
src :
5+
local('Droid Sans Mono'),
6+
local('DroidSansMono'),
7+
url(/font/DroidSansMono.eot) format('embedded-opentype'),
8+
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot?#iefix) format('embedded-opentype'),
89
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJTwtzT4qNq-faudv5qbO9-U.eot) format('embedded-opentype'),
910
url(/font/DroidSansMono.woff2) format('woff2'),
10-
url(/font/DroidSansMono.woff) format('woff'),
11-
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff) format('woff'),
11+
url(/font/DroidSansMono.woff) format('woff'),
12+
url(https://themes.googleusercontent.com/static/fonts/droidsansmono/v5/ns-m2xQYezAtqh7ai59hJUYuTAAIFFn5GTWtryCmBQ4.woff) format('woff'),
1213
local('Consolas');
1314
font-style : normal;
1415
font-weight : 400;

0 commit comments

Comments
 (0)