Skip to content

Commit

Permalink
Merge pull request #5 from beeblebrox3/compatibility-new-react
Browse files Browse the repository at this point in the history
Compatibility with React 16
  • Loading branch information
beeblebrox3 authored Jan 3, 2018
2 parents 13913e2 + da6f7d9 commit d903e15
Show file tree
Hide file tree
Showing 18 changed files with 8,801 additions and 4,497 deletions.
10 changes: 10 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"presets": [
["env", {
"targets": {
"browsers": ["last 2 versions"]
}
}],
"react"
]
}
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
40 changes: 0 additions & 40 deletions .eslintrc

This file was deleted.

37 changes: 37 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
"node": true
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"sourceType": "module",
"ecmaVersion": 8
},
"globals": {
"require": true
},
"rules": {
"no-underscore-dangle": "warn",
"no-alert": "error",
"camelcase": "warn",
"eqeqeq": "warn",

"react/display-name": "error",
"react/jsx-curly-spacing": ["error", "always"]
},
"plugins": [
"react"
],
"settings": {
"react": {
"createClass": "createClass",
"pragma": "React"
}
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
.buildpath
.komodoproject
.DS_Store
/.vscode
Loading

0 comments on commit d903e15

Please sign in to comment.