Skip to content

Commit 734424b

Browse files
committed
first commit
0 parents  commit 734424b

13 files changed

+147449
-0
lines changed

.editorconfig

+12
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

.eslintignore

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
*.json
2+
*.md
3+
*.css
4+
*.d.ts
5+
6+
node_modules/
7+
dist/
8+
main/
9+
module/
10+
coverage/

.eslintrc.js

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
module.exports = {
2+
plugins: ['prettier'],
3+
extends: ['eslint:recommended', 'prettier'],
4+
parser: '@babel/eslint-parser',
5+
settings: {
6+
next: {
7+
rootDir: 'packages/next/'
8+
}
9+
},
10+
parserOptions: {
11+
ecmaVersion: 11,
12+
requireConfigFile: false,
13+
sourceType: 'module',
14+
ecmaFeatures: {
15+
jsx: true
16+
}
17+
},
18+
env: {
19+
es6: true,
20+
browser: true,
21+
node: true,
22+
jest: true
23+
},
24+
rules: {
25+
'no-debugger': 2,
26+
'no-alert': 2,
27+
'no-await-in-loop': 0,
28+
'no-prototype-builtins': 0,
29+
'no-return-assign': ['error', 'except-parens'],
30+
'no-restricted-syntax': [
31+
2,
32+
'ForInStatement',
33+
'LabeledStatement',
34+
'WithStatement'
35+
],
36+
'no-unused-vars': [
37+
0,
38+
{
39+
ignoreSiblings: true,
40+
argsIgnorePattern: 'res|next|^_'
41+
}
42+
],
43+
'prefer-const': [
44+
'error',
45+
{
46+
destructuring: 'all'
47+
}
48+
],
49+
'no-unused-expressions': [
50+
2,
51+
{
52+
allowTaggedTemplates: true
53+
}
54+
],
55+
'no-console': 1,
56+
'comma-dangle': 2,
57+
'jsx-quotes': [2, 'prefer-double'],
58+
'linebreak-style': ['error', 'unix'],
59+
quotes: [
60+
2,
61+
'single',
62+
{
63+
avoidEscape: true,
64+
allowTemplateLiterals: true
65+
}
66+
],
67+
'prettier/prettier': [
68+
'error',
69+
{
70+
trailingComma: 'none',
71+
singleQuote: true,
72+
printWidth: 80
73+
}
74+
]
75+
}
76+
};

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.gitignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
.DS_Store
2+
.eslintcache
3+
*.log
4+
**/node_modules
5+
coverage
6+
packages/**/build
7+
packages/**/main
8+
packages/**/module

.vscode/settings.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"[javascriptreact]": {
4+
"editor.formatOnSave": false
5+
},
6+
"[javascript]": {
7+
"editor.formatOnSave": false
8+
},
9+
"editor.codeActionsOnSave": {
10+
"source.fixAll.eslint": true
11+
},
12+
"eslint.validate": [
13+
"javascript",
14+
"javascriptreact"
15+
]
16+
}

0 commit comments

Comments
 (0)