Skip to content

Commit

Permalink
enhanced CSS linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWillner committed Apr 21, 2020
1 parent 9947634 commit 2a75794
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
11 changes: 11 additions & 0 deletions .csslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"ignore": [
"box-model",
"box-sizing",
"outline-none"
],
"warnings": [
],
"errors": [
]
}
10 changes: 6 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-include appstore/Makefile

VERSION=2.3.0
VERSION=2.5.0dev
MAIN=things3_kanban
APP=things3_app
SERVER=things3_api
Expand Down Expand Up @@ -114,8 +114,10 @@ clean:
auto-style:
@type autopep8 >/dev/null 2>&1 || (echo "Run '$(PIP) install autopep8' first." >&2 ; exit 1)
@autopep8 -i -r $(SRC_CORE) $(SRC_TEST) setup.py
@type standard >/dev/null 2>&1 || (echo "Run 'npm install -g standard' first." >&2 ; exit 1)
@standard --fix resources/*.js

lint: auto-style code-style code-lint css-lint html-lint
lint: auto-style code-style code-lint js-lint html-lint css-lint

code-style:
@type pycodestyle >/dev/null 2>&1 || (echo "Run '$(PIP) install pycodestyle' first." >&2 ; exit 1)
Expand All @@ -134,8 +136,8 @@ css-lint:
@csslint --format=compact resources/*.css

js-lint:
@type jslint >/dev/null 2>&1 || (echo "Run 'npm install -g jslint-node' first." >&2 ; exit 1)
@jslint resources/*.js || true
@type standard >/dev/null 2>&1 || (echo "Run 'npm install -g standard' first." >&2 ; exit 1)
@standard resources/*.js

html-lint:
@type tidy >/dev/null 2>&1 || (echo "Run 'brew install tidy' first." >&2 ; exit 1)
Expand Down

0 comments on commit 2a75794

Please sign in to comment.