From fadc90add1f6dbb6ebe8a865dad6cc5b9f14fefb Mon Sep 17 00:00:00 2001 From: Shinnosuke Komiya Date: Sat, 5 Mar 2016 00:11:53 +0900 Subject: [PATCH] first commit --- .eslintrc.js | 2 +- package.json | 3 ++- src/scripts/.eslintrc.js | 2 +- src/scripts/main.js | 10 ++++++++++ 4 files changed, 14 insertions(+), 3 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 32feb64..ede2375 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -42,7 +42,7 @@ module.exports = { "id-blacklist": 0, "id-length": 0, "id-match": 0, - "indent": [1, 2, { + "indent": [1, "tab", { "VariableDeclarator": { "var": 2, "let": 2, "const": 3 }, "SwitchCase": 1 }], diff --git a/package.json b/package.json index 1a6f848..0e8d5b8 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ }, "dependencies": { "react": "^0.14.7", - "react-dom": "^0.14.7" + "react-dom": "^0.14.7", + "react-router": "^2.0.0" } } diff --git a/src/scripts/.eslintrc.js b/src/scripts/.eslintrc.js index d6e2c88..0aff20e 100644 --- a/src/scripts/.eslintrc.js +++ b/src/scripts/.eslintrc.js @@ -30,7 +30,7 @@ module.exports = { "react/jsx-equals-spacing": [1, "never"], "react/jsx-handler-names": 0, "react/jsx-indent-props": [1, 2], - "react/jsx-indent": [1, 2], + "react/jsx-indent": [1, "tab"], "react/jsx-key": 2, "react/jsx-max-props-per-line": [1, { "maximum": 5 }], "react/jsx-no-bind": [1, { diff --git a/src/scripts/main.js b/src/scripts/main.js index e69de29..9b7925a 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -0,0 +1,10 @@ +import { Router, Route, Link } from "react-router"; +import React from "react"; + +const Header = React.createClass({ + render() { + return ( +
hoge
+ ); + } +});