Skip to content
This repository was archived by the owner on Feb 19, 2020. It is now read-only.

Commit fe48bd6

Browse files
committed
Fix linters
1 parent ee1b86c commit fe48bd6

File tree

14 files changed

+1779
-121
lines changed

14 files changed

+1779
-121
lines changed

.buddyrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@
1212
418
1313
],
1414
"reporter": "simple"
15-
}
15+
}
File renamed without changes.

.eslintrc.json

Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"env": {
3+
"mocha": true,
4+
"node": true
5+
},
6+
"globals": {},
7+
"rules": {
8+
"camelcase": [
9+
2,
10+
{
11+
"properties": "never"
12+
}
13+
],
14+
"curly": [
15+
2,
16+
"all"
17+
],
18+
"eqeqeq": 2,
19+
"wrap-iife": 2,
20+
"indent": [
21+
2,
22+
4,
23+
{
24+
"SwitchCase": 1
25+
}
26+
],
27+
"no-use-before-define": [
28+
2,
29+
{
30+
"functions": false
31+
}
32+
],
33+
"new-cap": 2,
34+
"no-caller": 2,
35+
"no-empty": [
36+
2,
37+
{
38+
"allowEmptyCatch": true
39+
}
40+
],
41+
"no-irregular-whitespace": 2,
42+
"no-new": 2,
43+
"quotes": [
44+
2,
45+
"single"
46+
],
47+
"no-undef": 2,
48+
"no-unused-vars": 2,
49+
"strict": [
50+
2,
51+
"function"
52+
],
53+
"no-eq-null": 2,
54+
"keyword-spacing": [
55+
2,
56+
{}
57+
],
58+
"space-before-blocks": [
59+
2,
60+
"always"
61+
],
62+
"space-before-function-paren": [
63+
2,
64+
{
65+
"anonymous": "ignore",
66+
"named": "never"
67+
}
68+
],
69+
"array-bracket-spacing": [
70+
2,
71+
"never",
72+
{}
73+
],
74+
"space-in-parens": [
75+
2,
76+
"never"
77+
],
78+
"quote-props": [
79+
2,
80+
"as-needed"
81+
],
82+
"no-underscore-dangle": 2,
83+
"key-spacing": [
84+
2,
85+
{
86+
"beforeColon": false,
87+
"afterColon": true
88+
}
89+
],
90+
"comma-style": [
91+
2,
92+
"last"
93+
],
94+
"space-unary-ops": [
95+
2,
96+
{
97+
"words": false,
98+
"nonwords": false
99+
}
100+
],
101+
"space-infix-ops": 2,
102+
"no-with": 2,
103+
"no-multiple-empty-lines": 2,
104+
"no-mixed-spaces-and-tabs": 2,
105+
"no-trailing-spaces": 2,
106+
"comma-dangle": [
107+
2,
108+
"never"
109+
],
110+
"brace-style": [
111+
2,
112+
"1tbs",
113+
{
114+
"allowSingleLine": true
115+
}
116+
],
117+
"dot-notation": 2,
118+
"yoda": [
119+
2,
120+
"never"
121+
]
122+
}
123+
}

.jscsrc

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

.jshintrc

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

.jsinspectrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
"color": true,
66
"ignore": "node_modules|coverage|reports",
77
"reporter": "json"
8-
}
8+
}

appveyor.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@ version: "{build}"
77
# What combinations to test
88
environment:
99
matrix:
10-
# node.js
11-
- nodejs_version: "0.10"
12-
- nodejs_version: "0.11"
13-
- nodejs_version: "0.12"
1410
- nodejs_version: 4
11+
- nodejs_version: 5
12+
- nodejs_version: 6
13+
- nodejs_version: 7
1514

1615
install:
1716
# Get the latest stable version of Node.js

circle.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
test:
22
override:
3-
- nvm install 0.10.33 && npm test
4-
- nvm install 0.11.14 && npm test
5-
- nvm install 0.12.0 && npm test
6-
- nvm install 4.0.0 && npm test
3+
- nvm install 0.10.48 && npm run test-only
4+
- nvm install 0.11.16 && npm run test-only
5+
- nvm install 0.12.18 && npm run test-only
6+
- nvm install 4.7.2 && npm run test
7+
- nvm install 5.12.0 && npm run test
8+
- nvm install 6.9.4 && npm run test
9+
- nvm install 7.4.0 && npm run test
710
post:
811
- chmod +x ./bin/codacy-coverage.js && cat ./coverage/lcov.info | node ./bin/codacy-coverage.js
9-

lib/reporter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
json: data,
5555
headers: {
5656
// jscs:disable
57-
'project_token': token
57+
project_token: token
5858
// jscs:enable
5959
},
6060
resolveWithFullResponse: true

lib/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@
1111
}
1212
};
1313

14-
})();
14+
}());

0 commit comments

Comments
 (0)