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:
parent
16fc854f57
commit
344ea3ae3f
15 changed files with 16 additions and 19 deletions
|
@ -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,
|
||||||
|
|
|
@ -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}`;
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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} />;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue