Skip to content
This repository has been archived by the owner on Feb 16, 2021. It is now read-only.

Commit

Permalink
add eslint-config-airbnb
Browse files Browse the repository at this point in the history
  • Loading branch information
gcanti committed Nov 22, 2015
1 parent eb2cfe9 commit 5d6a9f4
Show file tree
Hide file tree
Showing 47 changed files with 1,778 additions and 1,910 deletions.
19 changes: 9 additions & 10 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{
"parser": "babel-eslint",
"extends": "eslint:recommended",
"extends": "eslint-config-airbnb",
"env": {
"browser": true,
"mocha": true,
"node": true
},
"ecmaFeatures": {
"modules": true,
"es6": true,
"jsx": true
},
"rules": {
},
"plugins": [
"react"
]
],
"rules": {
"semi": [2, "never"],
"comma-dangle": 0,
"react/sort-comp": 0,
"react/no-multi-comp": 0,
"react/prop-types": 0
}
}
15 changes: 0 additions & 15 deletions index.js

This file was deleted.

6 changes: 3 additions & 3 deletions karma.conf.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = function (config) {
module.exports = function getConfig(config) {
config.set({
browserNoActivityTimeout: 30000,
browsers: [process.env.CONTINUOUS_INTEGRATION ? 'Firefox' : 'Chrome'],
Expand All @@ -14,5 +14,5 @@ module.exports = function (config) {
]
},
reporters: ['dots']
});
};
})
}
21 changes: 12 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "tcomb-form",
"version": "0.7.7",
"description": "React.js powered UI library for developing forms writing less code",
"main": "index.js",
"main": "lib/main.js",
"scripts": {
"dev": "watchify -t [babelify] dev/client/client.js -o dev/client/bundle.js -v",
"lint": "eslint src",
"dev": "webpack --config=dev/webpack.config.js --watch --progress",
"lint": "eslint src test",
"test": "npm run lint && karma start",
"watch": "rm -rf lib/* && babel src -d lib -w"
},
Expand All @@ -27,19 +27,22 @@
"uvdom-bootstrap": "^0.2.3"
},
"devDependencies": {
"babel": "^5.0.0",
"babel-eslint": "^4.0.0",
"babel": "^5.8.34",
"babel-core": "^5.8.34",
"babel-eslint": "^4.1.5",
"babel-loader": "^5.4.0",
"babelify": "^6.0.0",
"browserify": "^9.0.8",
"eslint": "^1.0.0",
"eslint-plugin-react": "^3.0.0",
"browserify": "^9.0.0",
"eslint": "^1.10.1",
"eslint-config-airbnb": "^1.0.0",
"eslint-plugin-react": "^3.10.0",
"karma": "0.13.9",
"karma-browserify": "4.3.0",
"karma-chrome-launcher": "0.2.0",
"karma-firefox-launcher": "^0.1.4",
"karma-tap": "1.0.3",
"tape": "4.0.0",
"watchify": "^3.4.0"
"webpack": "^1.12.2"
},
"tags": [
"form",
Expand Down
Loading

0 comments on commit 5d6a9f4

Please sign in to comment.