Skip to content

Commit 245d278

Browse files
committed
feat: Implement
1 parent b045923 commit 245d278

38 files changed

+11751
-0
lines changed

.babelrc

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
// used for jest only. see rollup.config.js for the rollup babel config
3+
4+
"presets": [
5+
[
6+
"env",
7+
{
8+
"targets": {
9+
"node": "current"
10+
}
11+
}
12+
],
13+
"react",
14+
"flow"
15+
],
16+
"plugins": ["transform-object-rest-spread", "transform-class-properties"]
17+
}

.editorconfig

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
; http://EditorConfig.org
2+
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
indent_size = 4
8+
end_of_line = lf
9+
charset = utf-8
10+
trim_trailing_whitespace = true
11+
insert_final_newline = true
12+
13+
[package.json]
14+
indent_size = 2

.eslintignore

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
flow-typed/*
2+
dist/*
3+
flow-coverage/*
4+
coverage/*
5+
6+
# examples
7+
**/node_modules/*
8+
**/dist/*

.eslintrc.js

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
module.exports = {
2+
root: true,
3+
4+
extends: [
5+
'airbnb',
6+
'plugin:prettier/recommended',
7+
'plugin:flowtype/recommended',
8+
'plugin:jest/recommended',
9+
],
10+
11+
plugins: ['flowtype', 'jest'],
12+
13+
env: {
14+
'jest/globals': true,
15+
browser: true,
16+
},
17+
18+
rules: {
19+
// allow console methods
20+
'no-console': 'off',
21+
22+
// wish i could say 4 once.
23+
'react/jsx-indent': ['error', 4],
24+
'react/jsx-indent-props': ['error', 4],
25+
26+
// as we're using flow for typing
27+
'react/require-default-props': 'off',
28+
29+
// needless pickiness, even for me
30+
'react/destructuring-assignment': 'off',
31+
'react/jsx-one-expression-per-line': 'off',
32+
'react/no-multi-comp': 'off',
33+
34+
// as prettier owns code formatting
35+
'flowtype/space-after-type-colon': 'off',
36+
},
37+
38+
globals: {},
39+
};

.flowconfig

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# for third-party modules that use flow, you need to let flow do its thing:
2+
# so you shouldn't ignore the entirety of node_modules.
3+
# however, you might have to adjust the [ignore] etc sections HERE
4+
# to account for what those modules need. for example, if a module
5+
# uses a magic marker to ignore certain flow errors, you need to include
6+
# that magic string HERE too.
7+
[ignore]
8+
9+
[include]
10+
11+
[libs]
12+
flow-typed/
13+
14+
[lints]
15+
16+
[options]
17+
18+
[strict]

.gitignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
.DS_Store
2+
node_modules
3+
package-lock.json
4+
dist
5+
coverage
6+
yarn-error.log

.prettierignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
flow-typed/*
2+
dist/*
3+
flow-coverage/*
4+
coverage/*

.vscode/settings.json

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

0 commit comments

Comments
 (0)