eslint-plugin-eggache
Advanced tools
Comparing version 1.0.0 to 2.0.0
2.0.0 / 2022-09-29 | ||
================== | ||
**features** | ||
* [[`115eeaf`](http://github.com/eggjs/eslint-plugin-eggache/commit/115eeaf6d304d03600c7bbd0e9a138e2c40ce8d5)] - feat: support no-only-tests (#5) (Tang Xinyao <<31577196+tangxinyao@users.noreply.github.com>>) | ||
**others** | ||
* [[`b2b1872`](http://github.com/eggjs/eslint-plugin-eggache/commit/b2b18728adc4b967aacb5222666844643e70bffd)] - BREAKING CHANGE: update deps (#6) (TZ | 天猪 <<atian25@qq.com>>) | ||
* [[`5c36ece`](http://github.com/eggjs/eslint-plugin-eggache/commit/5c36ece59f5ef706387701c79bd2b621cfddf95f)] - docs: fix readme (#4) (TZ | 天猪 <<atian25@qq.com>>) | ||
1.0.0 / 2018-02-08 | ||
@@ -3,0 +13,0 @@ ================== |
@@ -5,2 +5,3 @@ 'use strict'; | ||
rules: { | ||
'no-only-tests': require('./lib/rules/no-only-tests'), | ||
'no-override-exports': require('./lib/rules/no-override-exports'), | ||
@@ -13,2 +14,3 @@ 'no-unexpected-plugin-keys': require('./lib/rules/no-unexpected-plugin-keys'), | ||
rules: { | ||
'eggache/no-only-tests': 'warn', | ||
'eggache/no-override-exports': 'error', | ||
@@ -15,0 +17,0 @@ 'eggache/no-unexpected-plugin-keys': 'error', |
{ | ||
"name": "eslint-plugin-eggache", | ||
"version": "1.0.0", | ||
"version": "2.0.0", | ||
"description": "custom eslint rule for egg RTFM issues", | ||
"dependencies": { | ||
}, | ||
"dependencies": {}, | ||
"devDependencies": { | ||
"autod": "^3.0.1", | ||
"egg-bin": "^4.3.7", | ||
"egg-ci": "^1.8.0", | ||
"eslint": "^4.17.0", | ||
"eslint-config-egg": "^6.0.0", | ||
"is-type-of": "^1.2.0", | ||
"webstorm-disable-index": "^1.2.0" | ||
"egg-bin": "^5", | ||
"egg-ci": "^2", | ||
"eslint": "^8", | ||
"eslint-config-egg": "^12" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=14.17.0" | ||
}, | ||
"scripts": { | ||
"autod": "autod", | ||
"lint": "eslint .", | ||
"test": "npm run lint -- --fix && egg-bin pkgfiles && npm run test-local", | ||
"test-local": "egg-bin test", | ||
"test": "egg-bin test", | ||
"cov": "egg-bin cov", | ||
"ci": "npm run lint && egg-bin pkgfiles --check && npm run cov", | ||
"pkgfiles": "egg-bin pkgfiles" | ||
"ci": "npm run lint && npm run cov" | ||
}, | ||
"ci": { | ||
"version": "6, 8" | ||
"version": "14, 16, 18", | ||
"type": "github" | ||
}, | ||
@@ -31,0 +25,0 @@ "repository": { |
@@ -14,8 +14,8 @@ # eslint-plugin-eggache | ||
[npm-url]: https://npmjs.org/package/eslint-plugin-eggache | ||
[travis-image]: https://img.shields.io/travis/{{org}}/eslint-plugin-eggache.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/{{org}}/eslint-plugin-eggache | ||
[codecov-image]: https://codecov.io/gh/{{org}}/eslint-plugin-eggache/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/{{org}}/eslint-plugin-eggache | ||
[david-image]: https://img.shields.io/david/{{org}}/eslint-plugin-eggache.svg?style=flat-square | ||
[david-url]: https://david-dm.org/{{org}}/eslint-plugin-eggache | ||
[travis-image]: https://img.shields.io/travis/eggjs/eslint-plugin-eggache.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/eggjs/eslint-plugin-eggache | ||
[codecov-image]: https://codecov.io/gh/eggjs/eslint-plugin-eggache/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/eggjs/eslint-plugin-eggache | ||
[david-image]: https://img.shields.io/david/eggjs/eslint-plugin-eggache.svg?style=flat-square | ||
[david-url]: https://david-dm.org/eggjs/eslint-plugin-eggache | ||
[snyk-image]: https://snyk.io/test/npm/eslint-plugin-eggache/badge.svg?style=flat-square | ||
@@ -113,2 +113,15 @@ [snyk-url]: https://snyk.io/test/npm/eslint-plugin-eggache | ||
} | ||
``` | ||
``` | ||
### no-only-tests | ||
A common mistake that developer will make - forget to remove `.only` in tests before committing. | ||
```js | ||
/* eslint eggache/no-only-tests: [ 'error' ] */ | ||
describe.only('desc something', function() { | ||
it.only('assert somnething', function() { | ||
// do nothing | ||
}); | ||
}) | ||
``` |
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
12290
4
8
244
126