Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit c4a4756

Browse files
committedJun 21, 2019
add forms
0 parents  commit c4a4756

File tree

135 files changed

+4560
-0
lines changed

Some content is hidden

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

135 files changed

+4560
-0
lines changed
 

‎.babelrc.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const presets = ["@babel/preset-env", "@babel/preset-react"];
2+
3+
const plugins = [
4+
[
5+
"babel-plugin-styled-components",
6+
{
7+
displayName: process.env["NODE_ENV"] !== "production",
8+
transpileTemplateLiterals: true
9+
}
10+
],
11+
];
12+
13+
module.exports = {
14+
presets,
15+
plugins
16+
};

‎.eslintrc.js

+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
module.exports = {
2+
parser: 'babel-eslint',
3+
env: {
4+
browser: true,
5+
commonjs: true,
6+
es6: true,
7+
},
8+
globals: {
9+
page: true,
10+
browser: true,
11+
__dirname: true,
12+
describe: true,
13+
beforeAll: true,
14+
it: true,
15+
afterAll: true,
16+
expect: true,
17+
jest: true,
18+
process: true,
19+
},
20+
extends: ['airbnb'],
21+
parserOptions: {
22+
ecmaFeatures: {
23+
experimentalObjectRestSpread: true,
24+
experimentalDecorators: true,
25+
legacyDecorators: true,
26+
jsx: true,
27+
},
28+
sourceType: 'module',
29+
},
30+
plugins: ['react'],
31+
rules: {
32+
'implicit-arrow-linebreak': 'off',
33+
'import/extensions': 'off',
34+
'import/order': [
35+
'error',
36+
{
37+
groups: ['external', 'builtin', 'sibling', 'parent'],
38+
'newlines-between': 'always',
39+
},
40+
],
41+
indent: ['error', 4],
42+
'no-multiple-empty-lines': [
43+
2,
44+
{
45+
max: 1,
46+
},
47+
],
48+
'import/no-extraneous-dependencies': 'off',
49+
'import/no-named-as-default': 'off',
50+
'import/prefer-default-export': 'off',
51+
'jsx-a11y/anchor-is-valid': 'off',
52+
'jsx-a11y/label-has-for': 'off',
53+
'linebreak-style': ['error', 'unix'],
54+
'no-console': 'off',
55+
'no-param-reassign': 'off',
56+
'no-return-await': 'off',
57+
'no-unused-expressions': 'off',
58+
quotes: ['error', 'single'],
59+
'react/jsx-indent': 'off',
60+
'react/jsx-indent-props': 'off',
61+
'react/jsx-uses-react': 'error',
62+
'react/jsx-uses-vars': 'error',
63+
'react/jsx-no-bind': [
64+
'error',
65+
{
66+
ignoreRefs: true,
67+
allowArrowFunctions: true,
68+
allowFunctions: true,
69+
allowBind: true,
70+
},
71+
],
72+
'react/prop-types': 'off',
73+
'react/sort-comp': [
74+
2,
75+
{
76+
order: ['static-methods', 'lifecycle', 'render', 'everything-else'],
77+
},
78+
],
79+
semi: ['error', 'always'],
80+
},
81+
};

0 commit comments

Comments
 (0)
Please sign in to comment.