stylelint

VS Code style-lint ignore directories

*爱你&永不变心* 提交于 2019-12-04 10:54:10
Is it possible to ignore my CSS path, beacuse I only use stylelint for SCSS validation? e.g. - I have the following structure: assets/ css/ scss/ How can I disable the css/ folder from being indexed, trough the settings.json file of VSCode? I found this in the docs , but I don't know how to implement it in VSCode. If you're using the VS Code stylelint extension, you can specify ignore paths via the stylelint.configOverrides setting. Add the following to your VS Code settings.json file: "stylelint.configOverrides": { "ignoreFiles": "assets/css/**" } Alternatively you can add a .stylelintignore

Husky giving error SyntaxError: Use of const in strict mode

只谈情不闲聊 提交于 2019-11-29 11:56:01
I am using Husky with Lint-staged and Stylelint "scripts": { "precommit": "lint-staged", }, "lint-staged": { "*.scss": ["stylelint --syntax scss" ] }, OS - Latest OSX Node - 6.10.0 NPM - 3.10.00 I'm getting this error on git commit > husky - npm run -s precommit /Users/jitendravyas/app/node_modules/lint-staged/src/index.js:6 const path = require('path') ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object.Module._extensions..js (module.js:478:10) at Module.load (module.js:355:32) at Function.Module._load

Husky giving error SyntaxError: Use of const in strict mode

假装没事ソ 提交于 2019-11-28 05:13:14
问题 I am using Husky with Lint-staged and Stylelint "scripts": { "precommit": "lint-staged", }, "lint-staged": { "*.scss": ["stylelint --syntax scss" ] }, OS - Latest OSX Node - 6.10.0 NPM - 3.10.00 I'm getting this error on git commit > husky - npm run -s precommit /Users/jitendravyas/app/node_modules/lint-staged/src/index.js:6 const path = require('path') ^^^^^ SyntaxError: Use of const in strict mode. at exports.runInThisContext (vm.js:73:16) at Module._compile (module.js:443:25) at Object