Skip to content

Commit

Permalink
Prepare 10.0.1 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeddy3 committed Feb 9, 2023
1 parent f8a798c commit 4902672
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## 10.0.1

- Removed: deprecated `no-extra-semicolons` rule.

## 10.0.0

- Removed: `stylelint` less than `15.0.0` from peer dependencies.
Expand Down
13 changes: 13 additions & 0 deletions __tests__/index.test.js
Expand Up @@ -70,3 +70,16 @@ describe('flags warnings with invalid css', () => {
return result.then((data) => expect(data.results[0].warnings[0].column).toBe(1));
});
});

describe('deprecated rules', () => {
const deprecatedRuleNames = Object.values(stylelint.rules)
.filter((rule) => rule.meta.deprecated)
.map((rule) => rule.ruleName);

const testFn = deprecatedRuleNames.length === 0 ? it.skip : it;

testFn('exclude deprecate rules', () => {
// eslint-disable-next-line jest/no-standalone-expect -- If not using `it` directly, false positives occur.
deprecatedRuleNames.map((m) => expect(Object.keys(config.rules)).not.toContain(m));
});
});
1 change: 0 additions & 1 deletion index.js
Expand Up @@ -29,7 +29,6 @@ module.exports = {
'no-duplicate-at-import-rules': true,
'no-duplicate-selectors': true,
'no-empty-source': true,
'no-extra-semicolons': true,
'no-invalid-double-slash-comments': true,
'no-invalid-position-at-import-rule': true,
'no-irregular-whitespace': true,
Expand Down

0 comments on commit 4902672

Please sign in to comment.