Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@nextcloud/stylelint-config

nextcloud20.7kAGPL-3.0-or-later3.0.1

Stylelint shared config for nextcloud vue.js apps

stylelint, config, nextcloud

readme

@nextcloud/stylelint-config

npm last version Dependabot status

This is a package containing the unified global stylelint config used by all nextcloud apps. It contains the necessary dependencies and peerDependencies so that other apps cannot update if this config does not support it. Please always use dependabot to update your apps, OR pay attention to the peer dependencies error messages!

Installation

npm install @nextcloud/stylelint-config --save-dev

Usage

Add a file stylelint.config.js in the root directory of your app repository with the following content:

const stylelintConfig = require('@nextcloud/stylelint-config')

module.exports = stylelintConfig

Release new version

  1. Bump the package version with npm version
  2. Push version bump commit
  3. Create a new release with proper changelog https://github.com/nextcloud/stylelint-config/releases/new

changelog

Changelog

v3.0.1 (2024-05-07)

Fixed

  • fix: Remove stylistic rules also for scss

v3.0.0 (2024-04-15)

Full Changelog

Breaking changes :boom:

stylelint was updated to version 16.0 which drops all stylistic changes. The means stylelint only will check for code quality but not for stylistic rules. So it is now recommended to instead use prettier with @nextcloud/prettier-config for stylistic rules. See also Nextcloud prettier setup.

Changed

  • Updated stylelint and require stylelint version 16.2.0 or later.

v2.4.0 (2024-01-23)

Full Changelog

Implemented enhancements

  • Bump stylelint-config-recommended-scss to 13.1.0
  • Update NPM version to ^10.0.0 to match version used by LTS Node 20

Fixed bugs

  • Fix indention to be consistent

v2.3.1 (2023-07-11)

Full Changelog

Implemented enhancements:

  • Bump stylelint and peers (st3iny)

Changed:

  • Update engines versions to Node 20 with Npm 9 #78

v2.3.0 (2022-10-14)

Full Changelog

Implemented enhancements:

  • ::v-deep is deprecated in favor of :deep as of vue 2.7 #65 (susnux)
  • Also allow :deep as a pseudo class #66 (susnux)

v2.2.0 (2022-08-10)

Full Changelog

Changed

  • Update engines versions to Node 16 with Npm 7 or Npm 8

v2.1.2 (2022-01-08)

Full Changelog

Implemented enhancements:

v2.1.1 (2022-01-04)

Full Changelog

Fixed bugs:

v2.1.0 (2021-11-11)

Full Changelog

Fixed:

v2.0.1 (2021-11-11)

Full Changelog

Fixed:

  • Fix missing stylelint-config-recommended-vue #16 (skjnldsv)

v2.0.0 (2021-11-11)

Full Changelog

Merged pull requests:

  • ⚠️ Update stylelint base configs for stylelint 14 #14 (juliushaertl)
  • ⚠️ Bump stylelint to 14.0.1
  • Bump stylelint-config-recommended-scss to 5.0.1
  • Bump stylelint-scss to 4.0.0

v1.0.0 (2021-06-11)

Init repo config