update linter to look at all less files

Test Plan: script/grunt lint

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D1549
This commit is contained in:
Evan Morikawa 2015-05-21 14:50:40 -07:00
parent 92cf2d520c
commit 57fc6d61e5
9 changed files with 40 additions and 35 deletions

View file

@ -208,6 +208,7 @@ module.exports = (grunt) ->
'dot-nylas/**/*.coffee'
'exports/**/*.coffee'
'src/**/*.coffee'
'src/**/*.cjsx'
]
build: [
'build/tasks/**/*.coffee'
@ -248,6 +249,8 @@ module.exports = (grunt) ->
lesslint:
src: [
'internal_packages/**/*.less'
'dot-nylas/**/*.less'
'static/**/*.less'
]
options:

View file

@ -164,7 +164,7 @@
// TODO FIXME DRY From stylesheets/message-list.less
.attachments-area {
padding: 0px 15px 0px 15px;
padding: 0 15px 0 15px;
.attachment-file-wrap {
padding-top: 5px;
&.pending, &.started, &.progress {
@ -304,7 +304,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
position: absolute;
background: #fff;
box-shadow: 0px 10px 20px rgba(0,0,0,0.19), inset 0px 0px 1px rgba(0,0,0,0.5);
box-shadow: 0 10px 20px rgba(0,0,0,0.19), inset 0 0 1px rgba(0,0,0,0.5);
border-radius: @border-radius-base;
color: @text-color;
@ -317,7 +317,7 @@ body.is-blurred .composer-inner-wrap .tokenizing-field .token {
&.toolbar-visible {
opacity: 1;
visibility: visible;
margin-top: 0px;
margin-top: 0;
}
.toolbar-pointer {

View file

@ -151,7 +151,7 @@
margin: 0;
&.collapsed {
height:0px;
height: 0;
border-bottom: 0;
}
}

View file

@ -14,13 +14,10 @@
.template-status-bar {
background-color: @code-bg-color;
color:darken(@code-bg-color, 70%);
color: darken(@code-bg-color, 70%);
border: 1.5px solid darken(@code-bg-color, 10%);
border-radius: @border-radius-small;
padding-top: @padding-small-vertical;
padding-bottom: @padding-small-vertical;
padding-left: @padding-small-horizontal;
padding-right: @padding-small-horizontal;
padding-top: @padding-small-vertical @padding-small-horizontal @padding-small-vertical @padding-small-horizontal;
font-size: @font-size-small;
}
@ -30,7 +27,6 @@
padding:0;
padding-left:2px;
padding-right:2px;
background-color: transparent;
border-bottom: 1.5px solid darken(@code-bg-color, 10%);
background-color: fade(@code-bg-color, 10%);
&.empty {

View file

@ -123,7 +123,7 @@
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
box-shadow: 0px -4px 4px 0px rgba(255, 255, 255, 0.75), inset 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
box-shadow: 0 -4px 4px 0 rgba(255, 255, 255, 0.75), inset 0 4px 4px 0 rgba(0, 0, 0, 0.08);
&:before {
content: "";
@ -133,7 +133,7 @@
left: 9%;
right: 9%;
bottom: 9%;
box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.08);
box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.08);
}
&:after {

View file

@ -1,3 +1,5 @@
@import "ui-variables";
.full-contact-sidebar {
padding: @spacing-standard;
padding-bottom: 0;

View file

@ -1,3 +1,5 @@
@import "ui-variables";
.internal-sidebar {
padding: @spacing-standard;
padding-bottom: 0;

View file

@ -1,3 +1,5 @@
@import "ui-variables";
#tooltip-container {
position: absolute;
z-index: 999;
@ -14,7 +16,7 @@
// Position and display are set by React
background: #fff;
box-shadow: 0px 10px 20px rgba(0,0,0,0.19), inset 0px 0px 1px rgba(0,0,0,0.5);
box-shadow: 0 10px 20px rgba(0,0,0,0.19), inset 0 0 1px rgba(0,0,0,0.5);
border-radius: @border-radius-base;
color: @text-color;

View file

@ -4,4 +4,4 @@ GO=0
if [ ${1##*.} == "coffee" ]; then GO=1; fi
if [ ${1##*.} == "cjsx" ]; then GO=1; fi
if [ $GO != "1" ]; then exit 0; fi
script/grunt coffeelint:target --target "$*" || true
script/grunt lint:target --target "$*" || true