Skip to content

Commit 19dff18

Browse files
committed
add support stylelint 14
1 parent b2c6b3d commit 19dff18

File tree

5 files changed

+1378
-3610
lines changed

5 files changed

+1378
-3610
lines changed

__snapshots__/index.test.js.snap

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Array [
77
"Please use css custom property for next css definition \`color\` in \\"color: black\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
88
"Please use css custom property for next css definition \`color\` in \\"border: 1px solid #fff\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
99
"Please use css custom property for next css definition \`length\` in \\"border: 1px solid #fff\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
10-
"Please use css custom property for next css definition \`color\` in \\"background-color: rgba(37, 156, 154, 0.4)\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
10+
"Please use css custom property for next css definition \`color\` in \\"background-color: rgba(37, 156, 154, 40%)\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
1111
"Please use css custom property for next css definition \`length\` in \\"border-width: 20em\\" (mavrin/stylelint-declaration-use-css-custom-properties)",
1212
]
1313
`;

css-examples/config.js

+1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ module.exports = {
88
ignoreProperties: ["/^\\$/"],
99
ignoreValues: ["/\\$/", "transparent", "0"],
1010
},
11+
"color-function-notation": "legacy",
1112
},
1213
};

css-examples/invalid.pcss

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
border: 1px solid #fff;
1111

1212
&:focus {
13-
background-color: rgba(37, 156, 154, 0.4);
13+
background-color: rgba(37, 156, 154, 40%);
1414
}
1515
}
1616

0 commit comments

Comments
 (0)