From a3620b914b7a5d478e369c15fa65a6fec730941a Mon Sep 17 00:00:00 2001 From: Cheng Lou Date: Thu, 30 Jul 2015 23:57:32 -0700 Subject: [PATCH] Add babelrc and eslintrc; ready for repo revamp Component code logic won't change much; just some syntactic sugar with babel + new repo structure for easier testing and building. --- .babelrc | 3 +++ .eslintrc | 22 ++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 .babelrc create mode 100644 .eslintrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..ce840ab --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "stage": 0 +} \ No newline at end of file diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..5ccbafc --- /dev/null +++ b/.eslintrc @@ -0,0 +1,22 @@ +{ + "ecmaFeatures": { + "jsx": true, + "modules": true + }, + "env": { + "browser": true, + "node": true + }, + "parser": "babel-eslint", + "rules": { + "comma-dangle": [2, "always-multiline"], + "quotes": [2, "single"], + "strict": [2, "never"], + "react/jsx-uses-react": 2, + "react/jsx-uses-vars": 2, + "react/react-in-jsx-scope": 2 + }, + "plugins": [ + "react" + ] +}