-
-
Notifications
You must be signed in to change notification settings - Fork 202
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
105 changed files
with
3,116 additions
and
2,288 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,67 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
root: true, | ||
parserOptions: { | ||
ecmaVersion: 2017, | ||
}, | ||
plugins: ['import', 'prettier'], | ||
extends: ['eslint:recommended', 'plugin:import/errors', 'plugin:import/warnings', 'prettier'], | ||
env: { | ||
node: true, | ||
jest: true, | ||
}, | ||
extends: [ | ||
'airbnb-base', | ||
], | ||
rules: { | ||
'func-names': 0, | ||
'no-use-before-define': 0, | ||
'no-plusplus': 0, | ||
'strict': 0, | ||
'comma-dangle': [0, { | ||
'functions': 'never', | ||
}], | ||
// Possible Errors | ||
// 'no-async-promise-executor': 'error', // available in ESLint 5 | ||
'no-template-curly-in-string': 'error', | ||
// 'require-atomic-updates': 'error', // available in ESLint 5 | ||
|
||
// Best Practices | ||
'array-callback-return': 'error', | ||
eqeqeq: 'error', | ||
'no-eval': 'error', | ||
'no-extend-native': 'error', | ||
'no-extra-bind': 'error', | ||
'no-implicit-coercion': 'error', | ||
'no-implied-eval': 'error', | ||
'no-lone-blocks': 'error', | ||
'no-new-func': 'error', | ||
'no-new-wrappers': 'error', | ||
'no-octal-escape': 'error', | ||
'no-return-assign': 'error', | ||
'no-self-compare': 'error', | ||
'no-sequences': 'error', | ||
'no-throw-literal': 'error', | ||
'no-unused-expressions': 'error', | ||
'no-useless-call': 'error', | ||
// 'no-useless-catch': 'error', // available in ESLint 5 | ||
'no-useless-concat': 'error', | ||
'no-useless-escape': 'error', | ||
'no-useless-return': 'error', | ||
'no-void': 'error', | ||
'no-with': 'error', | ||
'prefer-promise-reject-errors': 'error', | ||
radix: 'error', | ||
'wrap-iife': 'error', | ||
yoda: 'error', | ||
|
||
// ECMAScript 6 | ||
'no-duplicate-imports': 'error', | ||
'no-useless-computed-key': 'error', | ||
'no-useless-constructor': 'error', | ||
'no-useless-rename': 'error', | ||
'no-var': 'error', | ||
'object-shorthand': 'error', | ||
'prefer-numeric-literals': 'error', | ||
|
||
'prettier/prettier': 'error', | ||
}, | ||
} | ||
overrides: [ | ||
// test files | ||
{ | ||
files: ['tests/**/*.js',], | ||
env: { jest: true }, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,8 @@ logs | |
node_modules | ||
|
||
# Misc | ||
.eslintcache | ||
coverage | ||
npm-debug.log | ||
*.swp | ||
.vscode | ||
.vscode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
'use strict'; | ||
|
||
module.exports = { | ||
printWidth: 100, | ||
semi: true, | ||
singleQuote: true, | ||
trailingComma: 'es5', | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.