Install eslint and fix code style

This commit is contained in:
Nicolas Gallagher
2015-09-02 17:15:05 -07:00
parent ff5c8f64cc
commit 1417dd2e6a
31 changed files with 262 additions and 240 deletions
+17
View File
@@ -0,0 +1,17 @@
{
// babel parser to support ES features
"parser": "babel-eslint",
// based on https://github.com/feross/standard
"extends": [ "standard", "standard-react" ],
"env": {
"mocha": true
},
"rules": {
// overrides of the standard style
"space-before-function-paren": [ 2, { "anonymous": "always", "named": "never" } ],
"wrap-iife": [ 2, "outside" ],
// overrides of the standard-react style
"react/jsx-sort-props": 2,
"react/jsx-sort-prop-types": 2
}
}