Skip to content

Commit fffbe04

Browse files
committed
initial commit copied from front-employee
1 parent f1b47e1 commit fffbe04

137 files changed

Lines changed: 3586 additions & 0 deletions

File tree

Some content is hidden

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

.babelrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"presets": [
3+
"@babel/preset-env",
4+
"@babel/preset-typescript",
5+
"@babel/preset-react"
6+
],
7+
"plugins": ["react-hot-loader/babel", "emotion"]
8+
}

.editorconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
.rpt2_cache
3+
.vscode
4+
config
5+
dist
6+
*.spec.ts

.eslintrc.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'prettier/@typescript-eslint',
6+
'plugin:prettier/recommended',
7+
'plugin:react/recommended',
8+
],
9+
plugins: ['@typescript-eslint', 'prettier'],
10+
rules: {
11+
'@typescript-eslint/no-explicit-any': 'off',
12+
'@typescript-eslint/explicit-function-return-type': 'off',
13+
'react/prop-types': 'off',
14+
},
15+
settings: {
16+
react: {
17+
version: 'detect',
18+
},
19+
},
20+
};

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
dist
3+
coverage
4+
.awcache
5+
test-report.*
6+
junit.xml
7+
*.log
8+
*.orig
9+
package-lock.json
10+
yarn.lock
11+
.awcache
12+
public

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "es5",
4+
"endOfLine": "lf"
5+
}

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"editor.formatOnSave": true
3+
}

config/test/jest.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
rootDir: '../../',
3+
preset: 'ts-jest',
4+
restoreMocks: true,
5+
moduleNameMapper: {
6+
'^common-app(.*)$': '<rootDir>/src/common-app/$1',
7+
'^common(.*)$': '<rootDir>/src/common/$1',
8+
'^core(.*)$': '<rootDir>/src/core/$1',
9+
'^layouts(.*)$': '<rootDir>/src/layouts/$1',
10+
'^pods(.*)$': '<rootDir>/src/pods/$1',
11+
'^scenes(.*)$': '<rootDir>/src/scenes/$1',
12+
},
13+
setupFilesAfterEnv: ['<rootDir>/config/test/setup.ts'],
14+
};

config/test/setup.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import '@testing-library/jest-dom';
2+
import '@testing-library/jest-dom/extend-expect';

config/webpack/analyze.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const merge = require('webpack-merge');
2+
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
3+
const config = require('./prod');
4+
5+
module.exports = merge(config, {
6+
plugins: [new BundleAnalyzerPlugin()],
7+
});

0 commit comments

Comments
 (0)