Skip to content

Commit

Permalink
add ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbarbara committed Oct 30, 2016
1 parent a4f786a commit 1a74690
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,16 @@
---
engines:
eslint:
enabled: true
channel: "eslint-3"
duplication:
enabled: true
config:
languages:
- javascript
ratings:
paths:
- "**.js"
exclude_paths:
- node_modules/**/*
- test/**/*
11 changes: 11 additions & 0 deletions .editorconfig
@@ -0,0 +1,11 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
indent_style = space
indent_size = 2
24 changes: 24 additions & 0 deletions .eslintrc
@@ -0,0 +1,24 @@
{
"extends": "airbnb",
"env": {
"node": true
},
"rules": {
"arrow-parens": [1, "as-needed"],
"brace-style": [1, "stroustrup", { "allowSingleLine": true }],
"comma-dangle": [2, "never"],
"no-unused-vars": 1,
"spaced-comment": [
1,
"always", {
"exceptions": [
"-+"
],
"markers": [
"eslint-disable",
"eslint-disable-line"
]
}
]
}
}
10 changes: 10 additions & 0 deletions package.json
Expand Up @@ -27,5 +27,15 @@
"stylelint-config-standard": "^14.0.0",
"stylelint-scss": "^1.3.4",
"stylelint-selector-bem-pattern": "^1.0.0"
},
"devDependencies": {
"babel-eslint": "^7.1.0",
"eslint": "^3.9.0",
"eslint-config-airbnb": "^12.0.0",
"eslint-plugin-babel": "^3.3.0",
"eslint-plugin-import": "^2.0.1",
"eslint-plugin-jsx-a11y": "^2.2.3",
"eslint-plugin-promise": "^3.3.0",
"eslint-plugin-react": "^6.4.1"
}
}

0 comments on commit 1a74690

Please sign in to comment.