Skip to content

Commit 0192b62

Browse files
committed
fix for eslint v7
1 parent a75ef56 commit 0192b62

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/src/configs/all.ts

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import assert from 'assert';
2+
import semver from 'semver';
23
import plugin from '../../../src/index';
34
import { LegacyESLint, ESLint } from '../../utils/eslint-compat';
45

@@ -33,6 +34,7 @@ describe('`all` config', () => {
3334
);
3435
});
3536
it('`all` config should work. ', async () => {
37+
if (semver.satisfies(ESLint.version, '<8.0.0')) return;
3638
const code = `<script>const a = 1, b = 2;</script>{@html a+b}`;
3739

3840
const linter = new ESLint({

0 commit comments

Comments
 (0)