Skip to content

Commit 8ddaf6f

Browse files
committed
init commit
0 parents  commit 8ddaf6f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+16140
-0
lines changed

.babelrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": [
4+
"babel-plugin-transform-class-properties",
5+
"babel-plugin-transform-object-rest-spread"
6+
]
7+
}

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/webpack/
2+
/*.js

.eslintrc

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
{
2+
"parser": "babel-eslint",
3+
"plugins": ["react", "react-hooks" ],
4+
"rules": {
5+
"max-len": [1, 120, 2, {"ignoreComments": true}],
6+
"no-unused-vars": ["error", { "caughtErrors": "none" }],
7+
"id-length": 0,
8+
"jsx-quotes": 1,
9+
"no-console": 0,
10+
"react-hooks/rules-of-hooks": "error",
11+
"react/forbid-prop-types": 1,
12+
"react/jsx-boolean-value": 1,
13+
"react/jsx-closing-bracket-location": 1,
14+
"react/jsx-curly-spacing": 1,
15+
"react/jsx-indent-props": 1,
16+
"react/jsx-key": 1,
17+
"react/jsx-max-props-per-line": 1,
18+
"react/jsx-no-duplicate-props": 1,
19+
"react/jsx-no-undef": 1,
20+
"react/jsx-sort-props": 1,
21+
"react/jsx-uses-react": 1,
22+
"react/jsx-uses-vars": 1,
23+
"react/no-danger": 1,
24+
"react/no-did-mount-set-state": 1,
25+
"react/no-did-update-set-state": 1,
26+
"react/no-direct-mutation-state": 1,
27+
"react/no-multi-comp": 1,
28+
"react/no-set-state": 1,
29+
"react/no-unknown-property": 1,
30+
"react/prefer-es6-class": 1,
31+
"react/prop-types": 1,
32+
"react/react-in-jsx-scope": 1,
33+
"react/self-closing-comp": 1,
34+
"react/sort-comp": 1,
35+
"react/sort-prop-types": 1,
36+
"strict": 0,
37+
"import/no-unresolved": "off",
38+
"comma-dangle": ["error", {
39+
"arrays": "never",
40+
"objects": "never",
41+
"imports": "never",
42+
"exports": "never",
43+
"functions": "ignore"
44+
}],
45+
"linebreak-style": 0,
46+
"global-require": 0,
47+
"eslint linebreak-style": [0, "error", "windows"],
48+
"class-methods-use-this": [2, { "exceptMethods": [
49+
"componentDidMount",
50+
"componentDidUpdate",
51+
"componentWillMount",
52+
"componentWillReceiveProps",
53+
"componentWillUnmount",
54+
"componentWillUpdate",
55+
"render",
56+
"shouldComponentUpdate"
57+
]}],
58+
"no-trailing-spaces": [1, { "skipBlankLines": true }],
59+
"no-underscore-dangle": 0,
60+
"arrow-body-style": 0
61+
},
62+
"extends": ["airbnb-base"],
63+
"parserOptions":{
64+
"ecmaFeatures": {
65+
"experimentalObjectRestSpread": true
66+
}
67+
},
68+
"env": {
69+
"browser": true,
70+
"node": true
71+
},
72+
"globals": {
73+
"document": false
74+
}
75+
}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
.env.test
3+
.env.development

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# React With Webpack Boilerplate
2+
3+
### Version
4+
1.2.0
5+
6+
7+
### Installation
8+
9+
Install the dependencies
10+
11+
```sh
12+
$ npm install
13+
```
14+
Yarn
15+
```sh
16+
$ yarn install
17+
```
18+
19+
20+
### Run the development server
21+
Dev server is now ready and can be accessed in browser in <http://localhost:8080>
22+
23+
```sh
24+
$ npm run dev-server
25+
```

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<meta http-equiv="X-UA-Compatible" content="ie=edge">
7+
<title>Boilerplate</title>
8+
<link rel="icon" type="image/png" href="/static/favicon.png"/>
9+
</head>
10+
<body>
11+
<div id="app"></div>
12+
</body>
13+
</html>

jest.config.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"setupFiles": [
3+
"raf/polyfill",
4+
"<rootDir>/test/setup.js"
5+
],
6+
"snapshotSerializers": [
7+
"enzyme-to-json/serializer"
8+
]
9+
}

0 commit comments

Comments
 (0)