stylelint-config-osedea
v3.0.0
Published
StyleLint configuration for Osedea projects.
Downloads
94
Readme
stylelint-config-osedea
Prerequisites
stylelint >= 13.5.0
Adding to a project
npm install -D stylelint-config-osedea@latest
yarn add -D stylelint-config-osedea@latest
Configuring rules for project
stylelint-config-osedea
comes with the following environments
Config name | Extends
------------- | ------------------
prettier | core
react-native | core
styled-components | core
Create a file called .stylelintrc.yml
in the root of your project. Here, you will specify your rules, and extend one of the above rulesets.
Some example .stylelintrc.yml
configs:
extends:
- stylelint-config-osedea
- stylelint-config-osedea/styled-components # this doesn't always work
- stylelint-config-osedea/prettier
extends:
- stylelint-config-osedea
- stylelint-config-osedea/react-native
- stylelint-config-osedea/prettier
# You can override rules from the linter here. Use at your own risk.
# rules:
# color-no-invalid-hex: null # For example, if you do not want to turn the linter off for this rule
# indentation: 4 # For example, if you wanted the linter to check for 4 spaces