File tree Expand file tree Collapse file tree 10 files changed +125
-76
lines changed Expand file tree Collapse file tree 10 files changed +125
-76
lines changed Original file line number Diff line number Diff line change 3131 "@types/jest" : " ^29.5.14" ,
3232 "compute-baseline" : " ^0.3.1" ,
3333 "cspell" : " ^8.0.0" ,
34- "eslint" : " ^9.27.0 " ,
34+ "eslint" : " ^9.39.1 " ,
3535 "eslint-plugin-jest" : " ^28.11.0" ,
3636 "eslint-plugin-n" : " ^17.15.1" ,
3737 "husky" : " ^9.1.4" ,
Original file line number Diff line number Diff line change 2727 "@html-eslint/parser" : " ^0.48.0" ,
2828 "axios" : " ^1.9.0" ,
2929 "chalk" : " ^4.1.1" ,
30- "eslint" : " ^9.19.0 " ,
30+ "eslint" : " ^9.39.1 " ,
3131 "optionator" : " ^0.9.1"
3232 }
3333}
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ const parser = require("@html-eslint/parser");
1212 */
1313
1414/**
15- * @satisfies {ESLint.Plugin }
15+ * @type {ESLint.Plugin }
1616 */
1717const plugin = {
1818 meta : {
Original file line number Diff line number Diff line change 4949 "eslint" : " ^8.0.0 || ^9.0.0"
5050 },
5151 "devDependencies" : {
52- "@eslint/core" : " ^0.14 .0" ,
52+ "@eslint/core" : " ^1.0 .0" ,
5353 "@types/estree" : " ^0.0.47" ,
5454 "es-html-parser" : " 0.3.1" ,
55- "eslint" : " ^9.27.0 " ,
55+ "eslint" : " ^9.39.1 " ,
5656 "espree" : " ^10.3.0" ,
5757 "typescript" : " ^5.8.3"
5858 },
Original file line number Diff line number Diff line change 11const plugin = require ( "../../lib" ) ;
2+
3+ /**
4+ * @template T
5+ * @param {T | null | undefined } value
6+ * @returns {asserts value is NonNullable<T> }
7+ */
8+ function assertNonNull ( value ) {
9+ if ( value === undefined || value === null ) {
10+ throw new TypeError ( "Unexpected nullish" ) ;
11+ }
12+ }
13+
214describe ( "@html-eslint/eslint-plugin" , ( ) => {
315 it ( "should have meta" , ( ) => {
16+ assertNonNull ( plugin . meta ) ;
417 expect ( plugin . meta . name ) . toBe ( "@html-eslint/eslint-plugin" ) ;
518 expect ( typeof plugin . meta . version ) . toBe ( "string" ) ;
619 } ) ;
Original file line number Diff line number Diff line change 3434 "devDependencies" : {
3535 "@types/espree" : " ^10.1.0" ,
3636 "@types/estree" : " ^0.0.47" ,
37- "eslint" : " ^9.19.0 " ,
37+ "eslint" : " ^9.39.1 " ,
3838 "espree" : " ^10.3.0" ,
3939 "globals" : " ^15.12.0"
4040 }
Original file line number Diff line number Diff line change 3131 "@html-eslint/types" : " ^0.48.0"
3232 },
3333 "devDependencies" : {
34- "eslint" : " ^9.19.0 " ,
34+ "eslint" : " ^9.39.1 " ,
3535 "globals" : " ^15.12.0"
3636 }
3737}
Original file line number Diff line number Diff line change 2525 "dependencies" : {
2626 "@types/estree" : " ^1.0.6" ,
2727 "es-html-parser" : " 0.3.1" ,
28- "eslint" : " ^9.19.0 "
28+ "eslint" : " ^9.39.1 "
2929 },
3030 "devDependencies" : {
3131 "typescript" : " ^5.8.3"
Original file line number Diff line number Diff line change 2727 "@types/react" : " ^18.0.26" ,
2828 "@types/react-dom" : " 18.0.9" ,
2929 "autoprefixer" : " ^10.4.13" ,
30- "eslint" : " ^9.19.0 " ,
30+ "eslint" : " ^9.39.1 " ,
3131 "firebase-tools" : " ^14.3.1" ,
3232 "highlight.js" : " ^11.9.0" ,
3333 "marked" : " ^9.1.5" ,
You can’t perform that action at this time.
0 commit comments