-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(betterer ✨): remove old exported test functions (#223)
Removes the `eslintBetterer` function from @betterer/eslint Removes the `regexpBetterer` function from @betterer/regexp Removes the `tsqueryBetterer` function from @betterer/tsquery Removes the `typescriptBetterer` function from @betterer/typescript BREAKING CHANGE: Changes to the public API
- Loading branch information
1 parent
0f1724f
commit 2d29b25
Showing
16 changed files
with
6 additions
and
1,096 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
import { registerError } from '@betterer/errors'; | ||
|
||
export const FILE_GLOB_REQUIRED = registerError( | ||
() => "For `@betterer/eslint` to work, you need to provide a file glob, e.g. `'./src/**/*'`. ❌" | ||
); | ||
export const RULE_OPTIONS_REQUIRED = registerError( | ||
() => "For `@betterer/eslint` to work, you need to provide rule options, e.g. `['no-debugger', 'error']`. ❌" | ||
); | ||
export const RULES_OPTIONS_REQUIRED = registerError( | ||
() => "For `@betterer/eslint` to work, you need to provide rule options, e.g. `{ 'no-debugger': 'error' }`. ❌" | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { eslintBetterer, eslint } from './eslint'; | ||
export { eslint } from './eslint'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
import { registerError } from '@betterer/errors'; | ||
|
||
export const FILE_GLOB_REQUIRED = registerError( | ||
() => "For `@betterer/regexp` to work, you need to provide a file glob, e.g. `'./src/**/*'`. ❌" | ||
); | ||
export const REGEXP_REQUIRED = registerError( | ||
() => 'For `@betterer/regexp` to work, you need to provide a RegExp, e.g. `/^foo$/`. ❌' | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export { regexpBetterer, regexp } from './regexp'; | ||
export { regexp } from './regexp'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
export { tsquery } from './tsquery'; | ||
import { tsquery } from './tsquery'; | ||
|
||
/** | ||
* @deprecated Use {@link @betterer/tsquery:tsquery} instead! | ||
*/ | ||
export const tsqueryBetterer = tsquery; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1 @@ | ||
export { typescript } from './typescript'; | ||
import { typescript } from './typescript'; | ||
|
||
/** | ||
* @deprecated Use {@link @betterer/typescript:typescript} instead! | ||
*/ | ||
export const typescriptBetterer = typescript; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.