Skip to content

Commit 903f520

Browse files
committed
Fixup linting (small project)
1 parent bfa9311 commit 903f520

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.eslintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"parser": "babel-eslint",
3+
"plugins": [
4+
"react"
5+
],
36
"rules": {
47
"strict": 0,
58
"quotes": [1, "single"],

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test": "make test",
88
"dev": "make dev",
99
"build": "make clean build",
10-
"commitLint": "eslint `git diff --cached --diff-filter=ACMRTUXB --name-only HEAD | egrep '\\.es6$'`"
10+
"lint": "eslint lib/* lib/utils/* specs/*"
1111
},
1212
"repository": {
1313
"type": "git",
@@ -29,6 +29,7 @@
2929
"babel-eslint": "^4.1.3",
3030
"babel-loader": "^5.3.2",
3131
"eslint": "^1.5.1",
32+
"eslint-plugin-react": "^3.4.2",
3233
"karma": "^0.13.10",
3334
"karma-cli": "0.1.1",
3435
"karma-firefox-launcher": "^0.1.6",
@@ -47,7 +48,7 @@
4748
"webpack-dev-server": "^1.12.0"
4849
},
4950
"precommit": [
50-
"commitLint",
51+
"lint",
5152
"test"
5253
],
5354
"dependencies": {

0 commit comments

Comments
 (0)