Skip to content

Commit

Permalink
add html, style and js linter as npm script
Browse files Browse the repository at this point in the history
  • Loading branch information
gagarine authored and tomlutzenberger committed Apr 17, 2017
1 parent 90ca677 commit 0f4ade7
Show file tree
Hide file tree
Showing 6 changed files with 1,011 additions and 84 deletions.
35 changes: 0 additions & 35 deletions .csslintrc

This file was deleted.

29 changes: 16 additions & 13 deletions .htmlhintrc
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@

{
"attr-lowercase": true,
"attr-no-duplication": true,
"alt-require": true,
"attr-unsafe-chars": true,
"attr-lowercase": true,
"attr-no-duplication": true,
"attr-unsafe-chars": true,
"attr-value-double-quotes": true,
"doctype-first": false,
"doctype-html5": true,
"id-unique": true,
"spec-char-escape": true,
"src-not-empty": true,
"tag-pair": true,
"tagname-lowercase": true,
"title-require": false
"attr-value-not-empty": true
"doctype-first": true,
"doctype-html5": true,
"id-class-value": "dash",
"id-unique": true,
"inline-script-disabled": true,
"inline-style-disabled": true,
"space-tab-mixed-disabled": "space",
"spec-char-escape": true,
"src-not-empty": true,
"tag-pair": true,
"tagname-lowercase": true,
"title-require": false,
}
16 changes: 0 additions & 16 deletions .jshintrc

This file was deleted.

3 changes: 3 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "stylelint-config-standard"
}
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,27 @@
"author": "rbutr Community",
"license": "LGPL-3.0",
"devDependencies": {
"concurrently": "^3.4.0",
"eslint": "^3.19.0",
"eslint-config-google": "^0.7.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"node-sass": "^4.5.2"
"htmlhint": "^0.9.13",
"node-sass": "^4.5.2",
"stylelint": "^7.10.1"
},
"scripts": {
"sass": "node-sass src/scss/main.scss --output src/css --source-map-embed --source-map-contents",
"watch:sass": "npm run sass -- --watch",
"lint": "eslint src",
"lint:js": "eslint --config .eslintrc.json src;",
"lint:style": "stylelint --config .stylelintrc src/scss/*.scss;",
"lint:html": "htmlhint --config .htmlhintrc src/**/*.html;",
"lint": "concurrently --names lint:html, lint:style, lint:js -p name 'npm run lint:html' 'npm run lint:style' 'npm run lint:js';",
"zip": "mkdir -p build && zip -r build/rbutr.zip ./src/*",
"build": "npm run sass && npm run zip"
"build": "lint && npm run sass && npm run zip"
},
"dependencies": {
"stylelint-config-standard": "^16.0.0"
}
}
Loading

0 comments on commit 0f4ade7

Please sign in to comment.