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!
npm install @nextcloud/eslint-config --save-dev
Add a file .eslintrc.js
in the root directory of your app repository with the following content:
module.exports = {
extends: [
'@nextcloud',
],
}
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',
],
}
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',
],
}
- Update CHANGELOG.md file with the latest changes
- Bump the package version with
npm version
- Push version bump commit
- Create a new release with proper changelog https://github.com/nextcloud-libraries/eslint-config/releases/new