Skip to content

Commit 1ac6e86

Browse files
committed
feature: @putout/eslint-config: no-debugger, no-unused-vars: off
1 parent 40edb6a commit 1ac6e86

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
lines changed

packages/eslint-config/.madrun.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
1-
import {run} from 'madrun';
1+
import {run, cutEnv} from 'madrun';
2+
3+
const env = {
4+
SUPERTAPE_TIMEOUT: 7000,
5+
};
26

37
export default {
48
'lint': () => 'putout .',
5-
'test': () => 'tape test/*.*',
6-
'coverage': async () => `c8 ${await run('test')}`,
9+
'test': () => [env, 'tape test/*.*'],
10+
'coverage': async () => [env, `c8 ${await cutEnv('test')}`],
711
'fresh:lint': () => run('lint', '--fresh'),
812
'lint:fresh': () => run('lint', '--fresh'),
913
'fix:lint': () => run('lint', '--fix'),

packages/eslint-config/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export const rules = {
1010
],
1111
'dot-notation': 'off',
1212
'no-global-assign': 'off',
13+
'no-debugger': 'off',
14+
'no-unused-vars': 'off',
1315
'object-shorthand': 'off',
1416
'prefer-arrow-callback': 'error',
1517
'prefer-const': ['error', {

packages/eslint-config/test/eslint-config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,3 +109,11 @@ test('eslint-config: keyword-spacing', async ({process}) => {
109109
test('eslint-config: dot-notation', async ({comparePlaces}) => {
110110
await comparePlaces('dot-notation', []);
111111
});
112+
113+
test('eslint-config: no-debugger', async ({comparePlaces}) => {
114+
await comparePlaces('no-debugger', []);
115+
});
116+
117+
test('eslint-config: no-unused-vars', async ({comparePlaces}) => {
118+
await comparePlaces('no-unused-vars', []);
119+
});
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debugger;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
const a = 3;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
debugger;

0 commit comments

Comments
 (0)