Skip to content
This repository was archived by the owner on Apr 21, 2022. It is now read-only.

Commit 8bfc261

Browse files
committed
chore: init
1 parent 3129abd commit 8bfc261

File tree

7 files changed

+5863
-0
lines changed

7 files changed

+5863
-0
lines changed

.editorconfig

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
# Use 4 spaces for the Python files
13+
[*.py]
14+
indent_size = 4
15+
max_line_length = 80
16+
17+
# The JSON files contain newlines inconsistently
18+
[*.json]
19+
insert_final_newline = ignore
20+
21+
# Minified JavaScript files shouldn't be changed
22+
[**.min.js]
23+
indent_style = ignore
24+
insert_final_newline = ignore
25+
26+
# Makefiles always use tabs for indentation
27+
[Makefile]
28+
indent_style = tab
29+
30+
# Batch files use tabs for indentation
31+
[*.bat]
32+
indent_style = tab
33+
34+
[*.md]
35+
trim_trailing_whitespace = false
36+

.eslintrc.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
node: true,
6+
jest: true,
7+
browser: true
8+
},
9+
plugins: ['prettier'],
10+
extends: ['eslint:recommended', require.resolve('eslint-config-prettier')],
11+
rules: {
12+
'prettier/prettier': 'warn',
13+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
14+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
15+
},
16+
parserOptions: {
17+
parser: 'babel-eslint',
18+
sourceType: 'module',
19+
ecmaVersion: 2019
20+
}
21+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
dist

.prettierrc

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

0 commit comments

Comments
 (0)