@innovixx/stylelint-config
v1.0.8
Published
Opinionated stylelint config for JavaScript developers
Maintainers
Readme
Stylelint Config Guide
Highlights
An extensible Stylelint config for enforcing consistent conventions and best practices in SASS, SCSS, Less & CSS.
Quick Start
Installation
npm i --save-dev @innovixx/stylelint-configyarn add --dev @innovixx/stylelint-configpnpm i -D @innovixx/stylelint-configUsage
There are a number of configurations for consumption. For an example of a minimal base configuration:
import plugins from '@innovixx/stylelint-config/config/plugins/index.mjs';
import rules from '@innovixx/stylelint-config/config/rules/index.mjs';
import extendsConfig from '@innovixx/stylelint-config/config/extends/index.mjs';
export default {
extends: [
...extendsConfig.extends
],
plugins: [
...plugins.plugins
],
rules: {
...rules.rules
}
}This can then be extended to provide custom rules, plugins, and settings. For more information see the Stylelint config guide
For working examples, see the demo app.
Demo
git clone [email protected]:innovixx/stylelint-config.git
pnpm i
pnpm lintThe demo directory uses the Stylelint config file in the root of the project.
License
MIT Copyright (c) Innovixx, Ltd
