Add eslintrc
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"mocha": true,
|
||||
"es6": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"quotemark": false,
|
||||
"ordered-imports": false,
|
||||
"no-var-requires": false,
|
||||
"indent": [
|
||||
"error",
|
||||
2
|
||||
],
|
||||
"no-console": 0,
|
||||
"eofline": false,
|
||||
"no-unused-variable": true,
|
||||
"no-unused-expression": true,
|
||||
"only-arrow-functions": false,
|
||||
"space-before-function-paren": 0,
|
||||
"trailing-comma": [
|
||||
true,
|
||||
"never"
|
||||
],
|
||||
"object-literal-sort-keys": false,
|
||||
"semi": [
|
||||
"warn",
|
||||
"never"
|
||||
],
|
||||
"space-infix-ops": [
|
||||
"warn"
|
||||
],
|
||||
"no-var": "error",
|
||||
"prefer-const": "error",
|
||||
"no-trailing-spaces": "error"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user