File tree Expand file tree Collapse file tree 4 files changed +208
-167
lines changed
Expand file tree Collapse file tree 4 files changed +208
-167
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ import eslintJs from "@eslint/js" ;
2+ import eslintConfigPrettier from "eslint-config-prettier" ;
3+ import globals from "globals" ;
4+
5+ export default [
6+ eslintJs . configs . recommended ,
7+ eslintConfigPrettier ,
8+ {
9+ languageOptions : {
10+ globals : {
11+ ...globals . builtin ,
12+ ...globals . jest ,
13+ ...globals . node
14+ }
15+ } ,
16+ rules : {
17+ "no-unused-vars" : "off"
18+ }
19+ } ,
20+ { ignores : [ "coverage" ] }
21+ ] ;
Original file line number Diff line number Diff line change 55 "type" : " module" ,
66 "main" : " src/plugin.js" ,
77 "scripts" : {
8- "checkFormat" : " prettier --check '**/*' " ,
8+ "checkFormat" : " prettier . --check" ,
99 "lint" : " eslint --cache ." ,
1010 "test" : " node --experimental-vm-modules node_modules/jest/bin/jest.js"
1111 },
2323 "prettier" : " ^3.0.0"
2424 },
2525 "devDependencies" : {
26- "eslint" : " ^9.0.0" ,
27- "eslint-config-prettier" : " ^9.0.0" ,
28- "husky" : " ^9.0.2" ,
29- "jest" : " ^29.5.0" ,
30- "prettier" : " ^3.1.0" ,
31- "pretty-quick" : " ^4.0.0"
32- },
33- "eslintConfig" : {
34- "extends" : [
35- " eslint:recommended" ,
36- " prettier"
37- ],
38- "env" : {
39- "jest" : true ,
40- "node" : true
41- },
42- "parserOptions" : {
43- "ecmaVersion" : 2020 ,
44- "sourceType" : " module"
45- },
46- "rules" : {
47- "no-undef" : " off"
48- }
26+ "@eslint/js" : " ^9.21.0" ,
27+ "eslint" : " ^9.21.0" ,
28+ "eslint-config-prettier" : " ^10.0.2" ,
29+ "globals" : " ^16.0.0" ,
30+ "husky" : " ^9.1.7" ,
31+ "jest" : " ^29.7.0" ,
32+ "prettier" : " ^3.5.3" ,
33+ "pretty-quick" : " ^4.1.1"
4934 },
5035 "jest" : {
5136 "globalSetup" : " ./test/js/globalSetup.js" ,
You can’t perform that action at this time.
0 commit comments