Skip to content
This repository was archived by the owner on Oct 26, 2018. It is now read-only.

Commit 13447b0

Browse files
committed
Make sure we're linting always and on examples.
Style matters!
1 parent 0bd240d commit 13447b0

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
examples/*/node_modules/
2+
examples/*/dist/

.eslintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
{
2-
"extends": "rackt"
2+
"extends": "rackt",
3+
"rules": {
4+
"react/jsx-uses-react": 1,
5+
"react/jsx-no-undef": 2,
6+
"react/wrap-multilines": 2
7+
},
8+
"plugins": [
9+
"react"
10+
]
311
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@
1616
"license": "MIT",
1717
"scripts": {
1818
"build": "mkdir -p lib && babel ./src/index.js --out-file ./lib/index.js",
19-
"lint": "eslint src test",
20-
"test": "npm run test:node && npm run test:browser",
19+
"lint": "eslint examples src test",
20+
"test": "npm run lint && npm run test:node && npm run test:browser",
2121
"test:node": "mocha --compilers js:babel-core/register --recursive ./test/node",
2222
"test:browser": "karma start",
2323
"test:cov": "npm run test:cov:browser && npm run test:cov:node && npm run test:cov:report",
@@ -44,6 +44,7 @@
4444
"babel-preset-stage-2": "^6.3.13",
4545
"eslint": "^1.10.3",
4646
"eslint-config-rackt": "^1.1.1",
47+
"eslint-plugin-react": "^3.15.0",
4748
"expect": "^1.13.0",
4849
"history": "^1.14.0",
4950
"isparta": "^4.0.0",

0 commit comments

Comments
 (0)