Skip to content

Commit 118c546

Browse files
committed
migration
1 parent 5b6e798 commit 118c546

File tree

13 files changed

+433
-0
lines changed

13 files changed

+433
-0
lines changed

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"typescript.tsdk": "node_modules/typescript/lib"
3+
}

front/.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
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
10+
11+
[*.md]
12+
trim_trailing_whitespace = false

front/.eslintrc.json

Lines changed: 263 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,263 @@
1+
{
2+
"parser": "@typescript-eslint/parser",
3+
"env": {
4+
"browser": true,
5+
"es6": true,
6+
"jest": true,
7+
"mocha": true
8+
},
9+
"plugins": ["react", "@typescript-eslint"],
10+
"extends": [
11+
"plugin:react/recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"prettier",
14+
"prettier/@typescript-eslint"
15+
],
16+
"parserOptions": {
17+
"ecmaFeatures": {
18+
"arrowFunctions": true,
19+
"binaryLiterals": true,
20+
"blockBindings": true,
21+
"classes": true,
22+
"defaultParams": true,
23+
"destructuring": true,
24+
"forOf": true,
25+
"generators": true,
26+
"modules": true,
27+
"objectLiteralComputedProperties": true,
28+
"objectLiteralDuplicateProperties": true,
29+
"objectLiteralShorthandMethods": true,
30+
"objectLiteralShorthandProperties": true,
31+
"octalLiterals": true,
32+
"regexUFlag": true,
33+
"regexYFlag": true,
34+
"spread": true,
35+
"superInFunctions": true,
36+
"templateStrings": true,
37+
"unicodeCodePointEscapes": true,
38+
"globalReturn": true,
39+
"jsx": true
40+
}
41+
},
42+
"globals": {
43+
"__DEV__": true,
44+
"__dirname": false,
45+
"__fbBatchedBridgeConfig": false,
46+
"alert": false,
47+
"cancelAnimationFrame": false,
48+
"clearImmediate": true,
49+
"clearInterval": false,
50+
"clearTimeout": false,
51+
"console": false,
52+
"document": false,
53+
"escape": false,
54+
"Event": false,
55+
"EventTarget": false,
56+
"exports": false,
57+
"fetch": false,
58+
"FormData": false,
59+
"global": false,
60+
"jest": false,
61+
"Map": true,
62+
"module": false,
63+
"navigator": false,
64+
"process": false,
65+
"Promise": true,
66+
"requestAnimationFrame": true,
67+
"require": false,
68+
"Set": true,
69+
"setImmediate": true,
70+
"setInterval": false,
71+
"setTimeout": false,
72+
"window": false,
73+
"XMLHttpRequest": false,
74+
"pit": false,
75+
76+
"ReactComponent": false,
77+
"ReactClass": false,
78+
"ReactElement": false,
79+
"ReactPropsCheckType": false,
80+
"ReactPropsChainableTypeChecker": false,
81+
"ReactPropTypes": false,
82+
"SyntheticEvent": false,
83+
"$Either": false,
84+
"$All": false,
85+
"$Tuple": false,
86+
"$Supertype": false,
87+
"$Subtype": false,
88+
"$Shape": false,
89+
"$Diff": false,
90+
"$Keys": false,
91+
"$Enum": false,
92+
"$Exports": false,
93+
"$FlowIssue": false,
94+
"$FlowFixMe": false,
95+
"$FixMe": false
96+
},
97+
"rules": {
98+
"prefer-const": [
99+
"error",
100+
{
101+
"destructuring": "any",
102+
"ignoreReadBeforeAssign": false
103+
}
104+
],
105+
"comma-dangle": ["error", "always-multiline"],
106+
"no-cond-assign": 1,
107+
"no-console": 0,
108+
"no-constant-condition": 0,
109+
"no-control-regex": 1,
110+
"no-debugger": 1,
111+
"no-dupe-keys": 1,
112+
"no-empty": 0,
113+
"no-ex-assign": 1,
114+
"no-extra-boolean-cast": 1,
115+
"no-extra-parens": 0,
116+
"no-extra-semi": 1,
117+
"no-func-assign": 1,
118+
"no-inner-declarations": 0,
119+
"no-invalid-regexp": 1,
120+
"no-negated-in-lhs": 1,
121+
"no-obj-calls": 1,
122+
"no-regex-spaces": 1,
123+
"no-reserved-keys": 0,
124+
"no-sparse-arrays": 1,
125+
"no-unreachable": 1,
126+
"use-isnan": 1,
127+
"valid-jsdoc": 0,
128+
"valid-typeof": 1,
129+
130+
"block-scoped-var": 0,
131+
"complexity": 0,
132+
"consistent-return": 0,
133+
"curly": 1,
134+
"default-case": 0,
135+
"dot-notation": 1,
136+
"eqeqeq": [1, "allow-null"],
137+
"guard-for-in": 0,
138+
"no-alert": 1,
139+
"no-caller": 1,
140+
"no-div-regex": 1,
141+
"no-else-return": 0,
142+
"no-eq-null": 0,
143+
"no-eval": 1,
144+
"no-extend-native": 1,
145+
"no-extra-bind": 1,
146+
"no-fallthrough": 1,
147+
"no-floating-decimal": 1,
148+
"no-implied-eval": 1,
149+
"no-labels": 1,
150+
"no-iterator": 1,
151+
"no-lone-blocks": 1,
152+
"no-loop-func": 0,
153+
"no-multi-str": 0,
154+
"no-native-reassign": 0,
155+
"no-new": 1,
156+
"no-new-func": 1,
157+
"no-new-wrappers": 1,
158+
"no-octal": 1,
159+
"no-octal-escape": 1,
160+
"no-proto": 1,
161+
"no-redeclare": 0,
162+
"no-return-assign": 1,
163+
"no-script-url": 1,
164+
"no-self-compare": 1,
165+
"no-sequences": 1,
166+
"no-unused-expressions": 0,
167+
"no-void": 1,
168+
"no-warning-comments": 0,
169+
"no-with": 1,
170+
"radix": 1,
171+
"semi-spacing": 1,
172+
"space-before-blocks": [1, "always"],
173+
"space-before-function-paren": [
174+
1,
175+
{
176+
"anonymous": "never",
177+
"named": "never"
178+
}
179+
],
180+
"space-in-parens": [1, "never"],
181+
"vars-on-top": 0,
182+
"wrap-iife": 0,
183+
"yoda": 1,
184+
185+
"no-catch-shadow": 1,
186+
"no-delete-var": 1,
187+
"no-label-var": 1,
188+
"no-shadow": 1,
189+
"no-shadow-restricted-names": 1,
190+
"no-undef": 2,
191+
"no-undefined": 0,
192+
"no-undef-init": 1,
193+
"no-unused-vars": [
194+
1,
195+
{
196+
"vars": "all",
197+
"args": "none"
198+
}
199+
],
200+
"no-use-before-define": 0,
201+
202+
"key-spacing": 0,
203+
"keyword-spacing": 1,
204+
"jsx-quotes": [1, "prefer-double"],
205+
"comma-spacing": 0,
206+
"no-multi-spaces": 0,
207+
"brace-style": 0,
208+
"camelcase": 0,
209+
"consistent-this": [1, "self"],
210+
"eol-last": 1,
211+
"func-names": 0,
212+
"func-style": 0,
213+
"new-cap": 0,
214+
"new-parens": 1,
215+
"no-nested-ternary": 0,
216+
"no-array-constructor": 1,
217+
"no-lonely-if": 0,
218+
"no-new-object": 1,
219+
"no-spaced-func": 1,
220+
"no-ternary": 0,
221+
"no-trailing-spaces": 1,
222+
"no-underscore-dangle": 0,
223+
"no-mixed-spaces-and-tabs": 1,
224+
"quotes": [1, "single", "avoid-escape"],
225+
"quote-props": 0,
226+
"semi": 1,
227+
"sort-vars": 0,
228+
"space-in-brackets": 0,
229+
"space-infix-ops": 1,
230+
"space-unary-ops": [
231+
1,
232+
{
233+
"words": true,
234+
"nonwords": false
235+
}
236+
],
237+
"spaced-comment": [1, "always"],
238+
"max-nested-callbacks": 0,
239+
"one-var": 0,
240+
"wrap-regex": 0,
241+
242+
"max-depth": 0,
243+
"max-len": 0,
244+
"max-params": 0,
245+
"max-statements": 0,
246+
"no-bitwise": 1,
247+
"no-plusplus": 0,
248+
"react/display-name": 0,
249+
"react/jsx-boolean-value": 0,
250+
"react/jsx-no-duplicate-props": 2,
251+
"react/jsx-no-undef": 1,
252+
"react/jsx-sort-props": 0,
253+
"react/jsx-uses-react": 1,
254+
"react/jsx-uses-vars": 1,
255+
"react/no-multi-comp": 0,
256+
"react/no-string-refs": 0,
257+
"react/no-unknown-property": 0,
258+
"react/prop-types": 0,
259+
"react/react-in-jsx-scope": 1,
260+
"react/self-closing-comp": 1,
261+
"react/wrap-multilines": 0
262+
}
263+
}

front/.nvmrc

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

front/.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
**/*.json
2+
**/*.txt
3+
**/*.xml
4+
**/*.svg

front/.prettierrc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"semi": true,
3+
"trailingComma": "all",
4+
"bracketSpacing": true,
5+
"jsxBracketSameLine": false,
6+
"singleQuote": true,
7+
"overrides": [],
8+
"printWidth": 80,
9+
"useTabs": false,
10+
"tabWidth": 2,
11+
"parser": "typescript"
12+
}

front/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<title>ReactJS Redux Bootstrap Starter</title>
6+
<meta charset="utf-8">
7+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
8+
<meta name="viewport" content="width=device-width, initial-scale=1">
9+
<meta name="description" content="ReactJS Redux Bootstrap Starter">
10+
<meta name="author" content="Erwan DATIN (MacKentoch)">
11+
<link rel="stylesheet" type="text/css"
12+
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
13+
</head>
14+
15+
<body>
16+
<section id="root"></section>
17+
<script type="text/javascript" src="app.js"></script>
18+
<script type="text/javascript" src="vendors.js"></script>
19+
</body>
20+
21+
</html>

front/jest.config.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
const { jsWithBabel: tsjPreset } = require('ts-jest/presets');
2+
3+
module.exports = {
4+
preset: 'ts-jest',
5+
transform: { ...tsjPreset.transform },
6+
testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|tsx?)$',
7+
moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'],
8+
globals: {
9+
'ts-jest': {
10+
tsConfig: './tsconfig.json',
11+
babelConfig: false,
12+
},
13+
},
14+
testEnvironment: 'node',
15+
verbose: true,
16+
roots: ['<rootDir>/src/', '<rootDir>/test'],
17+
setupFiles: [],
18+
setupFilesAfterEnv: ['<rootDir>/test/setupTests.ts'],
19+
moduleNameMapper: {
20+
'\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$':
21+
'<rootDir>/src/test/__mocks__/fileMock.js',
22+
'\\.(css|less|sass|scss)$': 'identity-obj-proxy',
23+
},
24+
coverageDirectory: './coverage/',
25+
collectCoverage: true,
26+
};

front/tsconfig.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
{
2+
"compilerOptions": {
3+
"importHelpers": true,
4+
"target": "es5",
5+
"types": ["react", "jest"],
6+
"lib": ["dom", "es2015", "esnext"],
7+
"module": "commonjs",
8+
"moduleResolution": "node",
9+
"checkJs": false,
10+
"allowSyntheticDefaultImports": true,
11+
"esModuleInterop": true,
12+
"jsx": "react",
13+
"sourceMap": true,
14+
"removeComments": true,
15+
"strict": true,
16+
"noImplicitAny": true,
17+
"noImplicitThis": true,
18+
"resolveJsonModule": true,
19+
"outDir": "../dist/assets"
20+
},
21+
"include": ["./src"]
22+
}

server/.yarnclean

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@types/react-native

0 commit comments

Comments
 (0)