2.1.2 • Published 2 months ago

@atlaskit/stylelint-design-system v2.1.2

Weekly downloads
-
License
Apache-2.0
Repository
bitbucket
Last release
2 months ago

Design System Stylelint Plugin

This plugin contains rules that should be used when working with the Atlassian Design System.

Installation

yarn add @atlaskit/stylelint-design-system -D

Usage

Add the plugin to your Stylelint configuration file.

// .stylelintrc.js

module.exports = {
  plugins: [
+    '@atlaskit/stylelint-design-system',
  ],
};

Enable any desired rules.

module.exports = {
  rules: {
+    'design-system/ensure-design-token-usage': { color: true, spacing: true },
+    'design-system/no-deprecated-design-token-usage': true,
+    'design-system/no-unsafe-design-token-usage': [true, { shouldEnsureFallbackUsage: true }]
  },
};

Rules will come with fixers where possible. For individual rules see the rules folder, however its strongly recommended to use the rules as above. You can read more about configuring Stylelint in their documentation.

Limitations

  • This plugin has been tested and confirmed working with Stylelint versions 8.0.0 → 14.6.0.
  • The VS Code Stylelint plugin no longer supports Stylelint versions 13.x and below. It currently still seems to work but use with caution.
  • Due to Stylelint limitations, autofix can not be applied to problems individually. Instead autofixing needs to process an entire file, either by using the through VS Code Stylelint plugin command Stylelint: Fix all auto-fixable Problems or using command line npx stylelint path/to/file --fix
  • Due to Stylelint limitations, each problem will only be "squiggly underlined" on the first character. Stylelint does not provide a character range of the problem to the VS Code plugin.
2.1.2

2 months ago

2.1.1

6 months ago

2.1.0

6 months ago

1.1.1

8 months ago

1.0.2

9 months ago

1.1.0

8 months ago

1.0.1

9 months ago

1.0.0

9 months ago

1.0.3

9 months ago

2.0.0

7 months ago

0.5.0

11 months ago

0.4.3

12 months ago

0.4.1

1 year ago

0.4.0

1 year ago

0.4.2

1 year ago

0.3.16

1 year ago

0.3.15

1 year ago

0.3.14

1 year ago

0.3.13

1 year ago

0.3.9

2 years ago

0.3.12

1 year ago

0.3.11

1 year ago

0.3.10

2 years ago

0.3.8

2 years ago

0.3.6

2 years ago

0.3.7

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.0

2 years ago

0.3.2

2 years ago

0.2.3

2 years ago

0.3.1

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago