Added an html linter. It doesn't produce any errors. Either the code is flawless, or the linting doesn't actually happen.
This commit is contained in:
parent
1802ae0103
commit
531470932e
@ -8,5 +8,9 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- ./themes/patek/assets/js:/src:ro
|
- ./themes/patek/assets/js:/src:ro
|
||||||
- ./linting/js/eslintrc.yml:/eslintrc.yml
|
- ./linting/js/eslintrc.yml:/eslintrc.yml
|
||||||
|
xo-html-lint:
|
||||||
|
image: patek-devs/eslint-xo
|
||||||
|
command: \*.html --plugin=html --extension=html
|
||||||
|
volumes:
|
||||||
|
- ./:/src:ro
|
||||||
|
|
||||||
|
@ -12,6 +12,8 @@ RUN npm install npm@5.3 && \
|
|||||||
|
|
||||||
RUN npm install -g xo@0.24.0
|
RUN npm install -g xo@0.24.0
|
||||||
|
|
||||||
|
RUN npm install -g eslint-plugin-html@6.0.0
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN rm -fr /root/.npm /node_modules
|
RUN rm -fr /root/.npm /node_modules
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user