Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
Added .eslint and .editorconfig files
  • Loading branch information
matheusvellone committed Aug 20, 2017
0 parents commit 8031f9a
Show file tree
Hide file tree
Showing 2 changed files with 107 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
root = true

[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
indent_style = space
indent_size = 4
trim_trailing_whitespace = true
98 changes: 98 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
module.exports = {
"env": {
"es6": true,
"node": true,
"browser": true,
},
"globals": {
"define": true,
"it": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"plugins": ["react"],
"settings": {
"react": {
"createClass": "createClass",
"pragma": "React",
"version": "15.0"
}
},
"extends": ["airbnb-base", "plugin:react/recommended"],
"parser": "babel-eslint",
"rules": {
"no-multiple-empty-lines": [
"error",
{
"max": 1
}
],
"import/no-dynamic-require": [
0
],
"comma-dangle": [
"error",
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "never"
}
],
"no-underscore-dangle": [
0,
{
"allowAfterThis": true,
"allowAfterSuper": true
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"no-param-reassign": [
0
],
"object-shorthand": [
"warn"
],
"arrow-body-style": [
"warn",
"always"
],
"indent": [
"error",
4,
{
SwitchCase: 1
}
],
"quotes": [
"warn",
"single"
],
"no-console": [
"warn"
],
"linebreak-style": [
0
],
"semi": [
"error",
"always"
],
"max-len": [
0,
80,
4
]
}
};

0 comments on commit 8031f9a

Please sign in to comment.