Skip to content

Commit 081f500

Browse files
committed
init
0 parents  commit 081f500

22 files changed

+15595
-0
lines changed

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-react",
5+
"@babel/preset-typescript"
6+
],
7+
"plugins": [
8+
"@babel/plugin-transform-typescript",
9+
["@babel/plugin-proposal-decorators", { "legacy": true }],
10+
["@babel/plugin-proposal-class-properties", { "loose" : true }],
11+
["import", { "libraryName": "antd", "style": "css", "libraryDirectory": "es"}]
12+
]
13+
}

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
REACT_APP_NAME=SHERRY

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
public/
2+
scripts/
3+
prettier.config.js

.eslintrc.js

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
module.exports = {
2+
'env': {
3+
'browser': true,
4+
'es2021': true
5+
},
6+
'extends': [
7+
'eslint:recommended',
8+
'plugin:react/recommended',
9+
'plugin:@typescript-eslint/recommended'
10+
],
11+
'parser': '@typescript-eslint/parser',
12+
'parserOptions': {
13+
'ecmaFeatures': {
14+
'jsx': true
15+
},
16+
'ecmaVersion': 12,
17+
'sourceType': 'module'
18+
},
19+
'plugins': [
20+
'react',
21+
'@typescript-eslint'
22+
],
23+
'rules': {
24+
'indent': ['error', 'tab'],
25+
'linebreak-style': ['error', 'windows'],
26+
'quotes': ['error', 'single'],
27+
'semi': ['error', 'always'],
28+
'no-mixed-spaces-and-tabs': 'off',
29+
'@typescript-eslint/ban-ts-comment': 'off',
30+
}
31+
};

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
.idea/
2+
.vscode/
3+
node_modules/
4+
build
5+
.DS_Store
6+
*.tgz
7+
lerna-debug.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
/.changelog
12+
.npm/
13+
dist/

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# react-webpack-typescript-template
2+
3+
a react template, use react, react-dom, webpack, typescript, redux, react-redux, redux-logger, redux-thunk, redux-promise, connected-react-router ...
4+
5+
# features
6+
7+
+ typescript
8+
+ suppose webpack development and production env
9+
+ eslint
10+
+ dotenv
11+
+ antd
12+
+ css & less
13+
14+
# license
15+
16+
MIT

0 commit comments

Comments
 (0)