@nextcloud/eslint-config

8.3.0 • Public • Published

@nextcloud/eslint-config

npm last version Lint status Dependabot status

This is a package containing the unified global eslint 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/eslint-config --save-dev

Usage

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

module.exports = {
	extends: [
		'@nextcloud',
	],
}

Usage with Typescript projects

If your projects uses Typescript for vue files, like <script lang="ts"> then use the Typescript config instead:

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

module.exports = {
	extends: [
		'@nextcloud/eslint-config/typescript',
	],
}

Release new version

  1. Update CHANGELOG.md file with the latest changes
  2. Bump the package version with npm version
  3. Push version bump commit
  4. Create a new release with proper changelog https://github.com/nextcloud-libraries/eslint-config/releases/new

Package Sidebar

Install

npm i @nextcloud/eslint-config

Weekly Downloads

6,706

Version

8.3.0

License

AGPL-3.0-or-later

Unpacked Size

78.7 kB

Total Files

9

Last publish

Collaborators

  • susnux
  • pytal
  • gretadoci
  • mejo-
  • artonge
  • max-nextcloud
  • st3iny
  • marcoambrosinii
  • icewind1991
  • skjnldsv
  • christophwurst
  • juliushaertl
  • nickvergessen