diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000..d1d8a4176 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,10 @@ +# http://editorconfig.org +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 000000000..f65592387 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,19 @@ +{ + "parser": "babel-eslint", + "env": { + "browser": true, + }, + "plugins": [ + "react" + ], + "rules": { + "strict": 0, + "quotes": [2, "double"], + "no-underscore-dangle": 0, + "no-unused-vars": 1, + "no-unused-expressions": 0, + "react/jsx-no-undef": 2, + "new-cap": 0, + "no-empty": 0 + } +} diff --git a/package.json b/package.json index e1fe5e4f9..046201c08 100644 --- a/package.json +++ b/package.json @@ -39,7 +39,10 @@ }, "devDependencies": { "babel": "^5.3.1", + "babel-eslint": "^4.0.5", "babelify": "^6.0.2", + "eslint": "^1.0.0", + "eslint-plugin-react": "^3.1.0", "jest": "^0.1.39", "jest-cli": "^0.4.0", "node-sass": "^3.0.0",