@buildinams/lint
Version:
BiA's base lint config(s).
35 lines (27 loc) • 844 B
JavaScript
module.exports = {
extends: [
// Base rules. Note: This installs and uses 'postcss-scs' out of the box
"stylelint-config-standard-scss",
// CSS modules syntax support
"stylelint-config-css-modules",
// Enforce a logical order for CSS properties
"stylelint-config-recess-order",
],
plugins: [
// Block ignored properties in CSS
"stylelint-declaration-block-no-ignored-properties",
"stylelint-prettier",
],
rules: {
"prettier/prettier": true,
// Enable plugin
"plugin/declaration-block-no-ignored-properties": true,
// Ignore select properties in the redundant longhand properties rule
"declaration-block-no-redundant-longhand-properties": [
true,
{ ignoreShorthands: ["/flex/", "/grid/"] },
],
// Prevent redundant nesting selectors
"scss/selector-no-redundant-nesting-selector": true,
},
};