Skip to content

Commit

Permalink
refactor: use ls-lint (renovatebot#7956)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Dec 11, 2020
1 parent 8ec93ef commit 00a0822
Show file tree
Hide file tree
Showing 81 changed files with 103 additions and 114 deletions.
18 changes: 18 additions & 0 deletions .ls-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ls:
.js: kebab-case
.md: kebab-case
.ts: kebab-case
.d.ts: kebab-case
.spec.ts: kebab-case
.generated.ts: kebab-case

ignore:
- .eslintrc.js
- .git
- .github/ISSUE_TEMPLATE
- .github/pull_request_template.md
- dist
- jest.config.js
- node_modules
- SECURITY.md
- test/e2e/node_modules
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion lib/config/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('config/index', () => {
it('supports config.force', async () => {
const configPath = upath.join(
__dirname,
'config/__fixtures__/withForce.js'
'config/__fixtures__/with-force.js'
);
const env: NodeJS.ProcessEnv = {
...defaultEnv,
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/bitbucket-server/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../../../test/httpMock';
import * as httpMock from '../../../../test/http-mock';
import { getName, mocked } from '../../../../test/util';
import * as _hostRules from '../../../util/host-rules';
import { PRESET_DEP_NOT_FOUND } from '../util';
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/gitea/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../../../test/httpMock';
import * as httpMock from '../../../../test/http-mock';
import { getName, mocked } from '../../../../test/util';
import * as _hostRules from '../../../util/host-rules';
import { setBaseUrl } from '../../../util/http/gitea';
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/github/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../../../test/httpMock';
import * as httpMock from '../../../../test/http-mock';
import { getName, mocked } from '../../../../test/util';
import * as _hostRules from '../../../util/host-rules';
import { PRESET_NOT_FOUND } from '../util';
Expand Down
2 changes: 1 addition & 1 deletion lib/config/presets/gitlab/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../../../test/httpMock';
import * as httpMock from '../../../../test/http-mock';
import { getName } from '../../../../test/util';
import { EXTERNAL_HOST_ERROR } from '../../../constants/error-messages';
import { PRESET_DEP_NOT_FOUND } from '../util';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/cdnjs/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages';
import { id as datasource } from '.';

Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/crate/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';

import { id as datasource, getIndexSuffix } from '.';

Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/dart/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

const body: any = JSON.parse(
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/docker/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import AWS from 'aws-sdk';
import AWSMock from 'aws-sdk-mock';
import { getDigest, getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { getName, mocked } from '../../../test/util';
import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages';
import * as _hostRules from '../../util/host-rules';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/galaxy/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';

import { id as datasource } from '.';

Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/github-releases/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import * as _hostRules from '../../util/host-rules';
import { id as datasource } from '.';
import * as github from '.';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/github-tags/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import * as _hostRules from '../../util/host-rules';
import * as github from '.';

Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/gitlab-tags/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

describe('datasource/gitlab-tags', () => {
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/go/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource, getDigest } from '.';

const res1 = `<!DOCTYPE html>
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/gradle-version/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { GetPkgReleasesConfig, getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as versioning } from '../../versioning/gradle';
import { id as datasource } from '.';

Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/helm/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

// Truncated index.yaml file
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/hex/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages';
import * as _hostRules from '../../util/host-rules';
import { id as datasource } from '.';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/jenkins-plugins/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { getName } from '../../../test/util';
import * as versioning from '../../versioning/docker';
import jenkinsPluginsVersions from './__fixtures__/plugin-versions.json';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/npm/get.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { getName } from '../../../test/util';
import { ExternalHostError } from '../../types/errors/external-host-error';
import { getDependency, resetMemCache } from './get';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/nuget/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import * as _hostRules from '../../util/host-rules';
import { id as versioning } from '../../versioning/nuget';
import { id as datasource } from '.';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/orb/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

const orbData = {
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/packagist/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import * as _hostRules from '../../util/host-rules';
import * as composerVersioning from '../../versioning/composer';
import { id as versioning } from '../../versioning/loose';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/pod/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages';
import * as rubyVersioning from '../../versioning/ruby';
import * as pod from '.';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/pypi/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

const res1: any = fs.readFileSync(
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/repology/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { getName } from '../../../test/util';
import { EXTERNAL_HOST_ERROR } from '../../constants/error-messages';
import { id as versioning } from '../../versioning/loose';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/ruby-version/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

const rubyReleasesHtml = fs.readFileSync(
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/rubygems/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import * as rubyVersioning from '../../versioning/ruby';
import railsInfo from './__fixtures__/rails/info.json';
import railsVersions from './__fixtures__/rails/versions.json';
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/terraform-module/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource } from '.';

const consulData: any = fs.readFileSync(
Expand Down
2 changes: 1 addition & 1 deletion lib/datasource/terraform-provider/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { getPkgReleases } from '..';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { id as datasource, defaultRegistryUrls } from '.';

const consulData: any = fs.readFileSync(
Expand Down
2 changes: 1 addition & 1 deletion lib/logger/err-serializer.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as httpMock from '../../test/httpMock';
import * as httpMock from '../../test/http-mock';
import { partial } from '../../test/util';
import * as hostRules from '../util/host-rules';
import { Http } from '../util/http';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/bazel/update.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFileSync } from 'fs';
import { Readable } from 'stream';
import { resolve } from 'upath';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { UpdateType } from '../../config';
import { updateDependency } from './update';

Expand Down
2 changes: 1 addition & 1 deletion lib/manager/bundler/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exec as _exec } from 'child_process';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { fs, git, mocked } from '../../../test/util';
import * as _datasource from '../../datasource';
import { setUtilConfig } from '../../util';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/cargo/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec as _exec } from 'child_process';
import _fs from 'fs-extra';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { git, mocked } from '../../../test/util';
import { setExecConfig } from '../../util/exec';
import { BinarySource } from '../../util/exec/common';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/cocoapods/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec as _exec } from 'child_process';
import _fs from 'fs-extra';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { git, mocked } from '../../../test/util';
import * as _datasource from '../../datasource';
import { setExecConfig } from '../../util/exec';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/composer/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exec as _exec } from 'child_process';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { env, fs, git, mocked, partial } from '../../../test/util';
import {
PLATFORM_TYPE_GITHUB,
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/gomod/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec as _exec } from 'child_process';
import _fs from 'fs-extra';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { git, mocked } from '../../../test/util';
import { setUtilConfig } from '../../util';
import { BinarySource } from '../../util/exec/common';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/gradle-wrapper/artifacts-real.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { readFile, readFileSync } from 'fs-extra';
import Git from 'simple-git';
import { resolve } from 'upath';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { getName, git, partial } from '../../../test/util';
import { setUtilConfig } from '../../util';
import { StatusResult } from '../../util/git';
Expand Down
4 changes: 2 additions & 2 deletions lib/manager/gradle-wrapper/artifacts.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import { exec as _exec } from 'child_process';
import { readFile } from 'fs-extra';
import { resolve } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import * as httpMock from '../../../test/httpMock';
import { envMock, mockExecAll } from '../../../test/exec-util';
import * as httpMock from '../../../test/http-mock';
import {
addReplacingSerializer,
env,
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/gradle/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import os from 'os';
import fsExtra from 'fs-extra';
import tmp from 'tmp-promise';
import * as upath from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import {
addReplacingSerializer,
getName,
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/helmv3/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec as _exec } from 'child_process';
import _fs from 'fs-extra';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { git, mocked } from '../../../test/util';
import { setExecConfig } from '../../util/exec';
import { BinarySource } from '../../util/exec/common';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/homebrew/update.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import fs from 'fs';
import { Readable } from 'stream';
import * as httpMock from '../../../test/httpMock';
import * as httpMock from '../../../test/http-mock';
import { updateDependency } from './update';

const aide = fs.readFileSync(
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/mix/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exec as _exec } from 'child_process';
import _fs from 'fs-extra';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { mocked } from '../../../test/util';
import { BinarySource } from '../../util/exec/common';
import * as _env from '../../util/exec/env';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/npm/post-update/lerna.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { exec as _exec } from 'child_process';
import { envMock, mockExecAll } from '../../../../test/execUtil';
import { envMock, mockExecAll } from '../../../../test/exec-util';
import { getName, mocked } from '../../../../test/util';
import * as _env from '../../../util/exec/env';
import * as _lernaHelper from './lerna';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/npm/post-update/npm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { exec as _exec } from 'child_process';
import upath from 'upath';

import { envMock, mockExecAll } from '../../../../test/execUtil';
import { envMock, mockExecAll } from '../../../../test/exec-util';
import { mocked } from '../../../../test/util';
import { BinarySource } from '../../../util/exec/common';
import * as _env from '../../../util/exec/env';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/npm/post-update/pnpm.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { exec as _exec } from 'child_process';
import { envMock, mockExecAll } from '../../../../test/execUtil';
import { envMock, mockExecAll } from '../../../../test/exec-util';
import { mocked } from '../../../../test/util';
import * as _env from '../../../util/exec/env';
import * as _fs from '../../../util/fs/proxies';
Expand Down
6 changes: 5 additions & 1 deletion lib/manager/npm/post-update/yarn.spec.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import { exec as _exec } from 'child_process';
import { ExecSnapshots, envMock, mockExecAll } from '../../../../test/execUtil';
import {
ExecSnapshots,
envMock,
mockExecAll,
} from '../../../../test/exec-util';
import { fs, getName, mocked } from '../../../../test/util';
import * as _env from '../../../util/exec/env';
import * as _yarnHelper from './yarn';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/nuget/artifacts.spec.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { exec as _exec } from 'child_process';
import { join } from 'upath';
import { envMock, mockExecAll } from '../../../test/execUtil';
import { envMock, mockExecAll } from '../../../test/exec-util';
import { fs, mocked } from '../../../test/util';
import { setUtilConfig } from '../../util';
import { BinarySource } from '../../util/exec/common';
Expand Down
2 changes: 1 addition & 1 deletion lib/manager/pip_setup/extract.spec.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { envMock, exec, mockExecSequence } from '../../../test/execUtil';
import { envMock, exec, mockExecSequence } from '../../../test/exec-util';
import { env, getName } from '../../../test/util';
import {
getPythonAlias,
Expand Down
Loading

0 comments on commit 00a0822

Please sign in to comment.