Skip to content

Commit b3b5b9c

Browse files
committed
refactor: disable no-irregular-whitespace only for comments
1 parent d9e1a1b commit b3b5b9c

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

lint-rules/test-utils.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* eslint-disable no-irregular-whitespace */
21
import fs from 'node:fs';
32
import os from 'node:os';
43
import path from 'node:path';

xo.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,17 @@ const xoConfig = [
8585
'type-fest/validate-jsdoc-codeblocks': 'error',
8686
},
8787
},
88+
{
89+
files: 'lint-rules/test-utils.js',
90+
rules: {
91+
'no-irregular-whitespace': [
92+
'error',
93+
{
94+
'skipComments': true,
95+
},
96+
],
97+
},
98+
},
8899
];
89100

90101
export default xoConfig;

0 commit comments

Comments
 (0)