@geekcojp/stylelint-config
v0.2.5
Published
@geekcojp stylelint config
Downloads
6
Keywords
Readme
stylelint-config
stylelint config by GEEK,.inc. (Japan)
Usage
CLI (stylelint)
Install @geekcojp/stylelint-config
.
yarn add -D @geekcojp/stylelint-config
Create config.js
to root directory of the project as following.
module.exports = {
"extends": "@geekcojp/stylelint-config",
}
stylelint --config config.js index.css
Gulp (Scss)
gulp.task('lint-styles', () => {
return gulp.src('sass/**/*.scss').pipe(
$.postcss(
[
stylelint({
extends: '@geekcojp/stylelint-config',
}),
reporter({
clearReportedMessages: true,
}),
],
{
syntax: require('postcss-scss'),
},
),
);
});
gulp.task('watch', () => {
gulp.watch(['sass/**/*.scss'], ['lint-styles']);
});
gulp.task('default', ['watch']);
Override
module.exports = {
"extends": "@geekcojp/stylelint-config",
"rules": {
// Add Rules
}
}
Change Log
- 2019/07/16 fix nesting Rules
- 2018/08/21 Add Scss Rules
- 2018/01/15 Publish