diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000..5acccd9 --- /dev/null +++ b/.babelrc @@ -0,0 +1,4 @@ +{ + "stage": 2, + "loose": "all" +} diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..d7a984e --- /dev/null +++ b/.eslintignore @@ -0,0 +1,3 @@ +demo/ +dist/ +lib/ diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..add22d3 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,13 @@ +{ + "extends": ["standard", "standard-react"], + "rules": { + "brace-style": [2, "stroustrup", {"allowSingleLine": true}], + "eqeqeq": [2, "smart"], + "jsx-quotes": [2, "prefer-double"], + "react/prop-types": 0, + "react/self-closing-comp": 0, + "react/wrap-multilines": 0, + "space-before-function-paren": [2, "never"] + }, + "parser": "babel-eslint" +} diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 3ccf497..0000000 --- a/.jshintrc +++ /dev/null @@ -1,24 +0,0 @@ -{ - "browser": true, - "node": true, - - "curly": true, - "devel": true, - "globals": { - }, - "noempty": true, - "newcap": false, - "undef": true, - "unused": "vars", - - "asi": true, - "boss": true, - "eqnull": true, - "expr": true, - "funcscope": true, - "globalstrict": true, - "laxbreak": true, - "laxcomma": true, - "loopfunc": true, - "sub": true -} \ No newline at end of file diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..b7879c9 --- /dev/null +++ b/.npmignore @@ -0,0 +1,10 @@ +dist/ +src/ +test/ +.babelrc +.eslintrc +.eslintignore +.gitignore +.travis.yml +webpack.config.js +webpack.prod.config.js diff --git a/README.md b/README.md index 481f6a9..dbba504 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,5 @@ ## React Router `
` -A `` component for use with -[react-router](https://github.com/rackt/react-router) -which does for `` what react-router's -[`` component](https://github.com/rackt/react-router/blob/master/docs/api/components/Link.md) -does for ``. +A `` component for use with [React Router](https://github.com/rackt/react-router) which does for `` what react-router's `` does for ``. -## MIT Licensed \ No newline at end of file +## MIT Licensed diff --git a/demo/index.html b/demo/index.html index 0f62c3f..c26b9fa 100644 --- a/demo/index.html +++ b/demo/index.html @@ -2,9 +2,11 @@ react-router-form - - - + + + + +