https://github.com/yamanoku/stylelint-config
@yamanoku stylelint config
https://github.com/yamanoku/stylelint-config
stylelint stylelint-config
Last synced: 2 months ago
JSON representation
@yamanoku stylelint config
- Host: GitHub
- URL: https://github.com/yamanoku/stylelint-config
- Owner: yamanoku
- License: mit
- Created: 2017-11-22T15:24:06.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-03-16T20:58:43.000Z (over 2 years ago)
- Last Synced: 2025-08-03T03:03:43.856Z (2 months ago)
- Topics: stylelint, stylelint-config
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/@yamanoku/stylelint-config
- Size: 160 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @yamanoku/stylelint
## Usage
### CLI (stylelint)
Install `@yamanoku/stylelint-config`.
```bash
yarn add -D @yamanoku/stylelint-config
```Create `config.js` to root directory of the project as following.
```js
module.exports = {
"extends": "@yamanoku/stylelint-config",
}
``````bash
stylelint --config config.js index.css
```### Gulp (Scss)
```js
gulp.task('lint-styles', () => {
return gulp.src('sass/**/*.scss').pipe(
$.postcss(
[
stylelint({
extends: '@yamanoku/stylelint-config',
}),
reporter({
clearMessages: true,
}),
],
{
syntax: require('postcss-scss'),
},
),
);
});gulp.task('watch', () => {
gulp.watch(['sass/**/*.scss'], ['lint-styles']);
});gulp.task('default', ['watch']);
```## Override
```js
module.exports = {
"extends": "@yamanoku/stylelint-config",
"rules": {
// Add Rules
}
}
```