Skip to content

Commit

Permalink
fix: removed incorrect eslint instructions when eslint fails with an …
Browse files Browse the repository at this point in the history
…unknown error
  • Loading branch information
snorrees committed Jan 13, 2023
1 parent cdc7892 commit 932afd2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/dependencies/import-linter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,7 @@ export async function validateImports({basePath}: {basePath: string}): Promise<s
return [
outdent`
Failed to run ESLint. Is ESLint configured?
It is recommended to install eslint-config-sanity and add 'sanity/upgrade-v2' to your eslint-extends config.
Run:
npm install --save-dev eslint-config-sanity
In .eslintrc add:
extends: ['sanity/upgrade-v2']
This way, V2-imports can be identified directly in the IDE, or using eslint CLI.
If the package does not use eslint, disable this check.
`,
]
Expand Down
8 changes: 0 additions & 8 deletions tap-snapshots/test/verify-package.test.ts.test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -298,15 +298,7 @@ Referenced from: root/.eslintrc
}
[error]
Failed to run ESLint. Is ESLint configured?
It is recommended to install eslint-config-sanity and add 'sanity/upgrade-v2' to your eslint-extends config.
Run:
npm install --save-dev eslint-config-sanity
In .eslintrc add:
extends: ['sanity/upgrade-v2']
This way, V2-imports can be identified directly in the IDE, or using eslint CLI.
If the package does not use eslint, disable this check.
To skip this validation add the following to your package.json:
Expand Down

0 comments on commit 932afd2

Please sign in to comment.