Socket
Book a DemoInstallSign in
Socket

@nextcloud/eslint-config

Package Overview
Dependencies
Maintainers
13
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nextcloud/eslint-config

Eslint shared config for nextcloud vue.js apps

latest
Source
npmnpm
Version
8.4.2
Version published
Maintainers
13
Created
Source

@nextcloud/eslint-config

REUSE status 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',
	],
}

Usage with Vue 3 projects

If your projects uses Vue 3 you have to use the vue3 sub-configuration. This configuration also includes Typescript support by default.

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

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

Release new version

Keywords

eslint

FAQs

Package last updated on 16 Feb 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts