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
Prepare 14.0.0 #5604
Commits on May 14, 2021
-
-
-
Remove function-calc-no-invalid (#5296)
* Remove function-calc-no-invalid * Remove calc parser * Remove ignoring of calc parser
-
-
Drop Node 10 support for ESM (#5303)
This change is a part of the next major version (v14). - Remove Node 10 from CI - Update `engines.node` In addition, this removes needless `CI: true` (just a refactoring). See <https://github.blog/changelog/2020-04-15-github-actions-sets-the-ci-environment-variable-to-true/>
-
-
Refactor to remove
Number.isInteger
polyfill (#5302)We will no longer need the polyfill on the next major release (v14).
-
Add lang to code blocks in Markdown (#5299)
* Add lang to code blocks in Markdown This change aims to make documents more readable and avoid syntax errors by adding a language specifier to code blocks in Markdown. To perform this task efficiently, I use two remark plugins: - [remark-lint-code-block-syntax](https://github.com/ybiquitous/remark-lint-code-block-syntax) - [remark-lint-fenced-code-flag](https://github.com/remarkjs/remark-lint/tree/main/packages/remark-lint-fenced-code-flag) ```diff --- a/package.json +++ b/package.json @@ -66,7 +66,9 @@ }, "remarkConfig": { "plugins": [ - "@stylelint/remark-preset" + "@stylelint/remark-preset", + "remark-lint-code-block-syntax", + "remark-lint-fenced-code-flag" ] }, "jest": { @@ -189,6 +191,8 @@ "postcss-import": "^12.0.1", "prettier": "^2.2.1", "remark-cli": "^9.0.0", + "remark-lint-code-block-syntax": "^0.2.1", + "remark-lint-fenced-code-flag": "^2.0.1", "typescript": "^4.2.4" }, "engines": { ``` Note: I do not recommend the addition of the plugins because they produce false positives. * Remove deprecated files * Remove deprecated files again
Commits on May 15, 2021
Commits on May 17, 2021
-
Refactor
lib/__tests__/standalone-cache.test.js
(#5311)* Refactor `lib/__tests__/standalone-cache.test.js` - Reduce redundant callbacks via `async/await` syntax. (#4881) - Use `fs.existsSync()` instead of `fs.access()`. See <https://nodejs.org/api/fs.html#fs_fs_existssync_path> - Fix the disabled test. (#5309) - Inline redundant local variables. - Make expectations using `typeof` more accurate. * Reduce local variables by improving `getConfig()`
-
-
Commits on May 19, 2021
Commits on May 26, 2021
Commits on May 28, 2021
Commits on May 29, 2021
Commits on May 30, 2021
Commits on May 31, 2021
Commits on Jun 1, 2021
Commits on Jun 2, 2021
Commits on Jun 5, 2021
Commits on Jun 7, 2021
-
-
-
-
* Update postcss dependencies * Fix invalid position for attribute selector (#5305) * Fix custom property sets (#5307) * Update dependencies * Fix types issues after PostCSS update (#5346) * Migrate stylelint PostCSS plugin to Visitors API (#5353) Co-authored-by: Aleks Hudochenkov <aleks@hudochenkov.com>
-
Merge branch 'master' into v14
# Conflicts: # lib/__tests__/plugins.test.js
Commits on Jun 8, 2021
-
Refactor to remove
_.trim
(#5360)* Remove `_.trim` * Update lib/rules/function-url-no-scheme-relative/index.js Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
-
Refactor to remove
_.compact
(#5358)* Remove `_.compact` * Update lib/rules/named-grid-areas-no-invalid/index.js Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
Fix styleline typos in docs and CLI (#5352)
applemonkey496 committedJun 8, 2021 -
Refactor to remove custom PostCSS type definitions (#5362)
This refactoring removes the custom PostCSS type definition file: `types/postcss/index.d.ts`. As a result, the internal use of `postcss/lib/comment` is no longer necessary.
-
Refactor to more specific function types (#5363)
This refactoring makes abstract function types more specific, such as just `Function`. I believe this will help code changes for ESM. A part of #4496
Commits on Jun 9, 2021
Commits on Jun 10, 2021
Commits on Jun 13, 2021
Commits on Jun 14, 2021
-
Refactor to remove isFunction and lodash itself (#5372)
* Remove `_.isFunction` * Remove lodash
Commits on Jul 14, 2021
-
Fix "No files matching the pattern" when using backslash paths on Win…
…dows (#5386) * Rewrite paths for globby to use forward slash * Remove stray comment * Extend tests to verify 'windows paths' * Use normalize-path for path normalization instead of regex * Amend tests as suggested in PR comments * Updated test description Co-authored-by: Thomas Bowman Mørch <thomas.git@bowmo.dk>
-
Commits on Jul 17, 2021
-
Fix some type problems (#5389)
* Fix some type problems - Avoid `any` as possible - Use `unknown` - Use `@ts-expect-error` (see <https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-9.html#-ts-expect-error-comments>) * Use type guard for validateTypes.js
-
-
Refactor
validateOptions()
utility (#5391)- Improve types avoiding `any` - Use `for...of` instead of `forEach` (`continue` is clearer than `return`) - Use `flat()` instead of `[].concat()` idiom (avoiding type errors)
Commits on Jul 26, 2021
-
Fix false positives for Less maps in property-no-unknown (#5381)
* fix false positives for Less maps * Add test to isStandardSyntaxDeclaration.test.js * Update lib/utils/isStandardSyntaxDeclaration.js Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Co-authored-by: Jaye <jaye@whitewidget.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
-
Improve types for
at-rule-*
rules (#5418)This change removes `// @ts-nocheck` comments in `at-rule-*` rules.
-
Fix false positives for parametric mixins in selector-class-pattern (#…
…5378) * Fix processing of less parametric mixins * Remove redundant conditionals * Fix not-rule test cases * Replace checks for selector * Add tests for selector
-
-
Refactor function names for
removeEmptyLines{After,Before}
(#5424)This refactoring aims to unify the function names: `removeEmptyLinesAfter()` and `removeEmptyLinesBefore()`.
Commits on Jul 27, 2021
-
Refactor
lib/utils/beforeBlockString.js
(#5425)- Remove extra type annotations. - Simplify the logic.
-
Refactor to improve types for
block-*
rules (#5426)This change removes `// @ts-nocheck` from the `block-*` rules. In addition, it improves the types of some utilities.
Commits on Jul 28, 2021
Commits on Aug 10, 2021
Commits on Aug 11, 2021
Commits on Aug 12, 2021
-
-
Refactor to improve types for
comment-*
rules (#5454)* Refactor to improve types for `comment-*` rules Also, this change extracts `lib/utils/isInlineComment.js` from `lib/assignDisabledRanges.js`. * Rename `isInlineComment` to `isStandardSyntaxComment` * Add test case for Sass comment
-
Bump @types/postcss-less from 4.0.0 to 4.0.1 (#5455)
Bumps [@types/postcss-less](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/postcss-less) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/postcss-less) --- updated-dependencies: - dependency-name: "@types/postcss-less" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump known-css-properties from 0.21.0 to 0.23.0 (#5456)
Bumps [known-css-properties](https://github.com/known-css/known-css-properties) from 0.21.0 to 0.23.0. - [Release notes](https://github.com/known-css/known-css-properties/releases) - [Commits](known-css/known-css-properties@v0.21.0...v0.23.0) --- updated-dependencies: - dependency-name: known-css-properties dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump postcss-less from 4.0.1 to 5.0.0 (#5458)
Bumps [postcss-less](https://github.com/shellscape/postcss-less) from 4.0.1 to 5.0.0. - [Release notes](https://github.com/shellscape/postcss-less/releases) - [Commits](shellscape/postcss-less@v4.0.1...v5.0.0) --- updated-dependencies: - dependency-name: postcss-less dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump eslint from 7.25.0 to 7.32.0 (#5461)
Bumps [eslint](https://github.com/eslint/eslint) from 7.25.0 to 7.32.0. - [Release notes](https://github.com/eslint/eslint/releases) - [Changelog](https://github.com/eslint/eslint/blob/master/CHANGELOG.md) - [Commits](eslint/eslint@v7.25.0...v7.32.0) --- updated-dependencies: - dependency-name: eslint dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump sugarss from 3.0.3 to 4.0.1 (#5459)
Bumps [sugarss](https://github.com/postcss/sugarss) from 3.0.3 to 4.0.1. - [Release notes](https://github.com/postcss/sugarss/releases) - [Changelog](https://github.com/postcss/sugarss/blob/main/CHANGELOG.md) - [Commits](https://github.com/postcss/sugarss/commits/4.0.1) --- updated-dependencies: - dependency-name: sugarss dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump postcss-safe-parser from 5.0.2 to 6.0.0 (#5457)
Bumps [postcss-safe-parser](https://github.com/postcss/postcss-safe-parser) from 5.0.2 to 6.0.0. - [Release notes](https://github.com/postcss/postcss-safe-parser/releases) - [Changelog](https://github.com/postcss/postcss-safe-parser/blob/main/CHANGELOG.md) - [Commits](postcss/postcss-safe-parser@5.0.2...6.0.0) --- updated-dependencies: - dependency-name: postcss-safe-parser dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump postcss-scss from 3.0.5 to 4.0.0 (#5465)
Bumps [postcss-scss](https://github.com/postcss/postcss-scss) from 3.0.5 to 4.0.0. - [Release notes](https://github.com/postcss/postcss-scss/releases) - [Changelog](https://github.com/postcss/postcss-scss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss-scss@3.0.5...4.0.0) --- updated-dependencies: - dependency-name: postcss-scss dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump @types/micromatch from 4.0.1 to 4.0.2 (#5464)
Bumps [@types/micromatch](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/micromatch) from 4.0.1 to 4.0.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/micromatch) --- updated-dependencies: - dependency-name: "@types/micromatch" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump prettier from 2.2.1 to 2.3.2 (#5466)
* Bump prettier from 2.2.1 to 2.3.2 Bumps [prettier](https://github.com/prettier/prettier) from 2.2.1 to 2.3.2. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.2.1...2.3.2) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix formatting Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jeddy3 <jeddy3@users.noreply.github.com>
-
Bump husky from 6.0.0 to 7.0.1 (#5468)
* Bump husky from 6.0.0 to 7.0.1 Bumps [husky](https://github.com/typicode/husky) from 6.0.0 to 7.0.1. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](typicode/husky@v6.0.0...v7.0.1) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> * Remove redundant gitignore Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jeddy3 <jeddy3@users.noreply.github.com>
-
Bump @types/write-file-atomic from 3.0.1 to 3.0.2 (#5469)
Bumps [@types/write-file-atomic](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/write-file-atomic) from 3.0.1 to 3.0.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/write-file-atomic) --- updated-dependencies: - dependency-name: "@types/write-file-atomic" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump remark-cli from 9.0.0 to 10.0.0 (#5470)
Bumps [remark-cli](https://github.com/remarkjs/remark) from 9.0.0 to 10.0.0. - [Release notes](https://github.com/remarkjs/remark/releases) - [Changelog](https://github.com/remarkjs/remark/blob/main/changelog.md) - [Commits](https://github.com/remarkjs/remark/compare/remark-cli@9.0.0...10.0.0) --- updated-dependencies: - dependency-name: remark-cli dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump @types/file-entry-cache from 5.0.1 to 5.0.2 (#5471)
Bumps [@types/file-entry-cache](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/file-entry-cache) from 5.0.1 to 5.0.2. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/file-entry-cache) --- updated-dependencies: - dependency-name: "@types/file-entry-cache" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump @types/style-search from 0.1.1 to 0.1.3 (#5472)
Bumps [@types/style-search](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/style-search) from 0.1.1 to 0.1.3. - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/style-search) --- updated-dependencies: - dependency-name: "@types/style-search" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump jest from 27.0.1 to 27.0.6 (#5473)
Bumps [jest](https://github.com/facebook/jest) from 27.0.1 to 27.0.6. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](jestjs/jest@v27.0.1...v27.0.6) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump debug from 4.3.1 to 4.3.2 (#5474)
Bumps [debug](https://github.com/visionmedia/debug) from 4.3.1 to 4.3.2. - [Release notes](https://github.com/visionmedia/debug/releases) - [Commits](debug-js/debug@4.3.1...4.3.2) --- updated-dependencies: - dependency-name: debug dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
-
Commits on Aug 13, 2021
-
Refactor to improve types for
custom-*
rules (#5477)* Refactor to improve types for `custom-*` rules * Rename rule arguments
Commits on Aug 15, 2021
-
-
Bump actions/setup-node from v1 to v2 (#5481)
Also, this change sets `cache: npm` (available since v2.2.0). See below: - https://github.com/actions/setup-node/releases/tag/v2.2.0 - https://github.com/actions/setup-node#caching-packages-dependencies
-
Add GitHub Actions for Dependabot configuration (#5482)
`versioning-strategy` is unsupported for `github-actions`. See also: - #5481 (comment) - https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates
Commits on Aug 16, 2021
-
Refactor to improve types for
declaration-bang-space-*
rules (#5483)This change removes `// @ts-nocheck` from the `declaration-bang-space-*` rules. Also, it improves the `declarationBangSpaceChecker()` utility.
-
Refactor to improve types for
declaration-block-*
rules (#5484)This change removes `// @ts-nocheck` from the `declaration-block-*` rules.
Commits on Aug 18, 2021
-
Refactor to improve types for
declaration-*
rules (#5485)This change removes `// @ts-nocheck` from the remaining `declaration-*` rules. Also, this adds 2 type parameters to the `StylelintRule` type to pass the type-check.
-
Refactor to improve types for
font-*
rules (#5486)This change removes `// @ts-nocheck` from the `font-*` rules.
Commits on Aug 20, 2021
-
Improve message of
function-url-quotes
rule (#5488)This change is derived from the discussion: https://github.com/stylelint/stylelint/pull/5487/files#r692264717 A new message will include a problematic function name like this: ```diff -Expected quotes +Expected quotes around "url" function argument ```
-
-
Refactor to improve types for
function-*
rules (#5487)This change removes `// @ts-nocheck` from the `function-*` rules.
Commits on Aug 23, 2021
-
Bump cosmiconfig from 7.0.0 to 7.0.1 (#5490)
Bumps [cosmiconfig](https://github.com/davidtheclark/cosmiconfig) from 7.0.0 to 7.0.1. - [Release notes](https://github.com/davidtheclark/cosmiconfig/releases) - [Changelog](https://github.com/davidtheclark/cosmiconfig/blob/main/CHANGELOG.md) - [Commits](cosmiconfig/cosmiconfig@v7.0.0...v7.0.1) --- updated-dependencies: - dependency-name: cosmiconfig dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Aug 24, 2021
-
Refactor to improve types for
hue-*
rules (#5494)This change removes `// @ts-nocheck` from the `hue-*` rules.
Commits on Aug 25, 2021
-
Refactor to improve types for
indentation
rule (#5496)This change removes `// @ts-nocheck` from the `indentation` rule. But, it uses `// @ts-expect-error` to suppress TypeScript errors that I cannot resolve.
-
Refactor to improve types for some rules (#5498)
This change removes `// @ts-nocheck` from the following rules: - `keyframe-declaration-no-important` - `keyframes-name-pattern` - `length-zero-no-unit` - `linebreaks`
Commits on Aug 30, 2021
-
Bump husky from 7.0.1 to 7.0.2 (#5503)
Bumps [husky](https://github.com/typicode/husky) from 7.0.1 to 7.0.2. - [Release notes](https://github.com/typicode/husky/releases) - [Commits](typicode/husky@v7.0.1...v7.0.2) --- updated-dependencies: - dependency-name: husky dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump jest from 27.0.6 to 27.1.0 (#5504)
Bumps [jest](https://github.com/facebook/jest) from 27.0.6 to 27.1.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/master/CHANGELOG.md) - [Commits](jestjs/jest@v27.0.6...v27.1.0) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Aug 31, 2021
-
Bump typescript from 4.3.5 to 4.4.2 (#5501)
* Bump typescript from 4.3.5 to 4.4.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.3.5 to 4.4.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.3.5...v4.4.2) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix type errors via new utility `isPathNotFoundError()` Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Commits on Sep 2, 2021
-
Refactor to improve types for
media-feature-colon-*
rules (#5509)This change removes `// @ts-nocheck` from the `media-feature-colon-*` rules.
-
Fix max-empty-lines before comments (#5507)
* Disable Dependabot on default branch (#5452) Currently, we have mainly developed on the `v14` branch. See #5439. See also: https://docs.github.com/en/code-security/supply-chain-security/keeping-your-dependencies-updated-automatically/configuration-options-for-dependency-updates#open-pull-requests-limit * Set `target-branch: v14` for Dependabot again (#5453) This change is a retry of PR #5439 and also a revert of PR #5452. Maybe, `target-branch: v14` should be set on the `master` branch, not `v14`. * Fix max-empty-lines before comments * Update snapshot Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
-
Refactor to improve types for
max-*
rules (#5508)This change removes `// @ts-nocheck` from the `max-*` rules.
Commits on Sep 4, 2021
-
-
Refactor to improve types for
media-feature-name-*
rules (#5510)This change removes `// @ts-nocheck` from the `media-feature-name-*` rules. Also, this adds a type declaration for the `postcss-media-query-parser` package. (see <https://github.com/dryoma/postcss-media-query-parser>)
Commits on Sep 5, 2021
-
Refactor to improve types for
media-query-*
rules (#5512)This change removes `// @ts-nocheck` from the `media-query-*` rules.
-
Refactor to improve types for
media-feature-*
rules (#5511)This change removes `// @ts-nocheck` from the `media-feature-*` rules.
-
Refactor to improve types for
named-grid-areas-no-invalid
rule (#5513)This change removes `// @ts-nocheck` from the `named-grid-areas-no-invalid` rule.
Commits on Sep 6, 2021
Commits on Sep 7, 2021
Commits on Sep 13, 2021
-
Bump jest from 27.1.0 to 27.1.1 (#5525)
Bumps [jest](https://github.com/facebook/jest) from 27.1.0 to 27.1.1. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.1.0...v27.1.1) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump typescript from 4.4.2 to 4.4.3 (#5527)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.2 to 4.4.3. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.4.2...v4.4.3) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump prettier from 2.3.2 to 2.4.0 (#5528)
* Bump prettier from 2.3.2 to 2.4.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.3.2 to 2.4.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.3.2...2.4.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Fix tabs in rc file fixtures Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: jeddy3 <jeddy3@users.noreply.github.com>
-
-
Commits on Sep 14, 2021
-
-
Fix flaky cache test via
jest.retryTimes()
(#5533)* Fix flaky cache test via `jest.retryTimes()` See the [Jest doc](https://jestjs.io/docs/jest-object#jestretrytimes). Close #5531
-
Refactor to improve types for
no-descending-specificity
rule (#5534)This change removes `// @ts-nocheck` from the `no-descending-specificity` rule. Also, this adds the types for `postcss-resolve-nested-selector` and improves the types of `lib/utils/nodeContextLookup.js`.
-
Bump jest from 27.1.1 to 27.2.0 (#5535)
Bumps [jest](https://github.com/facebook/jest) from 27.1.1 to 27.2.0. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.1.1...v27.2.0) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Sep 15, 2021
-
-
Bump eslint-config-stylelint from 13.1.1 to 14.0.0 (#5536)
Bumps [eslint-config-stylelint](https://github.com/stylelint/eslint-config-stylelint) from 13.1.1 to 14.0.0. - [Release notes](https://github.com/stylelint/eslint-config-stylelint/releases) - [Changelog](https://github.com/stylelint/eslint-config-stylelint/blob/master/CHANGELOG.md) - [Commits](stylelint/eslint-config-stylelint@13.1.1...14.0.0) --- updated-dependencies: - dependency-name: eslint-config-stylelint dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> In addition, this change fixes new ESLint problems about regexp. Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
-
-
Commits on Sep 16, 2021
Commits on Sep 17, 2021
-
Refactor to improve types for
no-duplicate-*
rules (#5543)This change removes `// @ts-nocheck` from the `no-duplicate-*` rules. Also, this adds the type definition for the `normalize-selector` package.
-
Add
quiet
option to Node.js API (#5542)* Use async-await * Add name to unnamed functions
-
-
-
Refactor based on latest XO recommendations (#5546)
* Fix a few issues found with the latest xo * Remove useless `@type` annotations * Combine `namedColor` and `namedColor_` * Shorten function Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-
-
Commits on Sep 18, 2021
-
Refactor to replace
__dirname
withprocess.cwd()
in runtime code (#……5549) This change aims to make the ESM migration easier. `__dirname` is used only for testing, so I think there are no problems to replace it.
-
- Remove the `pkg` option of `meow`. By default, `meow` finds the closest `package.json`. See <https://github.com/sindresorhus/meow/blob/v9.0.0/readme.md#pkg> - Change `@ts-ignore` to `@ts-expect-error`.
-
Refactor to fix
cosmiconfig
type error (#5551)This refactoring does: - fix the `// @ts-ignore` comment for `cosmiconfig` - improve the `CosmiconfigResult` type renaming `StylelintCosmiconfigResult` See also <https://github.com/davidtheclark/cosmiconfig/blob/v7.0.1/src/types.ts#L6-L10>
Commits on Sep 22, 2021
-
Bump prettier from 2.4.0 to 2.4.1 (#5553)
Bumps [prettier](https://github.com/prettier/prettier) from 2.4.0 to 2.4.1. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@2.4.0...2.4.1) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Sep 25, 2021
Commits on Sep 27, 2021
-
Refactor to replace
log-symbols
with custom implementation (#5562)This refactoring replaces the `log-symbols` package with a custom implementation to remove the dependency on the `chalk` package as a sub-dependency. (its direct dependency was removed with PR #5560) Note that this custom implementation does not have a fallback like `log-symbols` which supports Unicode unsupported environments. See also: - https://github.com/sindresorhus/log-symbols/blob/v5.0.0/index.js
-
Bump jest from 27.2.0 to 27.2.2 (#5565)
Bumps [jest](https://github.com/facebook/jest) from 27.2.0 to 27.2.2. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.2.0...v27.2.2) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump nanocolors from 0.2.1 to 0.2.9 (#5566)
Bumps [nanocolors](https://github.com/ai/nanocolors) from 0.2.1 to 0.2.9. - [Release notes](https://github.com/ai/nanocolors/releases) - [Changelog](https://github.com/ai/nanocolors/blob/main/CHANGELOG.md) - [Commits](ai/nanocolors@0.2.1...0.2.9) --- updated-dependencies: - dependency-name: nanocolors dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Oct 4, 2021
-
Bump nanocolors from 0.2.9 to 0.2.12 (#5569)
Bumps [nanocolors](https://github.com/ai/nanocolors) from 0.2.9 to 0.2.12. - [Release notes](https://github.com/ai/nanocolors/releases) - [Changelog](https://github.com/ai/nanocolors/blob/main/CHANGELOG.md) - [Commits](ai/nanocolors@0.2.9...0.2.12) --- updated-dependencies: - dependency-name: nanocolors dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump table from 6.7.1 to 6.7.2 (#5570)
Bumps [table](https://github.com/gajus/table) from 6.7.1 to 6.7.2. - [Release notes](https://github.com/gajus/table/releases) - [Commits](gajus/table@v6.7.1...v6.7.2) --- updated-dependencies: - dependency-name: table dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump postcss-scss from 4.0.0 to 4.0.1 (#5571)
Bumps [postcss-scss](https://github.com/postcss/postcss-scss) from 4.0.0 to 4.0.1. - [Release notes](https://github.com/postcss/postcss-scss/releases) - [Changelog](https://github.com/postcss/postcss-scss/blob/main/CHANGELOG.md) - [Commits](postcss/postcss-scss@4.0.0...4.0.1) --- updated-dependencies: - dependency-name: postcss-scss dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump jest-watch-typeahead from 0.6.4 to 1.0.0 (#5572)
Bumps [jest-watch-typeahead](https://github.com/jest-community/jest-watch-typeahead) from 0.6.4 to 1.0.0. - [Release notes](https://github.com/jest-community/jest-watch-typeahead/releases) - [Changelog](https://github.com/jest-community/jest-watch-typeahead/blob/main/CHANGELOG.md) - [Commits](jest-community/jest-watch-typeahead@v0.6.4...v1.0.0) --- updated-dependencies: - dependency-name: jest-watch-typeahead dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump jest from 27.2.2 to 27.2.4 (#5573)
Bumps [jest](https://github.com/facebook/jest) from 27.2.2 to 27.2.4. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.2.2...v27.2.4) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Commits on Oct 6, 2021
Commits on Oct 10, 2021
-
Document 14.0.0 migration guide (#5563)
Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Co-authored-by: Aleks Hudochenkov <aleks@hudochenkov.com>
-
Commits on Oct 11, 2021
-
Bump lint-staged from 11.1.2 to 11.2.3 (#5588)
Bumps [lint-staged](https://github.com/okonet/lint-staged) from 11.1.2 to 11.2.3. - [Release notes](https://github.com/okonet/lint-staged/releases) - [Commits](lint-staged/lint-staged@v11.1.2...v11.2.3) --- updated-dependencies: - dependency-name: lint-staged dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump jest from 27.2.4 to 27.2.5 (#5589)
Bumps [jest](https://github.com/facebook/jest) from 27.2.4 to 27.2.5. - [Release notes](https://github.com/facebook/jest/releases) - [Changelog](https://github.com/facebook/jest/blob/main/CHANGELOG.md) - [Commits](jestjs/jest@v27.2.4...v27.2.5) --- updated-dependencies: - dependency-name: jest dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Add TypeScript type definitions (#5582)
* refactor: Resolve types inconsistencies, add test Fixes #5580 - Types are refactored to be exportable and are now provided in the package: - `Stylelint` prefix removed where appropriate, types namespaced under `stylelint`. - Module export definition changed to point to namespace and public API, which allows `require('stylelint')` to be typed correctly. - Types renamed to match those in the `@types/stylelint` package to reduce incompatibilities/breakages downstream. - As a result of these changes, the separate types package can be deprecated in favour of the built-in type definitions. - Internal API endpoints marked with `@internal` where appropriate. - PostCSS types in types definition file scoped under `PostCSS` (e.g. `PostCSS.Root`) to make it clearer which types are imported. - API types (`stylelint.lint`, `stylelint.createPlugin`, etc.) changed from `Function` to more specific types that actually reflect each function's signature. - Refactored export types in public-facing exports (e.g. `lib/index.js`, `lib/createPlugin.js`) to reference API types in type definition file. This ensures that Typescript will report errors if the implementation/ internal type annotations are changed to an incompatible signature. Any types that were only defined in those files as `@typedef` JSDoc comments have been moved to the `.d.ts` definition file. - Fixed problem with `Rule` types that resulted in Typescript errors when using `createPlugin`. Required properties were added in #5418, which broke usage of `createPlugin` as the `rule` parameter would require functions to have the newly added properties, even though this doesn't reflect the implementation accurately. To fix this: - `Rule` type split into `RuleBase` and `Rule`. Added the `Plugin` type as an alias for `RuleBase` to achieve parity with former types at `@types/stylelint`. `RuleBase` represents the rule without any properties attached. `Rule` is a union of `RuleBase` and an object with the properties. - `createPlugin` updated to use `RuleBase`. - Fixed Typescript errors being thrown when the configs passed to the `overrides` option would contain supported properties that were missing from the types definition: - `ConfigOverride` type updated to use `Omit` instead of `Pick`, removing the `overrides` property instead of allow-listing properties. This fix means the `ConfigOverride` type shouldn't need to be manually updated whenever a new configuration property is added. - `RuleMessages` and related types fixed to avoid Typescript errors. The return type of `stylelint.utils.ruleMessages` was incorrectly set to the type of the `messages` parameter, which resulted in type errors in `lib/ruleMessages.js`. This change: - Changes the `ruleMessages` return type to `{ [K in keyof T]: T[K] }` which is correct. There is a distinction between returning the same type as being passed to the function and returning a type with the same keys and value types for those keys. - `RuleMessages` type changed to a mapped type to facilitate the change to `stylelint.utils.ruleMessages`. This allows Typescript to narrow types for the object returned by `ruleMessages`: ```js const messages = stylelint.utils.ruleMessages(ruleName, { violation: 'This a rule violation message', warning: (reason: string) => `This is not allowed because ${reason}`, }); // If a `Record<...>` was used instead, the following lines would // result in Typescript error 2322. const violationMessage: string = messages.violation; const violationFunc: Function = messages.warning; ``` - Type annotations in `lib/ruleMessages.js` updated to refect these changes and to avoid Typescript errors and allow type-checking. - Type test file added to `types/stylelint/type-test.ts`. This file contains code that references the public API as a consuming package would use it. It is not executed, but is used so that if the API or types are changed in a breaking way, the change will be caught by Typescript. If this existed before, the breaking change to the `StylelintRule` type (now `stylelint.Rule`) would have been caught. - Documentation comments added to public API endpoints (`stylelint.*`). - Removed leftover duplicate `Options` type that had no references anywhere in the project. * docs: Document added types in changelog * docs: fix typo, document types in migration guide
Commits on Oct 12, 2021
-
Fix TypeError for spaceless condition in media-feature-name-value-all…
…owed-list (#5581) * update rule to exit early if parsing is not possible * change type to indicate optional nodes property * add test to cover invalid media rule * update code for rule after updating types
-
-
-
Commits on Oct 18, 2021
-
Bump typescript from 4.4.3 to 4.4.4 (#5599)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.4.3 to 4.4.4. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v4.4.3...v4.4.4) --- updated-dependencies: - dependency-name: typescript dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
Bump picocolors from 0.2.1 to 1.0.0 (#5601)
Bumps [picocolors](https://github.com/alexeyraspopov/picocolors) from 0.2.1 to 1.0.0. - [Release notes](https://github.com/alexeyraspopov/picocolors/releases) - [Changelog](https://github.com/alexeyraspopov/picocolors/blob/main/CHANGELOG.md) - [Commits](alexeyraspopov/picocolors@v0.2.1...v1.0.0) --- updated-dependencies: - dependency-name: picocolors dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
-
-
-
-
Recommend using shared configs (#5598)
* Recommend using shared configs * Update docs/migration-guide/to-14.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Update docs/migration-guide/to-14.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Update docs/migration-guide/to-14.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Update docs/migration-guide/to-14.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Update docs/user-guide/get-started.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Update docs/user-guide/get-started.md Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> * Make role of syntaxes clearer * Fix typo Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
Commits on Oct 19, 2021
Commits on Oct 20, 2021
Commits on Oct 21, 2021
-
Show more info in missing customSyntax warning (#5611)
* Show more info in missing customSyntax warning * Change markdown syntax * Update lib/getPostcssResult.js Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Co-authored-by: Masafumi Koba <473530+ybiquitous@users.noreply.github.com>
-