Skip to content

Commit 48d6829

Browse files
author
Kris Hoyt
committed
Add project config files
1 parent 4c485f7 commit 48d6829

File tree

4 files changed

+119
-0
lines changed

4 files changed

+119
-0
lines changed

.babelrc

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"sourceMaps": true,
3+
"presets": [
4+
["es2015", { "loose":true }],
5+
"stage-0"
6+
],
7+
"plugins": [
8+
["transform-decorators-legacy"],
9+
["transform-react-jsx", { "pragma": "h" }],
10+
["transform-object-assign"]
11+
]
12+
}

.editorconfig

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
indent_style = tab
5+
end_of_line = lf
6+
charset = utf-8
7+
trim_trailing_whitespace = true
8+
insert_final_newline = true
9+
10+
[{package.json,.*rc,*.yml}]
11+
indent_style = space
12+
indent_size = 2
13+
14+
[*.md]
15+
trim_trailing_whitespace = false

.eslintrc

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
{
2+
"parser": "babel-eslint",
3+
"extends": "eslint:recommended",
4+
"plugins": [
5+
"react",
6+
"jest"
7+
],
8+
"env": {
9+
"browser": true,
10+
"node": true,
11+
"mocha": true,
12+
"es6": true,
13+
"jest/globals": true
14+
},
15+
"parserOptions": {
16+
"ecmaFeatures": {
17+
"modules": true,
18+
"jsx": true
19+
}
20+
},
21+
"settings": {
22+
"react": {
23+
"pragma": "h"
24+
}
25+
},
26+
"globals": {
27+
"sleep": 1
28+
},
29+
"rules": {
30+
"react/jsx-no-bind": [2, { "ignoreRefs": true }],
31+
"react/jsx-no-duplicate-props": 2,
32+
"react/self-closing-comp": 2,
33+
"react/prefer-es6-class": 2,
34+
"react/no-string-refs": 2,
35+
"react/require-render-return": 2,
36+
"react/no-find-dom-node": 2,
37+
"react/no-is-mounted": 2,
38+
"react/jsx-no-comment-textnodes": 2,
39+
"react/jsx-curly-spacing": 2,
40+
"react/jsx-no-undef": 2,
41+
"react/jsx-uses-react": 2,
42+
"react/jsx-uses-vars": 2,
43+
"jest/no-disabled-tests": 1,
44+
"jest/no-focused-tests": 1,
45+
"jest/no-identical-title": 2,
46+
"no-empty": 0,
47+
"no-console": 0,
48+
"no-empty-pattern": 0,
49+
"no-cond-assign": 1,
50+
"semi": 2,
51+
"camelcase": 0,
52+
"comma-style": 2,
53+
"comma-dangle": 0,
54+
"indent": [2, "tab", {"SwitchCase": 1}],
55+
"no-mixed-spaces-and-tabs": [2, "smart-tabs"],
56+
"no-trailing-spaces": [2, { "skipBlankLines": true }],
57+
"max-nested-callbacks": [2, 3],
58+
"no-eval": 2,
59+
"no-implied-eval": 2,
60+
"no-new-func": 2,
61+
"guard-for-in": 2,
62+
"eqeqeq": 1,
63+
"no-else-return": 2,
64+
"no-redeclare": 2,
65+
"no-dupe-keys": 2,
66+
"radix": 2,
67+
"strict": [2, "never"],
68+
"no-shadow": 0,
69+
"no-delete-var": 2,
70+
"no-undef-init": 2,
71+
"no-shadow-restricted-names": 2,
72+
"handle-callback-err": 0,
73+
"no-lonely-if": 2,
74+
"keyword-spacing": 2,
75+
"constructor-super": 2,
76+
"no-this-before-super": 2,
77+
"no-dupe-class-members": 2,
78+
"no-const-assign": 2,
79+
"prefer-spread": 2,
80+
"no-useless-concat": 2,
81+
"no-var": 2,
82+
"object-shorthand": 2,
83+
"prefer-arrow-callback": 2
84+
}
85+
}

.gitignore

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/node_modules
2+
/npm-debug.log
3+
/build
4+
.DS_Store
5+
/coverage
6+
/.idea
7+
/.vscode

0 commit comments

Comments
 (0)