Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare 14.0.0 #5604

Merged
merged 196 commits into from Oct 21, 2021
Merged
Show file tree
Hide file tree
Changes from 191 commits
Commits
Show all changes
196 commits
Select commit Hold shift + click to select a range
8c48068
Remove deprecated rules (#5295)
jeddy3 May 14, 2021
2f01778
Update CHANGELOG.md
jeddy3 May 14, 2021
4b82c24
Remove function-calc-no-invalid (#5296)
jeddy3 May 14, 2021
0b3fa84
Update CHANGELOG.md
jeddy3 May 14, 2021
37e1190
Drop Node 10 support for ESM (#5303)
ybiquitous May 14, 2021
90a174d
Update CHANGELOG.md
ybiquitous May 14, 2021
e4b6141
Refactor to remove `Number.isInteger` polyfill (#5302)
ybiquitous May 14, 2021
887f03e
Add lang to code blocks in Markdown (#5299)
ybiquitous May 14, 2021
52f99c6
Remove syntax option (#5297)
jeddy3 May 15, 2021
1e4ca41
Update CHANGELOG.md
jeddy3 May 15, 2021
e0004aa
Refactor async calls to fs to use fs/promises (#5271) (#5306)
qubyte May 16, 2021
2345a21
Refactor `lib/__tests__/standalone-cache.test.js` (#5311)
ybiquitous May 17, 2021
3d5725e
Add autofix to function-calc-no-unspaced-operator (#5273)
doing-art May 17, 2021
a3460ef
Update CHANGELOG.md
jeddy3 May 17, 2021
52a67ab
Fix false positives for flex in length-zero-no-unit (#5315)
jeddy3 May 19, 2021
9152ab4
Update CHANGELOG.md
jeddy3 May 19, 2021
492ae33
Add ignoreFunctions: [] to length-zero-no-unit (#5314)
jeddy3 May 19, 2021
697fc15
Update CHANGELOG.md
jeddy3 May 19, 2021
d540d78
Document what each formatter does (#5313)
jeddy3 May 19, 2021
6086255
Refactor to remove `autoprefixer` dependency (#5312)
ybiquitous May 19, 2021
cab9e9b
Refactor to remove `_.last` (#5323)
stephenwade May 26, 2021
feff3c9
Refactor to remove `_.isEmpty` (#5324)
stephenwade May 26, 2021
b8da5f0
Fix invalid `-webkit- old***` from `isAutoprefixable()` (#5321)
ybiquitous May 26, 2021
783b64a
Bump jest from v26 to v27 (#5326)
ybiquitous May 28, 2021
0f6da86
Refactor to remove some uses of `_.get` and `_.set` (#5327)
stephenwade May 28, 2021
ea107d7
Add color-hex-alpha rule (#5316)
jeddy3 May 29, 2021
e7c655f
Update CHANGELOG.md
jeddy3 May 29, 2021
a3cc2c4
Add custom-property-no-missing-var-function rule (#5317)
jeddy3 May 29, 2021
71cb4fb
Update CHANGELOG.md
jeddy3 May 29, 2021
99f9d37
Refactor to remove remaining uses of `_.get` and `_.set` (#5328)
stephenwade May 30, 2021
d56ab94
Remove `_.remove` (#5329)
stephenwade May 31, 2021
21f1e3a
Remove `_.isNil` (#5330)
stephenwade May 31, 2021
0ac3f4b
Remove `_.flatMap` (#5331)
stephenwade May 31, 2021
9ac4f92
Remove `_.isPlainObject` (#5336)
stephenwade Jun 1, 2021
acfaad4
Refactor to remove `_.partial` (#5334)
stephenwade Jun 1, 2021
e741bae
Refactor to remove `_.flatten` (#5337)
stephenwade Jun 2, 2021
ffdf6af
Refactor to remove `_.uniqueId` (#5338)
stephenwade Jun 2, 2021
ec2dcd9
Remove DisableReportRange.unusedRule from types (#5345)
mattxwang Jun 5, 2021
d167438
Refactor to remove `_.uniqBy` (#5339)
stephenwade Jun 5, 2021
1a3d5c4
Refactor to remove type validation functions (#5341)
stephenwade Jun 5, 2021
68c041b
Refactor to remove `_.sortBy` (#5349)
stephenwade Jun 7, 2021
edfb653
Refactor to remove `_.transform` (#5351)
stephenwade Jun 7, 2021
1c69640
Refactor to remove `_.groupBy` (#5350)
stephenwade Jun 7, 2021
17624b5
Update to PostCSS 8 (#5304)
jeddy3 Jun 7, 2021
33f10e3
Merge branch 'master' into v14
hudochenkov Jun 7, 2021
3628be2
Refactor to remove `_.trim` (#5360)
stephenwade Jun 8, 2021
1fa371d
Refactor to remove `_.find` (#5359)
stephenwade Jun 8, 2021
ebe85e1
Refactor to remove `_.compact` (#5358)
stephenwade Jun 8, 2021
c11ff36
Fix styleline typos in docs and CLI (#5352)
Jun 8, 2021
368be6a
Refactor to remove custom PostCSS type definitions (#5362)
ybiquitous Jun 8, 2021
54e4165
Refactor to more specific function types (#5363)
ybiquitous Jun 8, 2021
342af1b
Refactor to remove `_.union` (#5364)
stephenwade Jun 9, 2021
2388fbe
Refactor to remove `_.kebabCase` (#5365)
stephenwade Jun 9, 2021
d773547
Refactor to remove `_.isEqual` (#5366)
stephenwade Jun 9, 2021
1cdade4
Refactor to improve types in `lib/utils/whitespaceChecker.js` (#5367)
ybiquitous Jun 10, 2021
dadcf7b
Refactor to remove `_.merge` and `_.mergeWith` (#5369)
stephenwade Jun 10, 2021
e5ef0a0
Refactor to remove `_.cloneDeep` (#5370)
stephenwade Jun 13, 2021
6501dac
Refactor to remove `_.escapeRegExp` (#5371)
stephenwade Jun 13, 2021
92c3fea
Refactor to remove isFunction and lodash itself (#5372)
stephenwade Jun 14, 2021
336cf15
Fix "No files matching the pattern" when using backslash paths on Win…
tbowmo Jul 14, 2021
e64aeba
Update CHANGELOG.md
jeddy3 Jul 14, 2021
e7d61c1
Fix some type problems (#5389)
ybiquitous Jul 17, 2021
57a7a4f
Run CI on v14 branch (#5390)
ybiquitous Jul 17, 2021
47716e5
Refactor `validateOptions()` utility (#5391)
ybiquitous Jul 17, 2021
97d5151
Fix false positives for Less maps in property-no-unknown (#5381)
jrlmontejo Jul 26, 2021
6d2e92a
Update CHANGELOG.md
jeddy3 Jul 26, 2021
04be2a2
Improve types for `at-rule-*` rules (#5418)
ybiquitous Jul 26, 2021
56e2453
Fix false positives for parametric mixins in selector-class-pattern (…
immitsu Jul 26, 2021
14f5c21
Update CHANGELOG.md
jeddy3 Jul 26, 2021
5e4d9a0
Refactor function names for `removeEmptyLines{After,Before}` (#5424)
ybiquitous Jul 26, 2021
0d4a348
Refactor `lib/utils/beforeBlockString.js` (#5425)
ybiquitous Jul 27, 2021
2fed08b
Refactor to improve types for `block-*` rules (#5426)
ybiquitous Jul 27, 2021
1e83790
Fix false positives for prefers-contrast in media-feature-name-no-unk…
danrichman Jul 28, 2021
6fe8a03
Update CHANGELOG.md
jeddy3 Jul 28, 2021
421b073
Add ignoreProperties: [] to number-max-precision (#5421)
eljusto Aug 10, 2021
8da523f
Update CHANGELOG.md
jeddy3 Aug 10, 2021
ba36aaf
Set `target-branch` for Dependabot (#5439)
ybiquitous Aug 11, 2021
28c7ffc
Refactor to improve types for `color-*` rules (#5440)
ybiquitous Aug 12, 2021
ecd9c39
Refactor to improve types for `comment-*` rules (#5454)
ybiquitous Aug 12, 2021
3811f0a
Bump @types/postcss-less from 4.0.0 to 4.0.1 (#5455)
dependabot[bot] Aug 12, 2021
44bf0b4
Bump known-css-properties from 0.21.0 to 0.23.0 (#5456)
dependabot[bot] Aug 12, 2021
d7bfefe
Bump postcss-less from 4.0.1 to 5.0.0 (#5458)
dependabot[bot] Aug 12, 2021
3d77ba3
Bump eslint from 7.25.0 to 7.32.0 (#5461)
dependabot[bot] Aug 12, 2021
9535568
Bump sugarss from 3.0.3 to 4.0.1 (#5459)
dependabot[bot] Aug 12, 2021
2470f7f
Bump postcss-safe-parser from 5.0.2 to 6.0.0 (#5457)
dependabot[bot] Aug 12, 2021
caaebde
Bump postcss-scss from 3.0.5 to 4.0.0 (#5465)
dependabot[bot] Aug 12, 2021
7fc07ff
Bump @types/micromatch from 4.0.1 to 4.0.2 (#5464)
dependabot[bot] Aug 12, 2021
f3a7416
Bump prettier from 2.2.1 to 2.3.2 (#5466)
dependabot[bot] Aug 12, 2021
f076a89
Bump husky from 6.0.0 to 7.0.1 (#5468)
dependabot[bot] Aug 12, 2021
59af527
Bump @types/write-file-atomic from 3.0.1 to 3.0.2 (#5469)
dependabot[bot] Aug 12, 2021
2739142
Bump remark-cli from 9.0.0 to 10.0.0 (#5470)
dependabot[bot] Aug 12, 2021
7436e18
Bump @types/file-entry-cache from 5.0.1 to 5.0.2 (#5471)
dependabot[bot] Aug 12, 2021
2cb7337
Bump @types/style-search from 0.1.1 to 0.1.3 (#5472)
dependabot[bot] Aug 12, 2021
f16d81c
Bump jest from 27.0.1 to 27.0.6 (#5473)
dependabot[bot] Aug 12, 2021
0c95bbf
Bump debug from 4.3.1 to 4.3.2 (#5474)
dependabot[bot] Aug 12, 2021
68ac19e
Update deps (#5475)
jeddy3 Aug 12, 2021
af4314d
Update Typescript (#5476)
jeddy3 Aug 12, 2021
f863393
Refactor to improve types for `custom-*` rules (#5477)
ybiquitous Aug 13, 2021
9a0d524
Bump @stylelint/remark-preset from 2.0.0 to 3.0.0 (#5480)
ybiquitous Aug 15, 2021
82e70f5
Bump actions/setup-node from v1 to v2 (#5481)
ybiquitous Aug 15, 2021
ffb688d
Add GitHub Actions for Dependabot configuration (#5482)
ybiquitous Aug 15, 2021
b8f6b40
Refactor to improve types for `declaration-bang-space-*` rules (#5483)
ybiquitous Aug 16, 2021
578fb89
Refactor to improve types for `declaration-block-*` rules (#5484)
ybiquitous Aug 16, 2021
52f2474
Refactor to improve types for `declaration-*` rules (#5485)
ybiquitous Aug 18, 2021
544d857
Refactor to improve types for `font-*` rules (#5486)
ybiquitous Aug 18, 2021
d555890
Improve message of `function-url-quotes` rule (#5488)
ybiquitous Aug 20, 2021
89100c7
Update CHANGELOG.md
jeddy3 Aug 20, 2021
c0b1773
Refactor to improve types for `function-*` rules (#5487)
ybiquitous Aug 20, 2021
1b564b2
Bump cosmiconfig from 7.0.0 to 7.0.1 (#5490)
dependabot[bot] Aug 23, 2021
4969f65
Refactor to improve types for `hue-*` rules (#5494)
ybiquitous Aug 24, 2021
16ea586
Refactor to improve types for `indentation` rule (#5496)
ybiquitous Aug 25, 2021
5d98cc3
Refactor to improve types for some rules (#5498)
ybiquitous Aug 25, 2021
574ac36
Bump husky from 7.0.1 to 7.0.2 (#5503)
dependabot[bot] Aug 30, 2021
2a5de18
Bump jest from 27.0.6 to 27.1.0 (#5504)
dependabot[bot] Aug 30, 2021
0c5c4f5
Bump typescript from 4.3.5 to 4.4.2 (#5501)
dependabot[bot] Aug 31, 2021
e5034d2
Refactor to improve types for `media-feature-colon-*` rules (#5509)
ybiquitous Sep 2, 2021
399d524
Fix max-empty-lines before comments (#5507)
yepninja Sep 2, 2021
2e3245c
Update CHANGELOG.md
ybiquitous Sep 2, 2021
10d0bd8
Refactor to improve types for `max-*` rules (#5508)
ybiquitous Sep 2, 2021
04151e9
Fix false positives in nested property declarations unit-no-unknown (…
sylwia-lask Sep 4, 2021
6af4c0b
Update CHANGELOG.md
jeddy3 Sep 4, 2021
46bf06e
Refactor to improve types for `media-feature-name-*` rules (#5510)
ybiquitous Sep 4, 2021
dda3920
Refactor to improve types for `media-query-*` rules (#5512)
ybiquitous Sep 5, 2021
44889a5
Refactor to improve types for `media-feature-*` rules (#5511)
ybiquitous Sep 5, 2021
c1713ea
Refactor to improve types for `named-grid-areas-no-invalid` rule (#5513)
ybiquitous Sep 5, 2021
30bb6fa
Fix false negatives for grid shorthands in named-grid-areas-no-invali…
jeddy3 Sep 6, 2021
246a9c9
Update CHANGELOG.md
jeddy3 Sep 6, 2021
3c89928
Refactor at-rule conditional in unit-no-unknown (#5515)
sylwia-lask Sep 7, 2021
b8d4589
Bump jest from 27.1.0 to 27.1.1 (#5525)
dependabot[bot] Sep 13, 2021
56ad476
Bump typescript from 4.4.2 to 4.4.3 (#5527)
dependabot[bot] Sep 13, 2021
cad503b
Bump prettier from 2.3.2 to 2.4.0 (#5528)
dependabot[bot] Sep 13, 2021
725edf5
Add `overrides` option to config (#5521)
hudochenkov Sep 13, 2021
5d7695a
Update CHANGELOG.md
jeddy3 Sep 13, 2021
56a4a76
Remove `configOverrides` option (#5522) (#5530)
hudochenkov Sep 14, 2021
2722810
Update CHANGELOG.md
jeddy3 Sep 14, 2021
dbfd171
Fix flaky cache test via `jest.retryTimes()` (#5533)
ybiquitous Sep 14, 2021
f7f555c
Refactor to improve types for `no-descending-specificity` rule (#5534)
ybiquitous Sep 14, 2021
05677f7
Bump jest from 27.1.1 to 27.2.0 (#5535)
dependabot[bot] Sep 14, 2021
3058f45
Add ignoreAtRules: [] to no-invalid-position-at-import (#5520)
sylwia-lask Sep 15, 2021
ee69d22
Update CHANGELOG.md
jeddy3 Sep 15, 2021
3233c82
Bump eslint-config-stylelint from 13.1.1 to 14.0.0 (#5536)
dependabot[bot] Sep 15, 2021
92e5068
Fix ReDoS issue (#5539)
hudochenkov Sep 15, 2021
e8d1f98
Create CHANGELOG.md
jeddy3 Sep 15, 2021
6acf73f
Add `customSyntax` option to configuration object (#4843) (#5538)
hudochenkov Sep 15, 2021
5105ac2
Update CHANGELOG.md
jeddy3 Sep 15, 2021
6ab4199
Add disableFix secondary option (#5460)
kuangrs Sep 16, 2021
34bb44b
Update CHANGELOG.md
jeddy3 Sep 16, 2021
e8db4f3
Regenerate package-lock.json (#5541)
XhmikosR Sep 17, 2021
6f6353b
Refactor to improve types for `no-duplicate-*` rules (#5543)
ybiquitous Sep 17, 2021
9608544
Refactor to remove `slash` package (#5544)
ybiquitous Sep 17, 2021
c0383e9
Add `quiet` option to Node.js API (#5542)
hudochenkov Sep 17, 2021
a850f72
Update CHANGELOG.md
jeddy3 Sep 17, 2021
5c55141
lint script: add `--continue-on-error` (#5545)
XhmikosR Sep 17, 2021
55f5532
Refactor based on latest XO recommendations (#5546)
XhmikosR Sep 17, 2021
88c9f17
Refactor to use arrow return (#5547)
XhmikosR Sep 17, 2021
d275e9f
Refactor to add missing radix (#5548)
XhmikosR Sep 17, 2021
2ae15b0
Refactor to replace `__dirname` with `process.cwd()` in runtime code …
ybiquitous Sep 18, 2021
93d2c74
Refactor `cli.js` a bit (#5550)
ybiquitous Sep 18, 2021
8a16578
Refactor to fix `cosmiconfig` type error (#5551)
ybiquitous Sep 18, 2021
7cac274
Bump prettier from 2.4.0 to 2.4.1 (#5553)
dependabot[bot] Sep 22, 2021
855a5fd
Use dashed indents in examples of custom at-rule constructs (#5555)
sylwia-lask Sep 25, 2021
6c54b4c
Refactor to improve types for `StylelintInternalApi` (#5556)
ybiquitous Sep 25, 2021
934e8e4
Refactor to fix `@ts-ignore` in `isStandardSyntaxDeclaration()` (#5557)
ybiquitous Sep 25, 2021
7b3ede7
Refactor to replace chalk with nanocolors (#5560)
ai Sep 25, 2021
6eae913
Refactor to replace `log-symbols` with custom implementation (#5562)
ybiquitous Sep 27, 2021
fa87809
Bump jest from 27.2.0 to 27.2.2 (#5565)
dependabot[bot] Sep 27, 2021
9cf91ed
Bump nanocolors from 0.2.1 to 0.2.9 (#5566)
dependabot[bot] Sep 27, 2021
dfb1fca
Bump nanocolors from 0.2.9 to 0.2.12 (#5569)
dependabot[bot] Oct 4, 2021
ba1649b
Bump table from 6.7.1 to 6.7.2 (#5570)
dependabot[bot] Oct 4, 2021
3db11a1
Bump postcss-scss from 4.0.0 to 4.0.1 (#5571)
dependabot[bot] Oct 4, 2021
d04b82a
Bump jest-watch-typeahead from 0.6.4 to 1.0.0 (#5572)
dependabot[bot] Oct 4, 2021
4ce6913
Bump jest from 27.2.2 to 27.2.4 (#5573)
dependabot[bot] Oct 4, 2021
585d28a
Refactor to use picocolors (#5574)
hudochenkov Oct 6, 2021
bf5fe4e
Document 14.0.0 migration guide (#5563)
jeddy3 Oct 10, 2021
1c525e7
Update docs to use Stylelint (capital S) (#5584)
jeddy3 Oct 10, 2021
5722d73
Bump lint-staged from 11.1.2 to 11.2.3 (#5588)
dependabot[bot] Oct 11, 2021
d5edc48
Bump jest from 27.2.4 to 27.2.5 (#5589)
dependabot[bot] Oct 11, 2021
816b19a
Add TypeScript type definitions (#5582)
adalinesimonian Oct 11, 2021
a413527
Fix TypeError for spaceless condition in media-feature-name-value-all…
lachieh Oct 12, 2021
176c5e0
Update CHANGELOG.md
jeddy3 Oct 12, 2021
e38da70
Use problem rather than violation in docs and types (#5592)
jeddy3 Oct 12, 2021
88b9575
Revise contributors section of README (#5585)
jeddy3 Oct 12, 2021
1f32094
Bump typescript from 4.4.3 to 4.4.4 (#5599)
dependabot[bot] Oct 18, 2021
87c5fde
Bump picocolors from 0.2.1 to 1.0.0 (#5601)
dependabot[bot] Oct 18, 2021
1b4162f
Fix conflicts in dependabot
jeddy3 Oct 18, 2021
367142a
Change `ignoreFiles` to be extendable (#5596)
Airkro Oct 18, 2021
07118d6
Update CHANGELOG.md
jeddy3 Oct 18, 2021
bf28025
Recommend using shared configs (#5598)
jeddy3 Oct 18, 2021
b6fd2fc
Document no need for postcss-html maintainer (#5602)
jeddy3 Oct 19, 2021
67313a3
Add support for `extends` in `overrides` config (#5603)
ota-meshi Oct 19, 2021
5dd7ec1
Prepare 14.0.0
jeddy3 Oct 19, 2021
12f8081
14.0.0-0
ntwb Oct 20, 2021
2eee0a9
Remove v14 CI triggers (#5610)
hudochenkov Oct 20, 2021
8dca498
Show more info in missing customSyntax warning (#5611)
hudochenkov Oct 21, 2021
70b1149
Fix false positives for dynamic-range keywords in media-feature-name-…
willcassella Oct 21, 2021
16d259f
Update CHANGELOG.md
jeddy3 Oct 21, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 0 additions & 1 deletion .eslintignore
@@ -1,6 +1,5 @@
.coverage
lib/vendor
lib/utils/parseCalcExpression/parser.js

# Unignore config files like .prettierrc.js, because they're ignored by default
!.*rc.js
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/REPORT_A_BUG.md
Expand Up @@ -23,7 +23,7 @@ a {
}
```

> What stylelint configuration is needed to reproduce the bug?
> What Stylelint configuration is needed to reproduce the bug?

e.g.

Expand All @@ -35,7 +35,7 @@ e.g.
}
```

> Which version of stylelint are you using?
> Which version of Stylelint are you using?

e.g. `9.2.0`

Expand Down
9 changes: 8 additions & 1 deletion .github/dependabot.yml
Expand Up @@ -8,4 +8,11 @@ updates:
labels:
- 'pr: dependencies'
versioning-strategy: increase
target-branch: 'v14' # TODO: Remove when releasing v14.

- package-ecosystem: github-actions
directory: '/'
schedule:
interval: weekly
open-pull-requests-limit: 5
labels:
- 'pr: dependencies'
2 changes: 2 additions & 0 deletions .github/workflows/code-scanning.yml
Expand Up @@ -5,10 +5,12 @@ on:
branches:
- master
- '!dependabot/**'
- v14 # TODO: Remove when releasing v14.
pull_request:
# The branches below must be a subset of the branches above
branches:
- master
- v14 # TODO: Remove when releasing v14.
schedule:
- cron: '0 7 * * 1'

Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/linting.yml
Expand Up @@ -5,13 +5,11 @@ on:
branches:
- master
- 'dependabot/**'
- v14 # TODO: Remove when releasing v14.
pull_request:
branches:
- '**'

env:
CI: true

jobs:
lint:
name: Lint on Node.js ${{ matrix.node }} and ${{ matrix.os }}
Expand All @@ -27,9 +25,10 @@ jobs:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install latest npm
run: npm install --global npm@latest
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/testing.yml
Expand Up @@ -5,13 +5,11 @@ on:
branches:
- master
- 'dependabot/**'
- v14 # TODO: Remove when releasing v14.
pull_request:
branches:
- '**'

env:
CI: true

jobs:
test:
name: Test on Node.js ${{ matrix.node }} and ${{ matrix.os }}
Expand All @@ -21,7 +19,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [10, 12, 14, 16]
node: [12, 14, 16]
os: [ubuntu-latest, windows-latest, macos-latest]
exclude:
- os: ubuntu-latest
Expand All @@ -31,9 +29,10 @@ jobs:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install latest npm
run: npm install --global npm@latest
Expand All @@ -58,9 +57,10 @@ jobs:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node }}
uses: actions/setup-node@v1
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
cache: npm

- name: Install latest npm
run: npm install --global npm@latest
Expand Down
1 change: 0 additions & 1 deletion .husky/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore
Expand Up @@ -10,7 +10,6 @@
**/fixtures/**/*.vue
**/fixtures/**/*.html
**/fixtures/**/*.markdown
lib/utils/parseCalcExpression/parser.js
scripts/**/*.css
system-tests/**/*.css
system-tests/**/*.scss
65 changes: 49 additions & 16 deletions CHANGELOG.md

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions CONTRIBUTING.md
Expand Up @@ -5,15 +5,15 @@ Thank you for wanting to contribute.
To help out, you can:

- get involved in any open [issue](https://github.com/stylelint/stylelint/issues) or [pull request](https://github.com/stylelint/stylelint/pulls)
- improve our [support for non-standard syntaxes](docs/about/syntaxes.md)
- maintain [community custom syntaxes](docs/developer-guide/syntaxes.md)
- create, enhance and debug rules using [our guide](docs/developer-guide/rules.md)
- improve the [documentation](docs/)
- add [new tests](https://github.com/stylelint/stylelint/issues?q=is%3Aopen+is%3Aissue+label%3A%22type%3A+tests%22) to _absolutely anything_
- improve the [performance of rules](docs/developer-guide/rules.md#improve-the-performance-of-a-rule)
- open [new issues](https://github.com/stylelint/stylelint/issues/new/choose) about your ideas for making stylelint better
- open [new issues](https://github.com/stylelint/stylelint/issues/new/choose) about your ideas for making Stylelint better
- create or contribute to [integrations](docs/user-guide/integrations/editor.md), like our plugin for [VS Code](https://github.com/stylelint/vscode-stylelint)

Not only will you help stylelint thrive, but you may learn a thing or two — about CSS, PostCSS, Node, ES2015, unit testing, open-source software, and more. We want to encourage contributions! If you want to participate but couldn't, please [give us feedback](https://github.com/stylelint/stylelint/issues/new) about what we could do better.
Not only will you help Stylelint thrive, but you may learn a thing or two — about CSS, PostCSS, Node, ES2015, unit testing, open-source software, and more. We want to encourage contributions! If you want to participate but couldn't, please [give us feedback](https://github.com/stylelint/stylelint/issues/new) about what we could do better.

## Code contributions

Expand All @@ -24,7 +24,7 @@ To start coding, you'll need:

Then:

1. [Fork and clone](https://guides.github.com/activities/forking/) the stylelint repository.
1. [Fork and clone](https://guides.github.com/activities/forking/) the Stylelint repository.
2. Install all the dependencies with `npm ci`.

### Run tests
Expand Down Expand Up @@ -67,7 +67,7 @@ Alternatively, you can:

When you have something to share, it's time to [open a pull request](https://help.github.com/en/github/collaborating-with-issues-and-pull-requests/creating-a-pull-request-from-a-fork).

After we review and merge your pull request, we'll invite you to become a maintainer of the stylelint organization. You'll then be able to help manage issues, pull requests and releases. You'll also be able to work on the stylelint repository rather than your fork.
After we review and merge your pull request, we'll invite you to become a maintainer of the Stylelint organization. You'll then be able to help manage issues, pull requests and releases. You'll also be able to work on the Stylelint repository rather than your fork.

## Financial contributions

Expand Down
80 changes: 61 additions & 19 deletions README.md
@@ -1,4 +1,4 @@
# stylelint
# Stylelint

[![NPM version](https://img.shields.io/npm/v/stylelint.svg)](https://www.npmjs.org/package/stylelint) [![Build Status](https://github.com/stylelint/stylelint/workflows/CI/badge.svg)](https://github.com/stylelint/stylelint/actions) [![NPM Downloads](https://img.shields.io/npm/dm/stylelint.svg)](https://npmcharts.com/compare/stylelint?minimal=true)

Expand All @@ -8,42 +8,84 @@ A mighty, modern linter that helps you avoid errors and enforce conventions in y

It's mighty as it:

- understands the **latest CSS syntax** including custom properties and level 4 selectors
- extracts **embedded styles** from HTML, markdown and CSS-in-JS object & template literals
- parses **CSS-like syntaxes** like SCSS, Sass, Less and SugarSS
- has over **170 built-in rules** to catch errors, apply limits and enforce stylistic conventions
- supports **plugins** so you can create your own rules or make use of plugins written by the community
- automatically **fixes** the majority of stylistic violations
- understands **modern** CSS syntax and features
- has over **170 built-in rules** to catch errors and enforce conventions
- supports **plugins** so you can create your own rules
- automatically **fixes** the majority of stylistic problems
- is **well tested** with over 15000 unit tests
- supports **shareable configs** that you can extend or create
- is **unopinionated** so that you can customize it to your exact needs
- has a **growing community** and is used by [Facebook](https://code.facebook.com/posts/879890885467584/improving-css-quality-at-facebook-and-beyond/), [GitHub](https://github.com/primer/stylelint-config-primer) and [WordPress](https://github.com/WordPress-Coding-Standards/stylelint-config-wordpress)
- has a **growing community** and is used by Google, GitHub and WordPress

And can be extended to:

- parse **CSS-like syntaxes** like SCSS, Sass, Less and SugarSS
- extract **embedded styles** from HTML, Markdown and CSS-in-JS object & template literals

## Example output

![Example](https://github.com/stylelint/stylelint/raw/master/example.png?raw=true)

## Getting started

You'll find steps to [get started in our User guide](docs/user-guide/get-started.md).
## Guides

- User guide
- [Getting started](docs/user-guide/get-started.md)
- [Configuration](docs/user-guide/configure.md)
- Rules
- [List of rules](docs/user-guide/rules/list.md)
- [About rules](docs/user-guide/rules/about.md)
- [Combining rules](docs/user-guide/rules/combine.md)
- [Using regex in rules](docs/user-guide/rules/regex.md)
- Usage
- [CLI](docs/user-guide/usage/cli.md)
- [Node.js API](docs/user-guide/usage/node-api.md)
- [PostCSS plugin](docs/user-guide/usage/postcss-plugin.md)
- [Shared options](docs/user-guide/usage/options.md)
- Integrations
- [Editor integrations](docs/user-guide/integrations/editor.md)
- [Task runner integrations](docs/user-guide/integrations/task-runner.md)
- [Other integrations](docs/user-guide/integrations/other.md)
- [Ignoring code](docs/user-guide/ignore-code.md)
- [Errors & warnings](docs/user-guide/errors.md)
- Developer guide
- [Working on rules](docs/developer-guide/rules.md)
- [Writing plugins](docs/developer-guide/plugins.md)
- [Writing custom syntaxes](docs/developer-guide/syntaxes.md)
- [Writing custom formatters](docs/developer-guide/formatters.md)
- [Writing system tests](docs/developer-guide/system-tests.md)
- [Writing processors](docs/developer-guide/processors.md)
- Migration guide
- [Migrating to 14.0.0](docs/migration-guide/to-14.md)
- Maintainer guide
- [Managing issues](docs/maintainer-guide/issues.md)
- [Managing pull requests](docs/maintainer-guide/pull-requests.md)
- [Performing releases](docs/maintainer-guide/releases.md)
- About
- [Vision](docs/about/vision.md)
- [Linting](docs/about/linting.md)
- [Semantic versioning](docs/about/semantic-versioning.md)

## Contributors

Without the contributions from [all these fantastic people](https://github.com/stylelint/stylelint/graphs/contributors), stylelint would not exist. [Become a contributor](CONTRIBUTING.md).
Stylelint is maintained by volunteers. Without the code contributions from [all these fantastic people](https://github.com/stylelint/stylelint/graphs/contributors), Stylelint would not exist. [Become a contributor](CONTRIBUTING.md).

## Backers
### Sponsors

<a href="https://opencollective.com/stylelint#backers" target="_blank"><img src="https://opencollective.com/stylelint/backers.svg?width=890" /></a>
<object data="https://opencollective.com/stylelint/sponsors.svg?width=420&button=false" type="image/svg+xml">
<img src="https://opencollective.com/stylelint/sponsors.svg?width=840&button=false" />
</object>

Thank you to all our backers! [Become a backer](https://opencollective.com/stylelint#backer).
Thank you to all our sponsors! [Become a sponsor](https://opencollective.com/stylelint).

## Sponsors
### Backers

<a href="https://opencollective.com/stylelint/sponsor/0/website" target="_blank"><img src="https://opencollective.com/stylelint/sponsor/0/avatar.svg" /></a>
<object data="https://opencollective.com/stylelint/backers.svg?width=420&avatarHeight=48&button=false" type="image/svg+xml">
<img src="https://opencollective.com/stylelint/backers.svg?width=840&avatarHeight=48&button=false" />
</object>

Support this project to show your logo here with a link to your website. [Become a sponsor](https://opencollective.com/stylelint#sponsor).
Thank you to all our backers! [Become a backer](https://opencollective.com/stylelint).

## Website hosting
### Website hosting

<a href="https://www.netlify.com"><img src="https://www.netlify.com/img/global/badges/netlify-color-accent.svg" alt="Deploys by Netlify" /></a>

Expand Down
8 changes: 4 additions & 4 deletions docs/about/linting.md
Expand Up @@ -11,9 +11,9 @@ There are two approaches to enforcing stylistic conventions:
- a machine algorithmically pretty prints the code (usually based on a maximum line length)
- a human initially formats the code, and a machine fixes-up/warns-about any mistakes

The former is handled by pretty printers, like [prettier](https://github.com/prettier/prettier), whereas the latter is catered for by the built-in [stylistic rules](../user-guide/rules/list.md#stylistic-issues). If you use a pretty printer, you'll want to use [`stylelint-config-recommended`](https://github.com/stylelint/stylelint-config-recommended), which only turns on [possible error](../user-guide/rules/list.md#possible-errors) rules.
The former is handled by pretty printers, like [Prettier](https://github.com/prettier/prettier), whereas the latter is catered for by the built-in [stylistic rules](../user-guide/rules/list.md#stylistic-issues). If you use a pretty printer, you'll want to use [`stylelint-config-standard`](https://github.com/stylelint/stylelint-config-standard) and [`stylelint-config-prettier`](https://github.com/prettier/stylelint-config-prettier), which turns off any imcompatible rules.

Additionally, the built-in stylistic rules and plugins are configurable to support a diverse range of stylistic conventions. For example, ordering properties within declaration blocks is a divisive topic, where there isn't a dominant convention. The [`stylelint-order`](https://www.npmjs.com/package/stylelint-order) plugin can be configured to lint and fix a diverse range of ordering conventions.
The built-in stylistic rules and plugins are configurable to support a diverse range of stylistic conventions. For example, ordering properties within declaration blocks is a divisive topic, where there isn't a dominant convention. The [`stylelint-order`](https://www.npmjs.com/package/stylelint-order) plugin can be configured to lint and fix a diverse range of ordering conventions.

Another example is the use of single-line rules for sets of _related_ rules, e.g.

Expand All @@ -29,6 +29,6 @@ You can configure the built-in stylistic rules to allow both multi-line and sing

## Validators

Validators like [csstree](https://github.com/csstree/csstree) identify invalid code such as misformed hex colors and unknown language features.
Validators like [CSSTree](https://github.com/csstree/csstree) identify invalid code such as misformed hex colors, unknown language features or invalid property and value pairs.

However, as a stop-gap, while these tools mature stylelint provides rules for the simplest of cases.
However, as a stop-gap, Stylelint provides rules for the simplest of cases while these tools mature.
10 changes: 5 additions & 5 deletions docs/about/semantic-versioning.md
@@ -1,14 +1,14 @@
# Semantic versioning

Due to the nature of stylelint as a code quality tool, we follow a specific flavor of [semantic versioning](http://semver.org).
Due to the nature of Stylelint as a code quality tool, we follow a specific flavor of [semantic versioning](http://semver.org).

Any minor update may report more errors than the previous release. As such, we recommend using the tilde (`~`) in `package.json` e.g. `"stylelint": "~7.2.0"` to guarantee the results of your builds.

## Patch release

Intended not to break your lint build:

- a bug fix in a rule that results in stylelint reporting fewer errors
- a bug fix in a rule that results in Stylelint reporting fewer errors
- a bug fix to the CLI or core (including formatters)
- improvements to documentation
- non-user-facing changes such as refactoring code or modifying tests
Expand All @@ -18,9 +18,9 @@ Intended not to break your lint build:

Might break your lint build:

- a bug fix in a rule that results in stylelint reporting more errors
- a bug fix in a rule that results in Stylelint reporting more errors
- a new rule is created
- a new option to an existing rule that does not result in stylelint reporting more errors by default
- a new option to an existing rule that does not result in Stylelint reporting more errors by default
- an existing rule is deprecated
- a new CLI capability is created
- a new public API capability is created
Expand All @@ -30,7 +30,7 @@ Might break your lint build:

Likely to break your lint build:

- a change in the documented behavior of an existing rule results in stylelint reporting more errors by default
- a change in the documented behavior of an existing rule results in Stylelint reporting more errors by default
- an existing rule is removed
- an existing formatter is removed
- part of the CLI is removed or changed in an incompatible way
Expand Down
18 changes: 0 additions & 18 deletions docs/about/syntaxes.md

This file was deleted.

4 changes: 2 additions & 2 deletions docs/about/vision.md
Expand Up @@ -44,8 +44,8 @@ Provide multiple points of extensions, including:

- [plugins](../developer-guide/plugins.md) - build community rules to support methodologies, toolsets, non-standard CSS features, or very specific use cases
- [extendable configs](../user-guide/configure.md#extends) - extend and share configurations
- [formatters](../developer-guide/formatters.md) - format stylelint result objects
- [custom syntax](syntaxes.md) - use any PostCSS-compatible syntax module
- [formatters](../developer-guide/formatters.md) - format Stylelint result objects
- [custom syntax](../user-guide/usage/options.md#customSyntax) - use any PostCSS-compatible syntax module

## Robust

Expand Down