Skip to content
This repository was archived by the owner on Sep 6, 2022. It is now read-only.

Commit 0dee563

Browse files
authored
Fixes&maintenance (#63)
### Many fixes, updates and maintenances... **Changes:** - Synched with the `dev` of the original boilerplate - Switched to `react-helmet-async` - Fixed `react-app-polyfill` - Added `react-hot-loader` - Updated `internal/scripts` - Switched to `redux-injectors` - Fixed bugs that are fixed in the boilerplate - Updated `offline-plugin` to use `network-first` response strategy - Improved `internals/scripts/generate-templates-for-linting.js` script - Fixed `eslint` bugs - Updated `README` - Updated package versions
1 parent be4a18f commit 0dee563

File tree

85 files changed

+3572
-4648
lines changed

Some content is hidden

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

85 files changed

+3572
-4648
lines changed

.all-contributorsrc

Lines changed: 11 additions & 147 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"projectName": "react-boilerplate",
3-
"projectOwner": "react-boilerplate",
2+
"projectName": "react-boilerplate-typescript",
3+
"projectOwner": "react-boilerplate-typescript",
44
"repoType": "github",
55
"repoHost": "https://github.com",
66
"files": [
@@ -10,10 +10,10 @@
1010
"commit": true,
1111
"contributors": [
1212
{
13-
"login": "mxstbr",
14-
"name": "Max Stoiber",
15-
"avatar_url": "https://avatars0.githubusercontent.com/u/7525670?v=4",
16-
"profile": "https://mxstbr.com",
13+
"login": "Can-Sahin",
14+
"name": "Can Sahin",
15+
"avatar_url": "https://avatars2.githubusercontent.com/u/33245689?v=4",
16+
"profile": "https://github.com/Can-Sahin",
1717
"contributions": [
1818
"code",
1919
"doc",
@@ -23,152 +23,16 @@
2323
]
2424
},
2525
{
26-
"login": "julienben",
27-
"name": "Julien Benchetrit",
28-
"avatar_url": "https://avatars2.githubusercontent.com/u/8948127?v=4",
29-
"profile": "https://julien.engineering/",
30-
"contributions": [
31-
"code",
32-
"question",
33-
"doc",
34-
"review",
35-
"maintenance"
36-
]
37-
},
38-
{
39-
"login": "gretzky",
40-
"name": "Sara Federico",
41-
"avatar_url": "https://avatars1.githubusercontent.com/u/15176096?v=4",
42-
"profile": "http://sarafederi.co",
43-
"contributions": [
44-
"code",
45-
"review",
46-
"question",
47-
"doc",
48-
"maintenance"
49-
]
50-
},
51-
{
52-
"login": "justingreenberg",
53-
"name": "Justin Greenberg",
54-
"avatar_url": "https://avatars1.githubusercontent.com/u/1539088?v=4",
55-
"profile": "https://justingreenberg.com",
26+
"login": "GrayStrider",
27+
"name": "Gray Strider",
28+
"avatar_url": "https://avatars0.githubusercontent.com/u/43771776?s=460&v=4",
29+
"profile": "https://github.com/GrayStrider",
5630
"contributions": [
5731
"code",
32+
"tool",
5833
"review"
5934
]
6035
},
61-
{
62-
"login": "jwinn",
63-
"name": "Jon Winn",
64-
"avatar_url": "https://avatars3.githubusercontent.com/u/891726?v=4",
65-
"profile": "https://github.com/jwinn",
66-
"contributions": [
67-
"code",
68-
"review"
69-
]
70-
},
71-
{
72-
"login": "Mensae",
73-
"name": "Johan Meester",
74-
"avatar_url": "https://avatars2.githubusercontent.com/u/474743?v=4",
75-
"profile": "https://meester-johan.info/",
76-
"contributions": [
77-
"code",
78-
"test",
79-
"doc"
80-
]
81-
},
82-
{
83-
"login": "Dattaya",
84-
"name": "Yaroslav Kiliba",
85-
"avatar_url": "https://avatars3.githubusercontent.com/u/387256?v=4",
86-
"profile": "https://github.com/Dattaya",
87-
"contributions": [
88-
"code"
89-
]
90-
},
91-
{
92-
"login": "gihrig",
93-
"name": "Glen Ihrig",
94-
"avatar_url": "https://avatars2.githubusercontent.com/u/1481063?v=4",
95-
"profile": "https://github.com/gihrig",
96-
"contributions": [
97-
"code"
98-
]
99-
},
100-
{
101-
"login": "somus",
102-
"name": "Somasundaram Ayyappan",
103-
"avatar_url": "https://avatars3.githubusercontent.com/u/1802828?v=4",
104-
"profile": "https://github.com/somus",
105-
"contributions": [
106-
"code"
107-
]
108-
},
109-
{
110-
"login": "oliverturner",
111-
"name": "Oliver Turner",
112-
"avatar_url": "https://avatars0.githubusercontent.com/u/21795?v=4",
113-
"profile": "https://www.codedsignal.co.uk/",
114-
"contributions": [
115-
"code"
116-
]
117-
},
118-
{
119-
"login": "samit4me",
120-
"name": "Samuel Sharpe",
121-
"avatar_url": "https://avatars3.githubusercontent.com/u/3248531?v=4",
122-
"profile": "https://github.com/samit4me",
123-
"contributions": [
124-
"code"
125-
]
126-
},
127-
{
128-
"login": "KarandikarMihir",
129-
"name": "Mihir Karandikar",
130-
"avatar_url": "https://avatars3.githubusercontent.com/u/17466938?v=4",
131-
"profile": "https://karandikarmihir.github.io/",
132-
"contributions": [
133-
"code"
134-
]
135-
},
136-
{
137-
"login": "v",
138-
"name": "Vaibhav Verma",
139-
"avatar_url": "https://avatars2.githubusercontent.com/u/627846?v=4",
140-
"profile": "http://www.vverma.net",
141-
"contributions": [
142-
"code"
143-
]
144-
},
145-
{
146-
"login": "sedubois",
147-
"name": "Sébastien Dubois",
148-
"avatar_url": "https://avatars1.githubusercontent.com/u/4217871?v=4",
149-
"profile": "https://imagineclarity.com",
150-
"contributions": [
151-
"code"
152-
]
153-
},
154-
{
155-
"login": "chaintng",
156-
"name": "Chainarong Tangsurakit",
157-
"avatar_url": "https://avatars2.githubusercontent.com/u/2979072?v=4",
158-
"profile": "https://www.chaintng.com",
159-
"contributions": [
160-
"code"
161-
]
162-
},
163-
{
164-
"login": "amilajack",
165-
"name": "Amila Welihinda",
166-
"avatar_url": "https://avatars1.githubusercontent.com/u/6374832?v=4",
167-
"profile": "https://amilajack.com",
168-
"contributions": [
169-
"code"
170-
]
171-
},
17236
{
17337
"login": "rajatkantinandi",
17438
"name": "Rajat Kanti Nandi",

.eslintignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ internals/scripts
22
internals/generators
33
internals/templates
44
server/
5-
**/types.d.ts
65
*.html
76
node_modules
87
coverage

.eslintrc.js

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,19 @@ const prettierOptions = JSON.parse(
77

88
module.exports = {
99
parser: '@typescript-eslint/parser',
10-
extends: ['airbnb-typescript', 'prettier', 'prettier/react'],
11-
plugins: ['prettier', 'redux-saga', 'react', 'react-hooks', 'jsx-a11y', '@typescript-eslint'],
10+
extends: [
11+
'airbnb-typescript',
12+
'prettier',
13+
'prettier/react',
14+
],
15+
plugins: [
16+
'prettier',
17+
'redux-saga',
18+
'react',
19+
'react-hooks',
20+
'jsx-a11y',
21+
'@typescript-eslint',
22+
],
1223
env: {
1324
jest: true,
1425
browser: true,
@@ -25,11 +36,11 @@ module.exports = {
2536
},
2637
rules: {
2738
'jsx-no-lambda': 0,
28-
'semi': [2, 'always'],
39+
semi: [2, 'always'],
2940
'@typescript-eslint/interface-name-prefix': 0,
3041
'@typescript-eslint/no-empty-interface': 0,
3142
'object-shorthand': [0, 'never'],
32-
'quotes': [2, 'single'],
43+
quotes: [2, 'single'],
3344
'@typescript-eslint/no-var-requires': 0,
3445
'member-ordering': 0,
3546
'object-literal-sort-keys': 0,
@@ -57,7 +68,7 @@ module.exports = {
5768
'import/no-dynamic-require': 0,
5869
'import/no-extraneous-dependencies': 0,
5970
'import/no-named-as-default': 0,
60-
'import/no-unresolved': 2,
71+
'import/no-unresolved': [2, { caseSensitive: false }], // ts already checks case sensitive imports
6172
'import/no-webpack-loader-syntax': 0,
6273
'import/prefer-default-export': 0,
6374
'import/no-cycle': 1,
@@ -116,10 +127,11 @@ module.exports = {
116127
webpack: {
117128
config: './internals/webpack/webpack.prod.babel.js',
118129
},
119-
'typescript': {
120-
'alwaysTryTypes': true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
121-
'directory': './tsconfig.json',
130+
typescript: {
131+
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
132+
directory: './tsconfig.json',
122133
},
123134
},
135+
'import/ignore': ['types'], // Weirdly eslint cannot resolve exports in types folder (try removing this later)
124136
},
125137
};

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
save-exact = true

0 commit comments

Comments
 (0)