Skip to content

Commit 824282f

Browse files
committed
Custom setup
1 parent f267c08 commit 824282f

18 files changed

Lines changed: 14047 additions & 10477 deletions

.eslintrc.json

Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": [
4+
"airbnb"
5+
],
6+
"globals": {
7+
"document": true,
8+
"window": true,
9+
"process": true
10+
},
11+
"env": {
12+
"node": true,
13+
"browser": true
14+
},
15+
"parserOptions": {
16+
"sourceType": "module",
17+
"ecmaVersion": 2017,
18+
"ecmaFeatures": {
19+
"jsx": true,
20+
"experimentalObjectRestSpread": true,
21+
"modules": true
22+
}
23+
},
24+
"rules": {
25+
"arrow-body-style": "off",
26+
"class-methods-use-this": "off",
27+
"brace-style": [
28+
"error",
29+
"1tbs",
30+
{
31+
"allowSingleLine": true
32+
}
33+
],
34+
"comma-dangle": [
35+
"error",
36+
"never"
37+
],
38+
"consistent-return": "off",
39+
"curly": "error",
40+
"import/extensions": "off",
41+
"import/no-extraneous-dependencies": "off",
42+
"import/no-unresolved": "off",
43+
"import/prefer-default-export": "off",
44+
"indent": [
45+
"error",
46+
2,
47+
{
48+
"SwitchCase": 1
49+
}
50+
],
51+
"jsx-a11y/anchor-is-valid": "off",
52+
"jsx-a11y/label-has-for": "off",
53+
"jsx-a11y/href-no-hash": "off",
54+
"no-alert": "off",
55+
"no-console": "off",
56+
"no-debugger": "off",
57+
"no-else-return": "off",
58+
"no-irregular-whitespace": "error",
59+
"no-multiple-empty-lines": [
60+
"error",
61+
{
62+
"max": 1
63+
}
64+
],
65+
"no-param-reassign": "off",
66+
"no-restricted-syntax": "off",
67+
"object-curly-newline": [
68+
"error",
69+
{
70+
"ObjectExpression": {
71+
"consistent": true
72+
},
73+
"ObjectPattern": {
74+
"multiline": true
75+
}
76+
}
77+
],
78+
"prefer-template": "error",
79+
"react/forbid-prop-types": "off",
80+
"react/jsx-closing-bracket-location": [
81+
"error",
82+
{
83+
"selfClosing": "after-props",
84+
"nonEmpty": "after-props"
85+
}
86+
],
87+
"react/jsx-curly-spacing": [
88+
"error",
89+
{
90+
"when": "never",
91+
"children": true
92+
}
93+
],
94+
"react/jsx-filename-extension": "off",
95+
"react/jsx-no-bind": "error",
96+
"react/jsx-uses-react": "warn",
97+
"react/jsx-wrap-multilines": "off",
98+
"react/no-danger": "off",
99+
"react/no-did-mount-set-state": "error",
100+
"react/no-did-update-set-state": "error",
101+
"react/no-direct-mutation-state": "error",
102+
"react/no-multi-comp": [
103+
"error",
104+
{
105+
"ignoreStateless": true
106+
}
107+
],
108+
"react/no-string-refs": "error",
109+
"react/prefer-stateless-function": "off", // TODO change back to "warn" soon, once we go through stateless functions
110+
"react/prop-types": "off",
111+
"react/require-extension": "off",
112+
"react/sort-comp": "off",
113+
"react/jsx-indent": "off",
114+
"semi": [
115+
"error",
116+
"never"
117+
]
118+
}
119+
}

README.md

Lines changed: 8 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,12 @@
1-
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
1+
# Technigo React Starter App
22

3-
## Available Scripts
3+
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.
44

5-
In the project directory, you can run:
5+
Add components in the `src` folder and use them in `src/app.js` to get started.
66

7-
### `yarn start`
7+
## Usage
88

9-
Runs the app in the development mode.<br />
10-
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11-
12-
The page will reload if you make edits.<br />
13-
You will also see any lint errors in the console.
14-
15-
### `yarn test`
16-
17-
Launches the test runner in the interactive watch mode.<br />
18-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19-
20-
### `yarn build`
21-
22-
Builds the app for production to the `build` folder.<br />
23-
It correctly bundles React in production mode and optimizes the build for the best performance.
24-
25-
The build is minified and the filenames include the hashes.<br />
26-
Your app is ready to be deployed!
27-
28-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
29-
30-
### `yarn eject`
31-
32-
**Note: this is a one-way operation. Once you `eject`, you can’t go back!**
33-
34-
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.
35-
36-
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.
37-
38-
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.
39-
40-
## Learn More
41-
42-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
43-
44-
To learn React, check out the [React documentation](https://reactjs.org/).
45-
46-
### Code Splitting
47-
48-
This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting
49-
50-
### Analyzing the Bundle Size
51-
52-
This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size
53-
54-
### Making a Progressive Web App
55-
56-
This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app
57-
58-
### Advanced Configuration
59-
60-
This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration
61-
62-
### Deployment
63-
64-
This section has moved here: https://facebook.github.io/create-react-app/docs/deployment
65-
66-
### `yarn build` fails to minify
67-
68-
This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify
9+
1. Download & extract the [latest release](https://github.com/Technigo/react-starter/releases/latest) from GitHub
10+
1. Open the directory in the terminal: `cd /path/to/react-starter`
11+
1. Install required dependencies with npm: `npm install`
12+
1. Start the project: `npm start`

jsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": "./src"
4+
}
5+
}

0 commit comments

Comments
 (0)