eslint-plugin-chai-friendly
Advanced tools
Comparing version 0.4.1 to 0.5.0
@@ -8,2 +8,11 @@ /** | ||
module.exports = { | ||
configs: { | ||
recommended: { | ||
plugins: ['chai-friendly'], | ||
rules: { | ||
'chai-friendly/no-unused-expressions': 'error', | ||
'no-unused-expressions': 'off' | ||
} | ||
} | ||
}, | ||
rules: { | ||
@@ -13,4 +22,1 @@ 'no-unused-expressions': require('./rules/no-unused-expressions') | ||
}; | ||
@@ -155,3 +155,3 @@ /** | ||
return null; | ||
}; | ||
} | ||
@@ -196,3 +196,3 @@ /** | ||
return null; | ||
}; | ||
} | ||
@@ -212,2 +212,2 @@ | ||
} | ||
}; | ||
}; |
{ | ||
"name": "eslint-plugin-chai-friendly", | ||
"version": "0.4.1", | ||
"version": "0.5.0", | ||
"description": "This plugin makes 'no-unused-expressions' rule friendly towards chai expect statements.", | ||
@@ -21,4 +21,8 @@ "keywords": [ | ||
"author": "Ihor Diachenko", | ||
"contributors": [ | ||
"Brett Zamir" | ||
], | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"lint": "eslint .", | ||
"test": "mocha tests --recursive" | ||
@@ -31,4 +35,4 @@ }, | ||
"devDependencies": { | ||
"eslint": "~3.11.0", | ||
"mocha": "^3.0.2" | ||
"eslint": "~6.6.0", | ||
"mocha": "^6.2.2" | ||
}, | ||
@@ -35,0 +39,0 @@ "engines": { |
@@ -35,3 +35,3 @@ # eslint-plugin-chai-friendly | ||
Add `chai-friendly` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix: | ||
Add `chai-friendly` to the plugins section of your `.eslintrc.*` configuration file. You can omit the `eslint-plugin-` prefix: | ||
@@ -58,2 +58,12 @@ ```json | ||
If you don't need to tweak the above rule settings, you can instead | ||
just add the following to your config file's `extends` and the above | ||
will be applied automatically: | ||
```json | ||
{ | ||
"extends": ["plugin:chai-friendly/recommended"] | ||
} | ||
``` | ||
## Options | ||
@@ -73,2 +83,2 @@ | ||
- chai-friendly/no-unused-expressions | ||
- `chai-friendly/no-unused-expressions` |
@@ -137,2 +137,2 @@ /** | ||
] | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26180
10
448
82