From 62ddf953f384792171c0ef754ca4dd55b7d8c151 Mon Sep 17 00:00:00 2001 From: Jonathan Lehman Date: Fri, 24 Jul 2015 17:26:49 -0400 Subject: [PATCH] Update eslintrc --- .eslintrc | 52 +++++++++++++++++++++++++++++++++++++++------------- package.json | 3 +++ 2 files changed, 42 insertions(+), 13 deletions(-) diff --git a/.eslintrc b/.eslintrc index d6f4a52..e73913a 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,26 +1,52 @@ { + "extends": "eslint-config-airbnb", + "env": { "browser": true, "node": true, - "es6": true + "es6": true, + "mocha": true }, + "parser": "babel-eslint", + "ecmaFeatures": { - "modules": true, - "jsx": true + "modules": true + }, + + "globals": { + "assert": false }, + "plugins": [ + "react" + ], + "rules": { - "no-reserved-keys": true, - "radix": true, - "indent": [2, 2], - "camelcase": 2, - "new-cap": [0, "capIsNew"], - "eol-last": 2, + "no-var": 0, + "no-unused-vars": [2, { + "vars": "local", + "args": "none" + }], + "func-names": 0, + "vars-on-top": 0, + "no-else-return": 0, + "new-cap": 0, "quotes": [2, "single", "avoid-escape"], - "no-mixed-spaces-and-tabs": 2, - "no-trailing-spaces": 2, - "no-underscore-dangle": 2, - "no-unused-vars": [1, { "args": "none" }] + + "react/display-name": 1, + "react/jsx-boolean-value": 1, + "react/jsx-quotes": 1, + "react/jsx-no-undef": 1, + "react/jsx-uses-react": 1, + "react/jsx-uses-vars": 1, + "react/no-did-mount-set-state": 1, + "react/no-did-update-set-state": 1, + "react/no-multi-comp": 1, + "react/no-unknown-property": 1, + "react/prop-types": 1, + "react/react-in-jsx-scope": 1, + "react/self-closing-comp": 1, + "react/wrap-multilines": 1 } } diff --git a/package.json b/package.json index df95c0f..374862e 100644 --- a/package.json +++ b/package.json @@ -25,9 +25,12 @@ "license": "MIT", "devDependencies": { "babel-core": "^5.2.17", + "babel-eslint": "^3.1.26", "babel-loader": "^5.0.0", "chai": "^2.3.0", "eslint": "^0.20.0", + "eslint-config-airbnb": "0.0.6", + "eslint-plugin-react": "^3.0.0", "istanbul": "^0.3.13", "istanbul-instrumenter-loader": "^0.1.2", "karma": "^0.12.31",