Skip to content

Commit 4902672

Browse files
authored
Prepare 10.0.1 (#183)
1 parent f8a798c commit 4902672

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## 10.0.1
4+
5+
- Removed: deprecated `no-extra-semicolons` rule.
6+
37
## 10.0.0
48

59
- Removed: `stylelint` less than `15.0.0` from peer dependencies.

__tests__/index.test.js

+13
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,16 @@ describe('flags warnings with invalid css', () => {
7070
return result.then((data) => expect(data.results[0].warnings[0].column).toBe(1));
7171
});
7272
});
73+
74+
describe('deprecated rules', () => {
75+
const deprecatedRuleNames = Object.values(stylelint.rules)
76+
.filter((rule) => rule.meta.deprecated)
77+
.map((rule) => rule.ruleName);
78+
79+
const testFn = deprecatedRuleNames.length === 0 ? it.skip : it;
80+
81+
testFn('exclude deprecate rules', () => {
82+
// eslint-disable-next-line jest/no-standalone-expect -- If not using `it` directly, false positives occur.
83+
deprecatedRuleNames.map((m) => expect(Object.keys(config.rules)).not.toContain(m));
84+
});
85+
});

index.js

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ module.exports = {
2929
'no-duplicate-at-import-rules': true,
3030
'no-duplicate-selectors': true,
3131
'no-empty-source': true,
32-
'no-extra-semicolons': true,
3332
'no-invalid-double-slash-comments': true,
3433
'no-invalid-position-at-import-rule': true,
3534
'no-irregular-whitespace': true,

0 commit comments

Comments
 (0)