Skip to content

Instantly share code, notes, and snippets.

@cleverbeagle
Created August 30, 2017 11:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverbeagle/88a8cf724207b1bf474b3912c21c5a4c to your computer and use it in GitHub Desktop.
Save cleverbeagle/88a8cf724207b1bf474b3912c21c5a4c to your computer and use it in GitHub Desktop.
Fix Atom Linter Underline
// Styling Error Types
atom-text-editor.editor .linter-highlight, .linter-highlight{
&.badge {
border-radius: @component-border-radius;
overflow: hidden;
text-overflow: ellipsis;
}
&.error {
&:not(.line-number){
background-color: transparent;
color: contrast(@background-color-error);
}
.linter-gutter{
color: @background-color-error;
}
.region {
border-bottom: 1px dashed @background-color-error;
}
}
&.warning {
&:not(.line-number){
background-color: @background-color-warning;
color: contrast(@background-color-warning);
}
.linter-gutter{
color: @background-color-warning;
}
.region {
border-bottom: 1px dashed @background-color-warning;
}
}
&.trace, &.info {
&:not(.line-number){
background-color: @background-color-info;
color: contrast(@background-color-info);
}
.linter-gutter{
color: @background-color-info;
}
.region {
border-bottom: 1px dashed @background-color-info;
}
}
// Used by bottom status icon
&.status-error {
color: @background-color-error;
}
&.status-success{
color: @background-color-success;
}
}
@cleverbeagle
Copy link
Author

This fixes the background color for linter errors in Atom ~1.19.0+. Removes the bright red behind text in favor of just the dashed underline. On a mac, open Atom > Stylesheet... and paste this at the bottom of the file. Save and the changes should appear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment