1.2.3 • Published 3 years ago
@meteozdemir/stylelint-config-core v1.2.3
stylelint-config-core
Custom StyleLint settings as an extensible shared config.
Installation
If using npm version 5+:
npx install-peerdeps --dev @meteozdemir/stylelint-config-coreIf using npm version version < 5:
npm install -g install-peerdeps
install-peerdeps --dev @meteozdemir/stylelint-config-coreIf want to install manually without install-peerdeps CLI:
npm i -D @meteozdemir/stylelint-config-core stylelint stylelint-high-performance-animation stylelint-order stylelint-prettierUsage
A .stylelintrc file will be automatically created in the root of your project with:
{
"extends": [
"@meteozdemir/stylelint-config-core",
"@meteozdemir/stylelint-config-core/rules/prettier"
],
"rules": {}
}If the file is not created automatically by any reason, simply create a .stylelintrc file in the root of project and copy code above.
@meteozdemir/stylelint-config-core/rules/prettier
Prettier is enabled by default with this package and @meteozdemir/stylelint-config-core/rules/prettier disables StyleLint rules that might conflict with Prettier.
If you don't want to use Prettier, remove '@meteozdemir/stylelint-config-core/rules/prettier' from .stylelintrc file.
{
"extends": ["@meteozdemir/stylelint-config-core"],
"rules": {}
}Rule Override
Add any rule you want to override to rules object in .stylelintrc file.
{
"extends": [
"@meteozdemir/stylelint-config-core",
"@meteozdemir/stylelint-config-core/rules/prettier"
],
"rules": {
// ...
"color-hex-alpha": "always",
"function-name-case": "upper"
}
}