We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 921d2ca commit 0863962Copy full SHA for 0863962
tests-integrations/flat-config.ts
@@ -1,6 +1,8 @@
1
import cp from 'child_process'
2
import path from 'path'
3
import assert from 'assert'
4
+import semver from 'semver'
5
+import { readPackageJson } from './helper'
6
7
const TEST_CWD = path.join(__dirname, 'flat-config')
8
const ESLINT = `.${path.sep}node_modules${path.sep}.bin${path.sep}eslint`
@@ -23,6 +25,18 @@ describe('Integration with flat config', () => {
23
25
})
24
26
27
it('should work with flat config', async () => {
28
+
29
+ if (
30
+ !semver.satisfies(
31
+ process.version,
32
+ readPackageJson(
33
+ path.resolve(__dirname, './flat-config/node_modules/eslint')
34
+ ).engines.node
35
+ )
36
+ ) {
37
+ return
38
+ }
39
40
const cliResult = cp.execSync(`${ESLINT} src/* --format=json`, {
41
encoding: 'utf-8'
42
0 commit comments