File tree 1 file changed +16
-13
lines changed
common/eslint-local-rules/__tests__
1 file changed +16
-13
lines changed Original file line number Diff line number Diff line change @@ -4,26 +4,29 @@ import path from 'path'
4
4
import fs from 'fs'
5
5
import utils from 'eslint-plugin-vue/lib/utils/index.js'
6
6
import { describe , it } from 'vitest'
7
+ import localRules from 'eslint-plugin-local-rules'
8
+ import globals from 'globals'
9
+ import eslintParser from 'vue-eslint-parser'
7
10
8
11
RuleTester . describe = describe
9
12
RuleTester . it = it
10
13
11
14
const ruleTester = new RuleTester ( {
12
- parser : require . resolve ( 'vue-eslint-parser' ) ,
13
- root : true ,
14
- env : {
15
- node : true ,
15
+ plugins : {
16
+ 'local-rules' : localRules ,
16
17
} ,
17
- extends : [
18
- 'plugin:vue/recommended' ,
19
- 'eslint:recommended' ,
20
- 'plugin:prettier/recommended' ,
21
- '@vue/eslint-config-prettier' ,
22
- ] ,
23
- parserOptions : {
24
- parser : '@babel/eslint-parser' ,
18
+
19
+ languageOptions : {
20
+ parser : eslintParser ,
21
+ globals : {
22
+ ...globals . node ,
23
+ ...globals . jest ,
24
+ } ,
25
+
26
+ parserOptions : {
27
+ parser : '@babel/eslint-parser' ,
28
+ } ,
25
29
} ,
26
- plugins : [ 'eslint-plugin-local-rules' ] ,
27
30
} )
28
31
const ruleInstance = rule ( path , utils , fs )
29
32
You can’t perform that action at this time.
0 commit comments