Skip to content

Commit

Permalink
test: add test for stylelint v16 (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi authored Dec 11, 2023
1 parent d2cd05c commit f7b81b6
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/fixtures/integrations/stylelint-v16/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package-lock=false
15 changes: 15 additions & 0 deletions tests/fixtures/integrations/stylelint-v16/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "stylelint-config-recommended-vue-test-stylelint-v16",
"private": true,
"version": "1.0.0",
"description": "",
"devDependencies": {
"postcss-html": "^1.0.0",
"stylelint": "^16.0.0",
"stylelint-config-recommended": "^14.0.0",
"stylelint-config-recommended-vue": "file:../../../../stylelint-config-recommended-vue-test.tgz"
},
"engines": {
"node": ">=18.12.0"
}
}
5 changes: 5 additions & 0 deletions tests/fixtures/integrations/stylelint-v16/src/invalid.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<style>
a {
color: #00;
}
</style>
14 changes: 14 additions & 0 deletions tests/fixtures/integrations/stylelint-v16/src/valid.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<style>
a {
color: v-bind(color);
}
:global(.foo),
::v-deep(.foo),
::v-slotted(.foo),
::v-global(.foo),
:deep(.foo),
:slotted(.foo) {
color: red;
}
</style>
5 changes: 5 additions & 0 deletions tests/fixtures/integrations/stylelint-v16/stylelint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
"use strict";

module.exports = {
extends: "stylelint-config-recommended-vue",
};

0 comments on commit f7b81b6

Please sign in to comment.