@ocavue/eslint-config 2.0.2 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/unicorn.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/unicorn.js +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAMA,
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/unicorn.js"],"names":[],"mappings":"AAMA,iGAwEC"}
|
package/package.json
CHANGED
package/src/unicorn.js
CHANGED
|
@@ -47,6 +47,8 @@ export function unicorn() {
|
|
|
47
47
|
'unicorn/no-array-push-push': 'warn',
|
|
48
48
|
// Do not use a `for` loop that can be replaced with a `for-of` loop.
|
|
49
49
|
'unicorn/no-for-loop': 'error',
|
|
50
|
+
// Disallow eslint-disable comments without specific rule names
|
|
51
|
+
'unicorn/no-abusive-eslint-disable': 'error',
|
|
50
52
|
// Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.
|
|
51
53
|
'unicorn/prefer-add-event-listener': 'error',
|
|
52
54
|
// Prefer `.find(…)` and `.findLast(…)` over the first or last element from
|