-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* extend eslint airbnb and refactor to respect rules * fix remaining lint issues * fix buggy tests * Add a test for totalBytes in uploadProgress (not yet implemented for isResumable=false) * Move out eslint #90 https://github.com/transloadit/eslint-config-transloadit * upgrade to newest eslint-config-transloadit version
- Loading branch information
Showing
14 changed files
with
205 additions
and
170 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,36 +1,3 @@ | ||
// Selectively include rules from airbnb https://github.com/transloadit/node-sdk/issues/90 | ||
// eslint-disable-next-line import/no-extraneous-dependencies | ||
const airbnbRulesImports = require('eslint-config-airbnb-base/rules/imports').rules | ||
|
||
module.exports = { | ||
extends: 'standard', | ||
env : { | ||
es6 : true, | ||
jest: true, | ||
node: true, | ||
}, | ||
rules: { | ||
// See https://github.com/transloadit/node-sdk/issues/93 | ||
'import/no-extraneous-dependencies': airbnbRulesImports['import/no-extraneous-dependencies'], | ||
'no-multi-spaces' : 0, | ||
'comma-dangle' : [ | ||
'error', | ||
'always-multiline', | ||
], | ||
'key-spacing': [ | ||
'error', | ||
{ | ||
multiLine: { | ||
beforeColon: false, | ||
afterColon : true, | ||
}, | ||
align: { | ||
beforeColon: false, | ||
afterColon : true, | ||
on : 'colon', | ||
mode : 'strict', | ||
}, | ||
}, | ||
], | ||
}, | ||
extends: 'transloadit', | ||
} |
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,5 @@ | ||
module.exports = { | ||
rules: { | ||
'no-console': 0, | ||
}, | ||
} |
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.