Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating to use @lint-todo/utils package #275

Merged
merged 1 commit into from
Dec 3, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
86 changes: 43 additions & 43 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
ignore:
- dependency-name: eslint
versions:
- 7.18.0
- 7.19.0
- 7.20.0
- 7.21.0
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: eslint-config-prettier
versions:
- 8.0.0
- 8.1.0
- 8.2.0
- dependency-name: type-fest
versions:
- 0.21.0
- 0.21.1
- 0.21.2
- 0.21.3
- 1.0.0
- 1.0.1
- dependency-name: ts-jest
versions:
- 26.5.3
- 26.5.4
- dependency-name: eslint-plugin-jest
versions:
- 24.3.1
- dependency-name: "@ember-template-lint/todo-utils"
versions:
- 7.0.0
- 8.0.0-beta.3
- dependency-name: eslint-plugin-unicorn
versions:
- 25.0.1
- package-ecosystem: npm
directory: '/'
schedule:
interval: daily
time: '13:00'
open-pull-requests-limit: 10
ignore:
- dependency-name: eslint
versions:
- 7.18.0
- 7.19.0
- 7.20.0
- 7.21.0
- 7.22.0
- 7.23.0
- 7.24.0
- dependency-name: eslint-config-prettier
versions:
- 8.0.0
- 8.1.0
- 8.2.0
- dependency-name: type-fest
versions:
- 0.21.0
- 0.21.1
- 0.21.2
- 0.21.3
- 1.0.0
- 1.0.1
- dependency-name: ts-jest
versions:
- 26.5.3
- 26.5.4
- dependency-name: eslint-plugin-jest
versions:
- 24.3.1
- dependency-name: '@lint-todo/utils'
versions:
- 7.0.0
- 8.0.0-beta.3
- dependency-name: eslint-plugin-unicorn
versions:
- 25.0.1
2 changes: 1 addition & 1 deletion __tests__/__utils__/fake-project.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import {
DaysToDecayByRule,
LintTodoPackageJson,
TodoConfigByEngine,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { dirname, join } from 'path';
import fixturify from 'fixturify';
import Project from 'fixturify-project';
Expand Down
2 changes: 1 addition & 1 deletion __tests__/acceptance/eslint-with-todo-formatter-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
readTodoStorageFile,
todoStorageFileExists,
writeTodos,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { FakeProject } from '../__utils__/fake-project';
import { getObjectFixture, getStringFixture } from '../__utils__/get-fixture';
import { buildMaybeTodos } from '../../src/formatter';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
readTodoStorageFile,
todoStorageFileExists,
writeTodos,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { FakeProject } from '../__utils__/fake-project';
import { getObjectFixture, getStringFixture } from '../__utils__/get-fixture';
import { buildMaybeTodos } from '../../src/formatter';
Expand Down
2 changes: 1 addition & 1 deletion __tests__/unit/formatter-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
readTodoData,
todoStorageFileExists,
Severity,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { DirResult, dirSync } from 'tmp';
import { buildMaybeTodos, formatter, updateResults } from '../../src/formatter';
import fixtures from '../__fixtures__/fixtures';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"test:jest": "yarn build && jest --no-cache"
},
"dependencies": {
"@ember-template-lint/todo-utils": "11.0.0-beta.1",
"@lint-todo/utils": "^11.0.0",
"chalk": "^4.1.0",
"ci-info": "^3.3.0",
"eslint": "^7.10.0",
Expand Down
2 changes: 1 addition & 1 deletion src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
TodoConfig,
Range,
readTodosForFilePath,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { relative, join } from 'path';
import hasFlag from 'has-flag';
import ci from 'ci-info';
Expand Down
2 changes: 1 addition & 1 deletion src/formatter.ts.orig
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import {
TodoConfig,
Range,
readTodosForFilePath,
} from '@ember-template-lint/todo-utils';
} from '@lint-todo/utils';
import { relative, join } from 'path';
import hasFlag from 'has-flag';
import ci from 'ci-info';
Expand Down
2 changes: 1 addition & 1 deletion src/print-results.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { blueBright, dim, red, reset, underline, yellow } from 'chalk';
import type { ESLint } from 'eslint';
import stripAnsi from 'strip-ansi';
import table from 'text-table';
import { Severity } from '@ember-template-lint/todo-utils';
import { Severity } from '@lint-todo/utils';
import {
TodoFormatterCounts,
TodoFormatterOptions,
Expand Down
5 changes: 1 addition & 4 deletions src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import type {
TodoConfig,
WriteTodoOptions,
} from '@ember-template-lint/todo-utils';
import type { TodoConfig, WriteTodoOptions } from '@lint-todo/utils';
import type { Linter } from 'eslint';

declare module 'eslint' {
Expand Down
22 changes: 11 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,6 @@
exec-sh "^0.3.2"
minimist "^1.2.0"

"@ember-template-lint/todo-utils@11.0.0-beta.1":
version "11.0.0-beta.1"
resolved "https://registry.yarnpkg.com/@ember-template-lint/todo-utils/-/todo-utils-11.0.0-beta.1.tgz#67d6a24e6e2328e00103f415c3c10d07bdcb4de2"
integrity sha512-HC/iH1HpeCQN+7A4b4oOJUdtq+j4s8xnmOIr5S/bXaUPSngbQmcE2MfMbFpanNyXQQ90avX0cOAkdcafLa928Q==
dependencies:
"@types/eslint" "^7.2.13"
fs-extra "^9.1.0"
proper-lockfile "^4.1.2"
slash "^3.0.0"
tslib "^2.3.1"

"@eslint/eslintrc@^0.4.3":
version "0.4.3"
resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-0.4.3.tgz#9e42981ef035beb3dd49add17acb96e8ff6f394c"
Expand Down Expand Up @@ -520,6 +509,17 @@
"@types/yargs" "^15.0.0"
chalk "^4.0.0"

"@lint-todo/utils@^11.0.0":
version "11.0.0"
resolved "https://registry.yarnpkg.com/@lint-todo/utils/-/utils-11.0.0.tgz#adb6f0ba280a45bff2449d548727cbff35714db7"
integrity sha512-FwAREUQ0ncD3XDujs34183WjzOeX07KrRwi2AkkIJT2irrTkBPyE9FLs2sjjh+Lnj2OB1d+fDN4BWi9r2Nnt+w==
dependencies:
"@types/eslint" "^7.2.13"
fs-extra "^9.1.0"
proper-lockfile "^4.1.2"
slash "^3.0.0"
tslib "^2.3.1"

"@nodelib/fs.scandir@2.1.3":
version "2.1.3"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.3.tgz#3a582bdb53804c6ba6d146579c46e52130cf4a3b"
Expand Down