Skip to content

Commit

Permalink
Add eslint configuration with precommit npm hook
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasfloriani committed May 2, 2020
1 parent eab86f2 commit 322efb0
Show file tree
Hide file tree
Showing 4 changed files with 2,050 additions and 3 deletions.
32 changes: 32 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"env": {
"es6": true,
"node": true
},
"extends": ["airbnb-base"],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["@typescript-eslint"],
"rules": {
"arrow-body-style": 0,
"arrow-parens": [2, "as-needed", { "requireForBlockBody": true }],
"comma-dangle": [2, "always-multiline"],
"import/prefer-default-export": 0,
"max-len": ["error", {
"code": 120,
"comments": 120,
"ignoreComments": false,
"tabWidth": 2
}],
"no-confusing-arrow": 0,
"no-underscore-dangle": ["error", { "allow": ["__typename"] }],
"semi": [2, "never"]
}
}
Loading

0 comments on commit 322efb0

Please sign in to comment.