-
Notifications
You must be signed in to change notification settings - Fork 219
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f267c08
commit 824282f
Showing
18 changed files
with
14,047 additions
and
10,477 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"airbnb" | ||
], | ||
"globals": { | ||
"document": true, | ||
"window": true, | ||
"process": true | ||
}, | ||
"env": { | ||
"node": true, | ||
"browser": true | ||
}, | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaVersion": 2017, | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"experimentalObjectRestSpread": true, | ||
"modules": true | ||
} | ||
}, | ||
"rules": { | ||
"arrow-body-style": "off", | ||
"class-methods-use-this": "off", | ||
"brace-style": [ | ||
"error", | ||
"1tbs", | ||
{ | ||
"allowSingleLine": true | ||
} | ||
], | ||
"comma-dangle": [ | ||
"error", | ||
"never" | ||
], | ||
"consistent-return": "off", | ||
"curly": "error", | ||
"import/extensions": "off", | ||
"import/no-extraneous-dependencies": "off", | ||
"import/no-unresolved": "off", | ||
"import/prefer-default-export": "off", | ||
"indent": [ | ||
"error", | ||
2, | ||
{ | ||
"SwitchCase": 1 | ||
} | ||
], | ||
"jsx-a11y/anchor-is-valid": "off", | ||
"jsx-a11y/label-has-for": "off", | ||
"jsx-a11y/href-no-hash": "off", | ||
"no-alert": "off", | ||
"no-console": "off", | ||
"no-debugger": "off", | ||
"no-else-return": "off", | ||
"no-irregular-whitespace": "error", | ||
"no-multiple-empty-lines": [ | ||
"error", | ||
{ | ||
"max": 1 | ||
} | ||
], | ||
"no-param-reassign": "off", | ||
"no-restricted-syntax": "off", | ||
"object-curly-newline": [ | ||
"error", | ||
{ | ||
"ObjectExpression": { | ||
"consistent": true | ||
}, | ||
"ObjectPattern": { | ||
"multiline": true | ||
} | ||
} | ||
], | ||
"prefer-template": "error", | ||
"react/forbid-prop-types": "off", | ||
"react/jsx-closing-bracket-location": [ | ||
"error", | ||
{ | ||
"selfClosing": "after-props", | ||
"nonEmpty": "after-props" | ||
} | ||
], | ||
"react/jsx-curly-spacing": [ | ||
"error", | ||
{ | ||
"when": "never", | ||
"children": true | ||
} | ||
], | ||
"react/jsx-filename-extension": "off", | ||
"react/jsx-no-bind": "error", | ||
"react/jsx-uses-react": "warn", | ||
"react/jsx-wrap-multilines": "off", | ||
"react/no-danger": "off", | ||
"react/no-did-mount-set-state": "error", | ||
"react/no-did-update-set-state": "error", | ||
"react/no-direct-mutation-state": "error", | ||
"react/no-multi-comp": [ | ||
"error", | ||
{ | ||
"ignoreStateless": true | ||
} | ||
], | ||
"react/no-string-refs": "error", | ||
"react/prefer-stateless-function": "off", // TODO change back to "warn" soon, once we go through stateless functions | ||
"react/prop-types": "off", | ||
"react/require-extension": "off", | ||
"react/sort-comp": "off", | ||
"react/jsx-indent": "off", | ||
"semi": [ | ||
"error", | ||
"never" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,12 @@ | ||
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app). | ||
# Technigo React Starter App | ||
|
||
## Available Scripts | ||
This app has been generated using `create-react-app`, then cleaned up a little so we have a project with just the elements we need to get started. | ||
|
||
In the project directory, you can run: | ||
Add components in the `src` folder and use them in `src/app.js` to get started. | ||
|
||
### `yarn start` | ||
## Usage | ||
|
||
Runs the app in the development mode.<br /> | ||
Open [http://localhost:3000](http://localhost:3000) to view it in the browser. | ||
|
||
The page will reload if you make edits.<br /> | ||
You will also see any lint errors in the console. | ||
|
||
### `yarn test` | ||
|
||
Launches the test runner in the interactive watch mode.<br /> | ||
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information. | ||
|
||
### `yarn build` | ||
|
||
Builds the app for production to the `build` folder.<br /> | ||
It correctly bundles React in production mode and optimizes the build for the best performance. | ||
|
||
The build is minified and the filenames include the hashes.<br /> | ||
Your app is ready to be deployed! | ||
|
||
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information. | ||
|
||
### `yarn eject` | ||
|
||
**Note: this is a one-way operation. Once you `eject`, you can’t go back!** | ||
|
||
If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project. | ||
|
||
Instead, it will copy all the configuration files and the transitive dependencies (Webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own. | ||
|
||
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. | ||
|
||
## Learn More | ||
|
||
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started). | ||
|
||
To learn React, check out the [React documentation](https://reactjs.org/). | ||
|
||
### Code Splitting | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting | ||
|
||
### Analyzing the Bundle Size | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size | ||
|
||
### Making a Progressive Web App | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app | ||
|
||
### Advanced Configuration | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration | ||
|
||
### Deployment | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment | ||
|
||
### `yarn build` fails to minify | ||
|
||
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify | ||
1. Download & extract the [latest release](https://github.com/Technigo/react-starter/releases/latest) from GitHub | ||
1. Open the directory in the terminal: `cd /path/to/react-starter` | ||
1. Install required dependencies with npm: `npm install` | ||
1. Start the project: `npm start` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"compilerOptions": { | ||
"baseUrl": "./src" | ||
} | ||
} |
Oops, something went wrong.