Skip to content

Commit 97cff76

Browse files
committed
Updates for React 16 and more
1 parent 00988dd commit 97cff76

Some content is hidden

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

48 files changed

+4097
-2854
lines changed

.eslintrc.js

Lines changed: 33 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
module.exports = {
2-
"parser": 'babel-eslint',
3-
"env": {
4-
"browser": true,
5-
"commonjs": true,
6-
"es6": true,
7-
"node": true,
8-
"jest": true,
2+
parser: 'babel-eslint',
3+
env: {
4+
browser: true,
5+
commonjs: true,
6+
es6: true,
7+
node: true,
8+
jest: true,
99
},
10-
"extends": ["eslint:recommended"],
11-
"parserOptions": {
12-
"ecmaFeatures": {
13-
"experimentalObjectRestSpread": true,
10+
extends: ['eslint:recommended', 'plugin:react/recommended'],
11+
parserOptions: {
12+
ecmaFeatures: {
13+
experimentalObjectRestSpread: true,
14+
jsx: true,
1415
},
15-
"sourceType": "module"
16+
sourceType: 'module',
17+
},
18+
plugins: ['react'],
19+
rules: {
20+
indent: ['error', 2, { SwitchCase: 1 }],
21+
'linebreak-style': ['error', 'unix'],
22+
quotes: ['error', 'single'],
23+
semi: ['error', 'always'],
24+
'no-console': ['warn', { allow: ['info', 'error', 'dir'] }],
25+
'arrow-parens': ['error', 'always'],
26+
curly: 'error',
27+
'no-else-return': 'error',
28+
'no-unneeded-ternary': 'error',
29+
'no-useless-return': 'error',
30+
'no-var': 'error',
31+
'one-var': ['error', 'never'],
32+
'prefer-arrow-callback': 'error',
33+
'prefer-const': 'error',
34+
strict: 'error',
35+
'symbol-description': 'error',
36+
yoda: ['error', 'never', { exceptRange: true }],
1637
},
17-
"rules": {
18-
"indent": ["error", 2, { "SwitchCase": 1 }],
19-
"linebreak-style": ["error","unix"],
20-
"quotes": ["error","single"],
21-
"semi": ["error","always"],
22-
"no-console": ["warn", { "allow": ["info", "error"] }],
23-
"arrow-parens": ["error", "always"],
24-
}
2538
};

LICENSE

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2017-present Samer Buna
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,8 @@ You can also use init-full to update an existing Redux/React app.
6767
- Create a New Function Component: ```react fc ComponentName```
6868

6969
All of these commands will also create a jest snapshot test for the generated component.
70+
71+
72+
### License
73+
74+
Reactful is [MIT licensed](./LICENSE).

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"lerna": "2.0.0-rc.5",
2+
"lerna": "2.4.0",
33
"packages": [
44
"packages/*"
55
],
6-
"version": "0.4.0"
6+
"version": "0.5.0"
77
}

0 commit comments

Comments
 (0)