-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add reasoning of eslint comment
- Loading branch information
Martí Malek
committed
Jan 12, 2024
1 parent
f5afbcf
commit ae26805
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
src/codemods/__testfixtures__/colors-to-css-vars/colors-as-mapped-type.output.tsx
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
8 changes: 4 additions & 4 deletions
8
src/codemods/__testfixtures__/colors-to-css-vars/colors-as-property-signature.output.tsx
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,13 +1,13 @@ | ||
import { ReadCssColorVariable } from '@freenow/wave'; | ||
|
||
export interface LabelVariant { | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
// eslint-disable-next-line @typescript-eslint/ban-types you can remove this comment and only use the `ReadCssColorVariable` type after changing the bare colors to `getSemanticValue` | ||
color?: ReadCssColorVariable | (string & {}) | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
// eslint-disable-next-line @typescript-eslint/ban-types you can remove this comment and only use the `ReadCssColorVariable` type after changing the bare colors to `getSemanticValue` | ||
backgroundColor?: ReadCssColorVariable | (string & {}) | ||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
// eslint-disable-next-line @typescript-eslint/ban-types you can remove this comment and only use the `ReadCssColorVariable` type after changing the bare colors to `getSemanticValue` | ||
borderColor?: ReadCssColorVariable | (string & {}) | ||
} | ||
|
||
// eslint-disable-next-line @typescript-eslint/ban-types | ||
// eslint-disable-next-line @typescript-eslint/ban-types you can remove this comment and only use the `ReadCssColorVariable` type after changing the bare colors to `getSemanticValue` | ||
export interface AnotherInterface { color?: ReadCssColorVariable | (string & {}) } |
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