Skip to content

Commit 5c37db7

Browse files
committed
Fix package
1 parent c46291e commit 5c37db7

File tree

3 files changed

+57
-1
lines changed

3 files changed

+57
-1
lines changed

.eslintrc.json

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
3+
"env": {
4+
"node": true,
5+
"es6": true,
6+
"commonjs": true
7+
},
8+
9+
"extends": "eslint:recommended",
10+
11+
"parserOptions": {
12+
"ecmaVersion": 6,
13+
"sourceType": "module"
14+
},
15+
16+
"rules": {
17+
18+
"indent": [
19+
"error",
20+
"tab"
21+
],
22+
23+
"linebreak-style": [
24+
"error",
25+
"unix"
26+
],
27+
28+
"no-useless-escape": [
29+
"warn"
30+
],
31+
32+
"quotes": [
33+
"warn",
34+
"double"
35+
],
36+
37+
"semi": [
38+
"error",
39+
"always"
40+
],
41+
42+
"strict": [
43+
"error",
44+
"safe"
45+
],
46+
47+
"no-unused-vars": [2, {"args": "after-used", "argsIgnorePattern": "^_"}],
48+
49+
"no-console":"off"
50+
}
51+
}

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
"ffi": "*",
1010
"node-gyp": "*",
1111
"ref": "*",
12-
"ref-array": "*"
12+
"ref-array": "*",
13+
"eslint": "^5.6.0"
1314
},
1415
"scripts": {
1516
"prepublish": "",

scripts/setup

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
#Copyright Blake Loring <[email protected]> 2015
22

3+
# Cleaning sources
4+
echo "Cleaning Sources"
5+
$(npm bin)/eslint --fix .eslintrc.json **/src/**.js
6+
37
#Necessary as npm doesnt want to copy .PHONY and bin/
48
if [ -e bin ]; then
59
echo "no bin dir"

0 commit comments

Comments
 (0)