4.1.0 • Published 2 years ago

@fastcms/stylelint-config v4.1.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

@fastcms/stylelint-config

Peer Stylelint Version Peer PostCSS Version

Shared @stylelint configs for projects of @fastcms

Installation

Use npx to install peerdeps automatically or install peerDependencies and optionalDependencies with npm/yarn manually.

# Install using npm
$ npm info "@fastcms/stylelint-config" peerDependencies optionalDependencies
$ npx install-peerdeps --dev @fastcms/stylelint-config

# Install using yarn
$ yarn add --dev @fastcms/stylelint-config postcss stylelint

Usage

After installation, add stylelint entry to package.json file.

{
  "extends": "@fastcms/stylelint-config"
}

Or create a stylelint config file .stylelintrc.js to the project root.

module.exports = {
  extends: ['@fastcms/stylelint-config'],
  rules: {
    'plugin/no-unsupported-browser-features': [
      true,
      {
        severity: 'warning',
        ignore: [],
      },
    ],
  },
};

Scripts

Add stylelint scripts to package.json, then run Stylelint with yarn run stylelint manually, or integrate with GitHub Actions.

{
  "scripts": {
    "stylelint": "stylelint --aei \"**/*.{css,less,scss,wxss,jsx,tsx}\"",
    "stylelint:fix": "stylelint --fix --aei \"**/*.{css,less,scss,wxss,jsx,tsx}\""
  }
}

License

The codebase and documentation in this repository are released under the MIT License

3.2.0

2 years ago

4.1.0

2 years ago

4.0.0

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

1.5.5

2 years ago

1.5.4

2 years ago

1.5.3

2 years ago

2.1.4

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.5.2

3 years ago

1.5.1

3 years ago

1.5.0

3 years ago

1.4.1

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago