Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-nextcloud

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-nextcloud - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

lib/configs/recommended.js

6

lib/index.js

@@ -20,1 +20,7 @@ /**

module.exports.rules = requireIndex(__dirname + "/rules");
// import all environments in lib/environments
module.exports.environments = requireIndex(__dirname + "/environments");
// import all configs in lib/configs
module.exports.configs = requireIndex(__dirname + "/configs");

8

package.json
{
"name": "eslint-plugin-nextcloud",
"version": "0.1.0",
"version": "0.1.1",
"description": "Nextcloud lint plugin for ESLint",

@@ -11,2 +11,4 @@ "keywords": [

"author": "Christoph Wurst",
"homepage": "https://github.com/nextcloud/eslint-plugin-nextcloud",
"repository": "git+https://github.com/nextcloud/eslint-plugin-nextcloud.git",
"main": "lib/index.js",

@@ -17,6 +19,6 @@ "scripts": {

"dependencies": {
"requireindex": "~1.1.0"
"requireindex": "~1.2.0"
},
"devDependencies": {
"eslint": "~3.9.1",
"eslint": "~5.16.0",
"mocha": "^6.1.4"

@@ -23,0 +25,0 @@ },

@@ -19,10 +19,19 @@ # eslint-plugin-nextcloud

**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-nextcloud` globally.
## Usage
Add `nextcloud` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
Add `plugin:nextcloud/recommended` to the `extends` section of your `.eslintrc` configuration file in order to use all recommended options (load estlint-plugin-nextcloud, add Nextcloud environment and add recommended rules):
```json
{
"extends": [
"plugin:nextcloud/recommended"
]
}
```
Alternatively, you can activate only those parts that you want to use. In this case, you have to add `nextcloud` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [

@@ -35,8 +44,20 @@ "nextcloud"

Then configure the rules you want to use under the rules section.
Add the Nextcloud environment if you want to use global variables defined by Nextcloud server.
```json
{
"env": {
"nextcloud/nextcloud": true,
}
}
```
Configure the rules you want to use under the rules section.
```json
{
"rules": {
"nextcloud/rule-name": 2
"nextcloud/no-deprecations": "warn",
"nextcloud/no-removed-apis": "error",
}

@@ -46,9 +67,16 @@ }

## Supported Rules
## Supported Shared Configurations
* Fill in provided rules here
* `nextcloud/recommended`: Recommended configuration that loads the Nextcloud ESlint plugin, adds the Nextcloud environment and configures all recommended Nextcloud rules.
## Supported Environments
* `nextcloud/nextcloud`: Manifests global variables defined by Nextcloud server
## Supported Rules
* `nextcloud/no-deprecations`: Detects properties and functions that were deprecated in Nextcloud server
* `nextcloud/no-removed-apis`: Detects previously available APIs that were removed from Nextcloud server
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc