Commit 5f48fe8d authored by Nikolay Gromov's avatar Nikolay Gromov

Тест pug-lint

parent 6ba0b400
...@@ -11,13 +11,15 @@ ...@@ -11,13 +11,15 @@
"scripts": { "scripts": {
"test:style": "stylelint \"src/**/*.scss\" --syntax=scss", "test:style": "stylelint \"src/**/*.scss\" --syntax=scss",
"test:editorconfig": "editorconfig-cli src/**/*.{js,pug}", "test:editorconfig": "editorconfig-cli src/**/*.{js,pug}",
"test:pug": "gulp test:pug",
"start": "gulp", "start": "gulp",
"deploy": "cross-env NODE_ENV=production ./node_modules/.bin/gulp build && cross-env ./node_modules/.bin/gulp deploy", "deploy": "cross-env NODE_ENV=production ./node_modules/.bin/gulp build && cross-env ./node_modules/.bin/gulp deploy",
"build": "cross-env NODE_ENV=production npm start build", "build": "cross-env NODE_ENV=production npm start build",
"lint-staged": "lint-staged", "lint-staged": "lint-staged",
"precommit": "lint-staged && gulp test:pug" "precommit": "lint-staged"
}, },
"lint-staged": { "lint-staged": {
"*.pug": "pug-lint",
"*.js": "editorconfig-cli", "*.js": "editorconfig-cli",
"*.pug": "editorconfig-cli", "*.pug": "editorconfig-cli",
"*.css": "stylelint", "*.css": "stylelint",
...@@ -68,6 +70,7 @@ ...@@ -68,6 +70,7 @@
"postcss-import": "^11.0.0", "postcss-import": "^11.0.0",
"postcss-inline-svg": "^3.0.0", "postcss-inline-svg": "^3.0.0",
"postcss-object-fit-images": "^1.1.2", "postcss-object-fit-images": "^1.1.2",
"pug-lint": "^2.5.0",
"stylelint": "^8.2.0", "stylelint": "^8.2.0",
"vinyl-buffer": "^1.0.0" "vinyl-buffer": "^1.0.0"
}, },
......
...@@ -26,7 +26,7 @@ mixin alert(title, mods) ...@@ -26,7 +26,7 @@ mixin alert(title, mods)
} }
} }
.alert(class=allMods)&attributes(attributes) div.alert(class=allMods)&attributes(attributes)
if (typeof(title) !== 'undefined' && title !== '') if (typeof(title) !== 'undefined' && title !== '')
h4.alert__header!= title h4.alert__header!= title
block block
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment