stylelint-config-osedea
Prerequisites
stylelint >= 1350
Adding to a project
npm install -D stylelint-config-osedea@latestyarn 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