File tree 8 files changed +168
-183
lines changed
Filter options
8 files changed +168
-183
lines changed
Original file line number Diff line number Diff line change 40
40
- eslint : 9
41
41
node : ' lts/*'
42
42
os : macos-latest
43
- # On old ESLint versions
44
- - eslint : 8
45
- node : ' lts/*'
46
- os : ubuntu-latest
47
43
48
44
runs-on : ${{ matrix.os }}
49
45
steps :
63
59
run : npm run -s build
64
60
- name : Test
65
61
run : npm run -s test:mocha
62
+ test-for-old-eslint :
63
+ name : Test
64
+ strategy :
65
+ matrix :
66
+ eslint : [8]
67
+ node : ['lts/*']
68
+ os : [ubuntu-latest]
69
+
70
+ runs-on : ${{ matrix.os }}
71
+ steps :
72
+ - name : Checkout
73
+ uses : actions/checkout@v4
74
+ - name : Checkout submodules
75
+ run : git submodule update --init
76
+ - name : Install Node.js v${{ matrix.node }}
77
+ uses : actions/setup-node@v4
78
+ with :
79
+ node-version : ${{ matrix.node }}
80
+ - name : Install Packages
81
+ run : npm install -f
82
+ - name : Install ESLint v${{ matrix.eslint }}
83
+ run : node scripts/ci-install-eslint ${{ matrix.eslint }}
84
+ - name : Test
85
+ run : npm run -s test:debug
66
86
67
87
test-cov :
68
88
name : Test and Send Coverage
Original file line number Diff line number Diff line change 30
30
"@eslint/eslintrc" : " ^3.2.0" ,
31
31
"@eslint/js" : " ^9.19.0" ,
32
32
"@types/debug" : " ^4.1.7" ,
33
- "@types/eslint" : " ^9.6.1" ,
34
33
"@types/estree" : " ^1.0.0" ,
35
34
"@types/lodash" : " ^4.14.186" ,
36
35
"@types/mocha" : " ^9.0.0" ,
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
import * as escope from "eslint-scope"
2
2
import { lte } from "semver"
3
- import { createRequire } from "./create-require"
4
3
import path from "path"
4
+ import { createRequire } from "module"
5
5
6
6
type ESLintScope = typeof escope & {
7
7
version : string
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import type { ParserOptions } from "../common/parser-options"
2
2
// @ts -expect-error -- ignore
3
3
import * as dependencyEspree from "espree"
4
4
import { lte } from "semver"
5
- import { createRequire } from "./create-require"
6
5
import path from "path"
7
6
import type { BasicParserObject } from "./parser-object"
7
+ import { createRequire } from "module"
8
8
9
9
type Espree = BasicParserObject & {
10
10
latestEcmaVersion : number
Original file line number Diff line number Diff line change @@ -300,10 +300,6 @@ describe("Template AST", () => {
300
300
} )
301
301
302
302
it ( "should scope in the correct." , ( ) => {
303
- const version = require ( `eslint/package.json` ) . version
304
- if ( ! semver . satisfies ( version , ">=8" ) ) {
305
- return
306
- }
307
303
const resultPath = path . join ( ROOT , `${ name } /scope.json` )
308
304
if ( ! fs . existsSync ( resultPath ) ) {
309
305
return
You can’t perform that action at this time.
0 commit comments