@craftworks/stylelint-config-angular
TypeScript icon, indicating that this package has built-in type declarations

6.0.6 • Public • Published

@craftworks/stylelint-config-angular

NPM version Downloads

A stylelint config optimized for Angular

Contains the configs of

and applies a custom config.

Note that stylelint-config-standard and stylelint-config-standard-scss extend stylelint-config-recommended and stylelint-config-recommended-scss respectively.

Installation

npm install @craftworks/stylelint-config-angular --save-dev

Check for necessary peer dependencies.

Usage

In .stylelintrc

{
  "extends": "@craftworks-stylelint-config-angular",
  "rules": {
    // your rules
  }
}

Provide a .browserslistrc file so that unsupported browser features get reported.

Peer Dependencies

  • stylelint: ^16.1.0

The minimal node version is 18.18.0.

See package.json for more details

Known incompatibles

This config includes the stylelint-no-unsupported-browser-features plugin, which only supports css syntax. This can lead to false positives when using Sass or other syntax - see https://github.com/RJWadley/stylelint-no-unsupported-browser-features/issues/45. However, since the benefits of using this plugin should not be lost, the plugin is still used for non-css syntax with the known issue of false positives here and there.

Change Log

See CHANGELOG.md

License

MIT

Package Sidebar

Install

npm i @craftworks/stylelint-config-angular

Weekly Downloads

348

Version

6.0.6

License

MIT

Unpacked Size

15.1 kB

Total Files

9

Last publish

Collaborators

  • zualexander
  • phi_spindler