Skip to content

Commit 2dbb241

Browse files
committed
Linting fixes
1 parent 471f96b commit 2dbb241

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,16 @@ DIST = dist
77
LIB = $(DIST)/react-draggable.js
88
MIN = $(DIST)/react-draggable.min.js
99

10-
.PHONY: test dev build clean
10+
.PHONY: test dev lint build clean
1111

1212
clean:
1313
rm -rf dist
1414

15+
lint:
16+
# FIXME this is usually global
17+
flow check
18+
@$(BIN)/eslint lib/* lib/utils/* specs/*
19+
1520
build: $(LIB) $(MIN)
1621

1722
# Allows usage of `make install`, `make link`

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"test-debug": "karma start --browsers=Chrome --single-run=false",
1010
"dev": "make dev",
1111
"build": "make clean build",
12-
"lint": "eslint lib/* lib/utils/* specs/*"
12+
"lint": "make lint"
1313
},
1414
"repository": {
1515
"type": "git",
@@ -63,4 +63,4 @@
6363
"dependencies": {
6464
"classnames": "^2.2.0"
6565
}
66-
}
66+
}

script/build-watch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ function finish {
66
kill $SERVER_PID
77
}
88

9+
make clean
910
DRAGGABLE_DEBUG=true webpack --watch --devtool inline-source-map &
1011
WEBPACK_PID=$!
1112

0 commit comments

Comments
 (0)