Skip to content

Commit e8a6125

Browse files
authored
feat: add React.js
feat: add React.js
1 parent 5225bf1 commit e8a6125

File tree

209 files changed

+48078
-4684
lines changed

Some content is hidden

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

209 files changed

+48078
-4684
lines changed

.gitignore

Lines changed: 1 addition & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
8-
# Runtime data
9-
pids
10-
*.pid
11-
*.seed
12-
*.pid.lock
13-
14-
# Directory for instrumented libs generated by jscoverage/JSCover
15-
lib-cov
16-
17-
# Coverage directory used by tools like istanbul
18-
coverage
19-
20-
# nyc test coverage
21-
.nyc_output
22-
23-
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
24-
.grunt
25-
26-
# Bower dependency directory (https://bower.io/)
27-
bower_components
28-
29-
# node-waf configuration
30-
.lock-wscript
31-
32-
# Compiled binary addons (https://nodejs.org/api/addons.html)
33-
build/Release
34-
35-
# Dependency directories
36-
node_modules/
37-
jspm_packages/
38-
39-
# TypeScript v1 declaration files
40-
typings/
41-
42-
# Optional npm cache directory
43-
.npm
44-
45-
# Optional eslint cache
46-
.eslintcache
47-
48-
# Optional REPL history
49-
.node_repl_history
50-
51-
# Output of 'npm pack'
52-
*.tgz
53-
54-
# Yarn Integrity file
55-
.yarn-integrity
56-
57-
# dotenv environment variables file
58-
.env
59-
.env.test
60-
61-
# parcel-bundler cache (https://parceljs.org/)
62-
.cache
63-
64-
# next.js build output
65-
.next
66-
67-
# nuxt.js build output
68-
.nuxt
69-
70-
# vuepress build output
71-
.vuepress/dist
72-
73-
# Serverless directories
74-
.serverless/
75-
76-
# FuseBox cache
77-
.fusebox/
78-
79-
# DynamoDB Local files
80-
.dynamodb/
1+
node_modules

.vscode/settings.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"files.associations": {
3+
"**/components/**/*.js": "javascriptreact",
4+
"**/containers/**/*.js": "javascriptreact",
5+
"./client/index.js": "javascriptreact",
6+
"./client/src/App.js": "javascriptreact",
7+
"**/*.css": "scss"
8+
},
9+
"eslint.options": {
10+
"configFile": "./client/.eslintrc.js"
11+
},
12+
"eslint.enable": true
13+
}
File renamed without changes.

client/.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/**/*
2+
/src/vendor/**/*
3+
/public/**/*

client/.eslintrc.js

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
const fs = require('fs')
2+
const path = require('path')
3+
4+
const prettierOptions = JSON.parse(fs.readFileSync(path.resolve(__dirname, '.prettierrc'), 'utf8'))
5+
6+
module.exports = {
7+
parser: 'babel-eslint',
8+
env: {
9+
browser: true,
10+
amd: true,
11+
es6: true,
12+
node: true,
13+
},
14+
extends: [
15+
'eslint:recommended',
16+
'plugin:react/recommended',
17+
'plugin:jest/recommended',
18+
'plugin:cypress/recommended',
19+
'plugin:import/warnings',
20+
],
21+
parserOptions: {
22+
ecmaFeatures: {
23+
jsx: true,
24+
},
25+
ecmaVersion: 2018,
26+
sourceType: 'module',
27+
},
28+
plugins: ['react', 'import', 'jest', 'jsx-a11y', 'prettier', 'cypress'],
29+
rules: {
30+
'prettier/prettier': ['error', prettierOptions],
31+
'arrow-body-style': [2, 'as-needed'],
32+
'comma-dangle': [2, 'always-multiline'],
33+
quotes: [
34+
1,
35+
'single',
36+
{
37+
avoidEscape: true,
38+
},
39+
],
40+
'no-undef': 2,
41+
'global-strict': 0,
42+
'no-extra-semi': 2,
43+
semi: ['error', 'never'],
44+
'no-underscore-dangle': 0,
45+
'no-shadow': 0,
46+
'no-unused-expressions': 0,
47+
'consistent-return': 0,
48+
'prefer-destructuring': 0,
49+
'no-useless-constructor': 0,
50+
'prefer-const': 0,
51+
'no-trailing-spaces': [
52+
1,
53+
{
54+
skipBlankLines: true,
55+
},
56+
],
57+
'no-unreachable': 1,
58+
'no-alert': 1,
59+
'max-len': 0,
60+
'newline-per-chained-call': 0,
61+
'no-confusing-arrow': 0,
62+
'no-console': 1,
63+
'no-unused-vars': 2,
64+
'no-use-before-define': 0,
65+
'import/imports-first': 0,
66+
'import/newline-after-import': 0,
67+
'import/no-dynamic-require': 0,
68+
'import/no-extraneous-dependencies': 0,
69+
'import/no-named-as-default': 0,
70+
'import/no-unresolved': 2,
71+
'import/no-webpack-loader-syntax': 0,
72+
'import/prefer-default-export': 0,
73+
indent: [
74+
2,
75+
2,
76+
{
77+
SwitchCase: 1,
78+
},
79+
],
80+
'react/destructuring-assignment': 0,
81+
'react/jsx-closing-tag-location': 0,
82+
'react/forbid-prop-types': 0,
83+
'react/jsx-first-prop-new-line': [2, 'multiline'],
84+
'react/jsx-filename-extension': 0,
85+
'react/jsx-no-target-blank': 0,
86+
'react/jsx-uses-vars': 2,
87+
'react/require-default-props': 0,
88+
'react/require-extension': 0,
89+
'react/self-closing-comp': 0,
90+
'react/sort-comp': 0,
91+
'jsx-a11y/aria-props': 2,
92+
'jsx-a11y/heading-has-content': 0,
93+
'jsx-a11y/label-has-for': 0,
94+
'jsx-a11y/mouse-events-have-key-events': 2,
95+
'jsx-a11y/role-has-required-aria-props': 2,
96+
'jsx-a11y/role-supports-aria-props': 2,
97+
},
98+
settings: {
99+
react: {
100+
version: '16.5.2',
101+
},
102+
'import/resolver': {
103+
alias: {
104+
map: [
105+
['src', path.resolve(__dirname, './src/')],
106+
['components', path.resolve(__dirname, './src/components')],
107+
['containers', path.resolve(__dirname, './src/containers')],
108+
['hoc', path.resolve(__dirname, './src/hoc')],
109+
['style', path.resolve(__dirname, './src/style')],
110+
['libs', path.resolve(__dirname, './src/libs')],
111+
['assets', path.resolve(__dirname, './src/assets')],
112+
['vendor', path.resolve(__dirname, './src/vendor')],
113+
['store', path.resolve(__dirname, './src/store')],
114+
['actions', path.resolve(__dirname, './src/store/actions')],
115+
['reducers', path.resolve(__dirname, './src/store/reducers')],
116+
],
117+
extensions: ['.js', '.json'],
118+
},
119+
},
120+
},
121+
}

client/.gitignore

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
node_modules
2+
build
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
.env.test
62+
63+
# parcel-bundler cache (https://parceljs.org/)
64+
.cache
65+
66+
# next.js build output
67+
.next
68+
69+
# nuxt.js build output
70+
.nuxt
71+
72+
# vuepress build output
73+
.vuepress/dist
74+
75+
# Serverless directories
76+
.serverless/
77+
78+
# FuseBox cache
79+
.fusebox/
80+
81+
# DynamoDB Local files
82+
.dynamodb/
File renamed without changes.

client/.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"trailingComma": "es5",
3+
"singleQuote": true,
4+
"semi": false,
5+
"tabWidth": 2,
6+
"useTabs": false,
7+
"bracketSpacing": true,
8+
"arrowParens": "avoid",
9+
"jsxBracketSameLine": true,
10+
"proseWrap": "preserve",
11+
"printWidth": 100
12+
}

client/.release-it.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"src": {
3+
"tagName": "v%s"
4+
},
5+
"github": {
6+
"release": true
7+
},
8+
"npm": {
9+
"publish": false
10+
},
11+
"increment": "conventional:angular",
12+
"beforeChangelogCommand": "conventional-changelog -p angular -i CHANGELOG.md -s",
13+
"changelogCommand": "conventional-changelog -p angular | tail -n +3",
14+
"safeBump": false,
15+
"requireCleanWorkingDir": false,
16+
"requireUpstream": false
17+
}

client/.stylelintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/node_modules/**/*
2+
/src/vendor/**/*
3+
/public/**/*

0 commit comments

Comments
 (0)