diff --git a/.eslintrc b/.eslintrc
index 975e5f9..704e91b 100644
--- a/.eslintrc
+++ b/.eslintrc
@@ -10,6 +10,7 @@
"plugin:inferno/recommended",
"eslint-config-happiness"
],
+ "globals": {},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 6,
@@ -19,11 +20,63 @@
}
},
"rules": {
- "import/extensions": 0,
- "import/no-extraneous-dependencies": 0,
+ "array-callback-return": "error",
+ "camelcase": ["error", {
+ "properties": "never"
+ }],
+ "comma-dangle": ["error", "always-multiline"],
+ "import/extensions": "off",
+ "import/no-extraneous-dependencies": "off",
"import/no-unresolved": [2, { "ignore": ["electron"] }],
- "linebreak-style": 0,
- "react/prefer-stateless-function": 0,
- "no-console": 0
+ "jsx-quotes": ["error", "prefer-double"],
+ "linebreak-style": "off",
+ "multiline-ternary": ["error", "always-multiline"],
+ "prefer-arrow-callback": ["error", {
+ "allowNamedFunctions": true
+ }],
+ "prefer-const": "error",
+ "no-alert": "error",
+ "no-console": "off",
+ "no-duplicate-imports": "error",
+ "no-eval": "error",
+ "no-extend-native": "error",
+ "no-extra-bind": "error",
+ "no-extra-semi": "error",
+ "no-implied-eval": "error",
+ "no-invalid-this": "error",
+ "no-nested-ternary": "error",
+ "no-new-func": "error",
+ "no-new-wrappers": "error",
+ "no-return-assign": "error",
+ "no-return-await": "error",
+ "no-self-compare": "error",
+ "no-shadow": ["error", {
+ "builtinGlobals": true
+ }],
+ "no-unneeded-ternary": "error",
+ "no-unused-expressions": "error",
+ "no-use-before-define": "error",
+ "no-useless-call": "error",
+ "no-useless-concat": "error",
+ "no-useless-return": "error",
+ "no-var": "error",
+ "no-with": "error",
+ "prefer-rest-params": "error",
+ "prefer-spread": "error",
+ "prefer-template": "error",
+ "quotes": ["error", "single", {
+ "allowTemplateLiterals": true,
+ "avoidEscape": true
+ }],
+ "quote-props": ["error", "as-needed", {
+ "keywords": true,
+ "unnecessary": false,
+ "numbers": false
+ }],
+ "radix": ["error", "always"],
+ "react/prefer-stateless-function": "off",
+ "require-await": "error",
+ "sort-keys": ["error", "asc", {"caseSensitive": true, "natural": true}],
+ "yoda": ["error", "never"]
}
}
diff --git a/README.md b/README.md
index ed7703f..f7ff8b1 100644
--- a/README.md
+++ b/README.md
@@ -13,7 +13,6 @@ You can find the most recent version of this guide [here](https://github.com/fac
- [npm test](#npm-test)
- [npm run build](#npm-run-build)
- [npm run eject](#npm-run-eject)
-- [Supported Browsers](#supported-browsers)
- [Supported Language Features and Polyfills](#supported-language-features-and-polyfills)
- [Syntax Highlighting in the Editor](#syntax-highlighting-in-the-editor)
- [Displaying Lint Output in the Editor](#displaying-lint-output-in-the-editor)
@@ -198,12 +197,6 @@ Instead, it will copy all the configuration files and the transitive dependencie
You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.
-## Supported Browsers
-
-By default, the generated project uses the latest version of React.
-
-You can refer [to the React documentation](https://reactjs.org/docs/react-dom.html#browser-support) for more information about supported browsers.
-
## Supported Language Features and Polyfills
This project supports a superset of the latest JavaScript standard.
diff --git a/src/App.js b/src/App.js
index 4389fac..68e20f2 100644
--- a/src/App.js
+++ b/src/App.js
@@ -1,13 +1,14 @@
-import { version } from 'inferno';
-import { BrowserRouter, Route } from 'inferno-router'
+import { BrowserRouter } from 'inferno-router';
+
+import { Button, Form, FormGroup, Input, Label } from './components/Form';
import { Container, Row } from './components/Grid';
-const App = () => (
+const App = () => (
{`Welcome to Inferno ${version}`}
+ Welcome to Inferno
src/App.js
and save to reload.