-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: most eslint rules have moved to @Stylistic (#1507)
ESLint has moved most of it's style-related linter rules to a namespace called `@stylistic`. Update our built-in linter rules to reference those rules in the new package name, and change the public interface to accept arbitrary strings, instead of an enum from a specific set of rules.
- Loading branch information
Showing
10 changed files
with
49 additions
and
24 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,11 @@ | ||
/** | ||
* All Eslint rules that typewriter can disable. | ||
*/ | ||
export enum EsLintRules { | ||
COMMA_DANGLE = '@typescript-eslint/comma-dangle', | ||
COMMA_SPACING = 'comma-spacing', | ||
QUOTE_PROPS = 'quote-props', | ||
QUOTES = 'quotes', | ||
PRETTIER_PRETTIER = 'prettier/prettier', | ||
MAX_LEN = 'max-len', | ||
export class EsLintRules { | ||
public static readonly COMMA_DANGLE = '@stylistic/comma-dangle'; | ||
public static readonly COMMA_SPACING = '@stylistic/comma-spacing'; | ||
public static readonly QUOTE_PROPS = '@stylistic/quote-props'; | ||
public static readonly QUOTES = '@stylistic/quotes'; | ||
public static readonly PRETTIER_PRETTIER = 'prettier/prettier'; | ||
public static readonly MAX_LEN = '@stylistic/max-len'; | ||
} |
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
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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.