forked from Shopify/polaris
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.stylelintrc.js
31 lines (31 loc) · 1.08 KB
/
.stylelintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/** @type {import('stylelint').Config} */
module.exports = {
extends: ['@shopify/stylelint-plugin/prettier', './stylelint-polaris'],
// Disabling @shopify/stylelint-plugin/configs/core no-unknown-animations as styelint
// is not aware of global Polaris keyframes
// TODO: create custom plugin to ensure animation-names match Polaris keyframe names
rules: {
'no-unknown-animations': undefined,
'value-keyword-case': ['lower', {camelCaseSvgKeywords: true}],
},
overrides: [
{
files: ['polaris-react/**/*.{css,scss}'],
extends: [
'@shopify/stylelint-plugin/prettier',
'./stylelint-polaris/configs/internal',
],
},
],
ignoreFiles: [
'**/.next/**/*.{css,scss}',
'**/node_modules/**/*.{css,scss}',
'**/dist/**/*.{css,scss}',
'documentation/guides/legacy-polaris-v8-public-api.scss',
'polaris-react/build/**/*.{css,scss}',
'polaris-react/build-internal/**/*.{css,scss}',
'stylelint-polaris/tests/**/*.{css,scss}',
// TODO: Remove and address stylelint errors
'polaris.shopify.com/**/*.{css,scss}',
],
};