Skip to content

Commit

Permalink
Setup eslint with Semistandard style
Browse files Browse the repository at this point in the history
  • Loading branch information
pl12133 committed Dec 6, 2015
1 parent 1ae3f32 commit e4d6fa9
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"extends": "semistandard",
"parser": "babel-eslint",
"plugins": [
"react"
],
"env": {
"browser": true,
"mocha": true,
"node": true
}
}
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
"main": "index.js",
"scripts": {
"test": "mocha --compilers js:./src/tests/compiler.js ./src/tests/*.spec.js",
"start": "node ./server.js"
"lint": "eslint src",
"start": "node ./server.js",
"prepublish": "npm run lint && npm run test"
},
"keywords": [],
"author": "",
Expand All @@ -28,9 +30,15 @@
"unexpected-react": "^0.3.0"
},
"devDependencies": {
"babel-eslint": "^4.1.6",
"babel-preset-es2015": "^6.1.18",
"babel-preset-react": "^6.1.2",
"css-modules-require-hook": "^2.0.2",
"eslint": "^1.10.3",
"eslint-config-semistandard": "^5.0.0",
"eslint-config-standard": "^4.4.0",
"eslint-plugin-react": "^3.11.3",
"eslint-plugin-standard": "^1.3.1",
"jsdom": "^7.0.2",
"mocha": "^2.3.4",
"react-addons-test-utils": "^0.14.2",
Expand Down

0 comments on commit e4d6fa9

Please sign in to comment.