0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-06 22:40:26 -05:00

refactor: enable keyword-spacing eslint rule

This commit is contained in:
Juan Picado @jotadeveloper 2018-04-30 18:40:51 +02:00
parent 16fc854f57
commit 344ea3ae3f
No known key found for this signature in database
GPG key ID: 18AC54485952D158
15 changed files with 16 additions and 19 deletions

View file

@ -31,7 +31,7 @@
}, },
"rules": { "rules": {
"no-tabs": 2, "no-tabs": 2,
"keyword-spacing": 0, "keyword-spacing": 2,
"padded-blocks": 0, "padded-blocks": 0,
"no-useless-escape": 0, "no-useless-escape": 0,
"handle-callback-err": 2, "handle-callback-err": 2,

View file

@ -231,7 +231,6 @@ class LocalStorage implements IStorage {
let tarball = metadata.dist.tarball.replace(/.*\//, ''); let tarball = metadata.dist.tarball.replace(/.*\//, '');
if (isObject(data._attachments[tarball])) { if (isObject(data._attachments[tarball])) {
if (_.isNil(data._attachments[tarball].shasum) === false && _.isNil(metadata.dist.shasum) === false) { if (_.isNil(data._attachments[tarball].shasum) === false && _.isNil(metadata.dist.shasum) === false) {
if (data._attachments[tarball].shasum != metadata.dist.shasum) { if (data._attachments[tarball].shasum != metadata.dist.shasum) {
const errorMessage = `shasum error, ${data._attachments[tarball].shasum} != ${metadata.dist.shasum}`; const errorMessage = `shasum error, ${data._attachments[tarball].shasum} != ${metadata.dist.shasum}`;

View file

@ -639,7 +639,6 @@ class ProxyStorage implements IProxy {
this.logger.debug( {url: this.url.href, proxy: this.proxy}, 'using proxy @{proxy} for @{url}' ); this.logger.debug( {url: this.url.href, proxy: this.proxy}, 'using proxy @{proxy} for @{url}' );
} }
} }
} }
export default ProxyStorage; export default ProxyStorage;

View file

@ -123,5 +123,4 @@ export default class Home extends React.Component {
renderPackageList() { renderPackageList() {
return <PackageList help={this.state.fistTime} packages={this.state.packages} />; return <PackageList help={this.state.fistTime} packages={this.state.packages} />;
} }
} }