Skip to content

Commit

Permalink
Merge pull request #2001 from COzero/tests/add-eslint/2000
Browse files Browse the repository at this point in the history
test($linting): Add ESLint config
  • Loading branch information
liquidpele authored Apr 9, 2017
2 parents 0adc0b2 + 80a6658 commit 4bb18ff
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"env": {
"browser": true,
"node": true,
"es6": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"globals": {
"nv": true,
"d3": true
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"object-curly-spacing": [
"error",
"always"
],
"prefer-arrow-callback": [
"error",
{
"allowNamedFunctions": true
}
],
"arrow-parens": [
"error",
"always"
],
"space-before-function-paren": ["error", {
"anonymous": "never",
"named": "never",
"asyncArrow": "never"
}],
"semi": [
"error",
"always"
],
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "ignore"
}]
}
}

0 comments on commit 4bb18ff

Please sign in to comment.