Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[master] Linting changes #115

Merged
merged 1 commit into from
Mar 27, 2024
Merged

[master] Linting changes #115

merged 1 commit into from
Mar 27, 2024

Conversation

github-actions[bot]
Copy link
Contributor

This pull request includes linting changes based on the target branch.

Please review and merge if everything looks good.

Additional suggestions: ./.vscode/settings.json:7:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected a property but instead found '}'.

5 │     "package.json": "bun.lockb, README.md,.gitignore, *tsconfig.json, rome.json, dist.tsconfig.json, LICENSE.md, package-lock.json, jest-puppeteer.config.js, michi.config.ts",
6 │     "*.tsx": "$(capture).css, $(capture).css.ts, $(capture).html, $(capture).spec.ts, $(capture).spec.tsx",

7 │ }
│ ^
8 │ }
9 │

i Expected a property here.

5 │     "package.json": "bun.lockb, README.md,.gitignore, *tsconfig.json, rome.json, dist.tsconfig.json, LICENSE.md, package-lock.json, jest-puppeteer.config.js, michi.config.ts",
6 │     "*.tsx": "$(capture).css, $(capture).css.ts, $(capture).html, $(capture).spec.ts, $(capture).spec.tsx",

7 │ }
│ ^
8 │ }
9 │

./.vscode/settings.json:7:3 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected a property but instead found '}'.

5 │     "package.json": "bun.lockb, README.md,.gitignore, *tsconfig.json, rome.json, dist.tsconfig.json, LICENSE.md, package-lock.json, jest-puppeteer.config.js, michi.config.ts",
6 │     "*.tsx": "$(capture).css, $(capture).css.ts, $(capture).html, $(capture).spec.ts, $(capture).spec.tsx",

7 │ }
│ ^
8 │ }
9 │

i Expected a property here.

5 │     "package.json": "bun.lockb, README.md,.gitignore, *tsconfig.json, rome.json, dist.tsconfig.json, LICENSE.md, package-lock.json, jest-puppeteer.config.js, michi.config.ts",
6 │     "*.tsx": "$(capture).css, $(capture).css.ts, $(capture).html, $(capture).spec.ts, $(capture).spec.tsx",

7 │ }
│ ^
8 │ }
9 │

./.vscode/settings.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Code formatting aborted due to parsing errors. To format code with errors, enable the 'formatter.formatWithErrors' option.

./tsconfig.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

 1  1 │   {
 2    │ - ··"compilerOptions":·{
 3    │ - ····"allowSyntheticDefaultImports":·true,
 4    │ - ····"allowUnreachableCode":·false,
 5    │ - ····"declaration":·true,
 6    │ - ····"emitDeclarationOnly":·true,
 7    │ - ····"experimentalDecorators":·true,
 8    │ - ····"lib":·[
 9    │ - ······"dom",
10    │ - ······"esnext"
11    │ - ····],
12    │ - ····"outDir":·"./dist",
13    │ - ····"moduleResolution":·"node",
14    │ - ····"module":·"ESNext",
15    │ - ····"target":·"ESNext",
16    │ - ····"baseUrl":·"./",
17    │ - ····"types"·:·["csstype"],
18    │ - ····"noUnusedLocals":·true,
19    │ - ····"noUnusedParameters":·true
20    │ - ··},
21    │ - ··"include":·[
22    │ - ····"src"
23    │ - ··],
24    │ - ··"exclude":·[
25    │ - ····"node_modules"
26    │ - ··]
27    │ - }
    2 │ + → "compilerOptions":·{
    3 │ + → → "allowSyntheticDefaultImports":·true,
    4 │ + → → "allowUnreachableCode":·false,
    5 │ + → → "declaration":·true,
    6 │ + → → "emitDeclarationOnly":·true,
    7 │ + → → "experimentalDecorators":·true,
    8 │ + → → "lib":·["dom",·"esnext"],
    9 │ + → → "outDir":·"./dist",
   10 │ + → → "moduleResolution":·"node",
   11 │ + → → "module":·"ESNext",
   12 │ + → → "target":·"ESNext",
   13 │ + → → "baseUrl":·"./",
   14 │ + → → "types":·["csstype"],
   15 │ + → → "noUnusedLocals":·true,
   16 │ + → → "noUnusedParameters":·true
   17 │ + → },
   18 │ + → "include":·["src"],
   19 │ + → "exclude":·["node_modules"]
   20 │ + }
   21 │ + 

./tasks.tsconfig.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

 1  1 │   {
 2    │ - ··"compilerOptions":·{
 3    │ - ····"strictFunctionTypes":·true,
 4    │ - ····"strictNullChecks":·true,
 5    │ - ····"strictBindCallApply":·true,
 6    │ - ····"esModuleInterop":·true,
 7    │ - ····"resolveJsonModule":·true,
 8    │ - ····"allowJs":·true,
 9    │ - ····"allowSyntheticDefaultImports":·true,
10    │ - ····"allowUnreachableCode":·false,
11    │ - ····"declaration":·true,
12    │ - ····"experimentalDecorators":·true,
13    │ - ····"noErrorTruncation":·true,
14    │ - ····"lib":·[
15    │ - ······"dom",
16    │ - ······"esnext"
17    │ - ····],
18    │ - ····"incremental":·true,
19    │ - ····"outDir":·"bin",
20    │ - ····"moduleResolution":·"node",
21    │ - ····"module":·"commonjs",
22    │ - ····"target":·"esnext",
23    │ - ····"baseUrl":·"./",
24    │ - ····"types"·:·["@types/node"],
25    │ - ····"noUnusedLocals":·true,
26    │ - ····"noUnusedParameters":·true
27    │ - ··},
28    │ - ··"include":·[
29    │ - ····"tasks"
30    │ - ··],
31    │ - ··"exclude":·[
32    │ - ····"node_modules"
33    │ - ··]
34    │ - }
    2 │ + → "compilerOptions":·{
    3 │ + → → "strictFunctionTypes":·true,
    4 │ + → → "strictNullChecks":·true,
    5 │ + → → "strictBindCallApply":·true,
    6 │ + → → "esModuleInterop":·true,
    7 │ + → → "resolveJsonModule":·true,
    8 │ + → → "allowJs":·true,
    9 │ + → → "allowSyntheticDefaultImports":·true,
   10 │ + → → "allowUnreachableCode":·false,
   11 │ + → → "declaration":·true,
   12 │ + → → "experimentalDecorators":·true,
   13 │ + → → "noErrorTruncation":·true,
   14 │ + → → "lib":·["dom",·"esnext"],
   15 │ + → → "incremental":·true,
   16 │ + → → "outDir":·"bin",
   17 │ + → → "moduleResolution":·"node",
   18 │ + → → "module":·"commonjs",
   19 │ + → → "target":·"esnext",
   20 │ + → → "baseUrl":·"./",
   21 │ + → → "types":·["@types/node"],
   22 │ + → → "noUnusedLocals":·true,
   23 │ + → → "noUnusedParameters":·true
   24 │ + → },
   25 │ + → "include":·["tasks"],
   26 │ + → "exclude":·["node_modules"]
   27 │ + }
   28 │ + 

./.vscode/tasks.json:12:9 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected a property but instead found '}'.

10 │                 "isDefault": true
11 │             },

12 │ },
│ ^
13 │ ]
14 │ }

i Expected a property here.

10 │                 "isDefault": true
11 │             },

12 │ },
│ ^
13 │ ]
14 │ }

./.vscode/tasks.json:13:5 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected an array, an object, or a literal but instead found ']'.

11 │             },
12 │         },

13 │ ]
│ ^
14 │ }

i Expected an array, an object, or a literal here.

11 │             },
12 │         },

13 │ ]
│ ^
14 │ }

./.vscode/tasks.json:12:9 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected a property but instead found '}'.

10 │                 "isDefault": true
11 │             },

12 │ },
│ ^
13 │ ]
14 │ }

i Expected a property here.

10 │                 "isDefault": true
11 │             },

12 │ },
│ ^
13 │ ]
14 │ }

./.vscode/tasks.json:13:5 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Expected an array, an object, or a literal but instead found ']'.

11 │             },
12 │         },

13 │ ]
│ ^
14 │ }

i Expected an array, an object, or a literal here.

11 │             },
12 │         },

13 │ ]
│ ^
14 │ }

./.vscode/tasks.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Code formatting aborted due to parsing errors. To format code with errors, enable the 'formatter.formatWithErrors' option.

./package.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

 1  1 │   {
 2    │ - ··"name":·"@michijs/htmltype",
 3    │ - ··"author":·"Lucas·M.·Segurado",
 4    │ - ··"license":·"MIT",
 5    │ - ··"version":·"0.2.9",
 6    │ - ··"baseUrl":·"./src",
 7    │ - ··"repository":·{
 8    │ - ····"type":·"git",
 9    │ - ····"url":·"https://github.com/michijs/htmltype.git"
10    │ - ··},
11    │ - ··"files":·[
12    │ - ····"dist/",
13    │ - ····"supported/",
14    │ - ····"bin/"
15    │ - ··],
16    │ - ··"main":·"dist/index.js",
17    │ - ··"module":·"dist/index.js",
18    │ - ··"exports":·{
19    │ - ····".":·{
20    │ - ······"import":·"./dist/index.js",
21    │ - ······"require":·"./dist/index.js"
22    │ - ····},
23    │ - ····"./supported":·{
24    │ - ······"import":·"./supported/index.js",
25    │ - ······"require":·"./supported/index.js"
26    │ - ····},
27    │ - ····"./bin":·{
28    │ - ······"import":·"./bin/index.js",
29    │ - ······"require":·"./bin/index.js"
30    │ - ····}
31    │ - ··},
32    │ - ··"description":·"Strict·TypeScript·types·for·HTML,·SVG·and·MATHML·attributes·based·on·MDN·data.",
33    │ - ··"scripts":·{
34    │ - ····"start":·"ts-node·--project·tasks.tsconfig.json·./tasks/generateTypes/main.ts",
35    │ - ····"dist":·"tsc·&&·tsc·--project·tasks.tsconfig.json",
36    │ - ····"publish-prerelease-version":·"npm·version·prerelease·&&·npm·run·publish-npm",
37    │ - ····"publish-npm":·"npm·run·dist·&&·npm·publish·--access·public",
38    │ - ····"link":·"npm·run·dist·&&·npm·link·--force·&&·tsc·-w·&&·tsc·--project·tasks.tsconfig.json·-w"
39    │ - ··},
40    │ - ··"keywords":·[
41    │ - ····"html",
42    │ - ····"svg",
43    │ - ····"mathml",
44    │ - ····"typescript"
45    │ - ··],
46    │ - ··"devDependencies":·{
47    │ - ····"@types/node":·"20.11.30",
48    │ - ····"ts-node":·"10.9.2",
49    │ - ····"typescript":·"5.4.3",
50    │ - ····"vscode-html-languageservice":·"5.2.0"
51    │ - ··},
52    │ - ··"dependencies":·{
53    │ - ····"@vscode/web-custom-data":·"0.4.9",
54    │ - ····"@michijs/vscode-svg":·"2.0.7",
55    │ - ····"@michijs/vscode-mathml":·"1.0.3"
56    │ - ··},
57    │ - ··"peerDependencies":·{
58    │ - ····"csstype":·"^3.1.2"
59    │ - ··}
    2 │ + → "name":·"@michijs/htmltype",
    3 │ + → "author":·"Lucas·M.·Segurado",
    4 │ + → "license":·"MIT",
    5 │ + → "version":·"0.2.9",
    6 │ + → "baseUrl":·"./src",
    7 │ + → "repository":·{
    8 │ + → → "type":·"git",
    9 │ + → → "url":·"https://github.com/michijs/htmltype.git"
   10 │ + → },
   11 │ + → "files":·["dist/",·"supported/",·"bin/"],
   12 │ + → "main":·"dist/index.js",
   13 │ + → "module":·"dist/index.js",
   14 │ + → "exports":·{
   15 │ + → → ".":·{
   16 │ + → → → "import":·"./dist/index.js",
   17 │ + → → → "require":·"./dist/index.js"
   18 │ + → → },
   19 │ + → → "./supported":·{
   20 │ + → → → "import":·"./supported/index.js",
   21 │ + → → → "require":·"./supported/index.js"
   22 │ + → → },
   23 │ + → → "./bin":·{
   24 │ + → → → "import":·"./bin/index.js",
   25 │ + → → → "require":·"./bin/index.js"
   26 │ + → → }
   27 │ + → },
   28 │ + → "description":·"Strict·TypeScript·types·for·HTML,·SVG·and·MATHML·attributes·based·on·MDN·data.",
   29 │ + → "scripts":·{
   30 │ + → → "start":·"ts-node·--project·tasks.tsconfig.json·./tasks/generateTypes/main.ts",
   31 │ + → → "dist":·"tsc·&&·tsc·--project·tasks.tsconfig.json",
   32 │ + → → "publish-prerelease-version":·"npm·version·prerelease·&&·npm·run·publish-npm",
   33 │ + → → "publish-npm":·"npm·run·dist·&&·npm·publish·--access·public",
   34 │ + → → "link":·"npm·run·dist·&&·npm·link·--force·&&·tsc·-w·&&·tsc·--project·tasks.tsconfig.json·-w"
   35 │ + → },
   36 │ + → "keywords":·["html",·"svg",·"mathml",·"typescript"],
   37 │ + → "devDependencies":·{
   38 │ + → → "@types/node":·"20.11.30",
   39 │ + → → "ts-node":·"10.9.2",
   40 │ + → → "typescript":·"5.4.3",
   41 │ + → → "vscode-html-languageservice":·"5.2.0"
   42 │ + → },
   43 │ + → "dependencies":·{
   44 │ + → → "@vscode/web-custom-data":·"0.4.9",
   45 │ + → → "@michijs/vscode-svg":·"2.0.7",
   46 │ + → → "@michijs/vscode-mathml":·"1.0.3"
   47 │ + → },
   48 │ + → "peerDependencies":·{
   49 │ + → → "csstype":·"^3.1.2"
   50 │ + → }
60 51 │   }
61 52 │   

./src/DataGlobalAttributes.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

2 2 │   
3 3 │   export type DataGlobalAttributes = {
4   │ - ··[k·in·`data-${string}`]:·ValueSets["default"];
  4 │ + → [k·in·`data-${string}`]:·ValueSets["default"];
5 5 │   };
6 6 │   

./supported/MathMLElements.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

  1   1 │   [
  2     │ - ··{
  3     │ - ····"tagName":·"math",
  4     │ - ····"elementInterface":·"MathMLElement"
  5     │ - ··},
  6     │ - ··{
  7     │ - ····"tagName":·"merror",
  8     │ - ····"elementInterface":·"MathMLElement"
  9     │ - ··},
 10     │ - ··{
 11     │ - ····"tagName":·"mfrac",
 12     │ - ····"elementInterface":·"MathMLElement"
 13     │ - ··},
 14     │ - ··{
 15     │ - ····"tagName":·"mi",
 16     │ - ····"elementInterface":·"MathMLElement"
 17     │ - ··},
 18     │ - ··{
 19     │ - ····"tagName":·"mmultiscripts",
 20     │ - ····"elementInterface":·"MathMLElement"
 21     │ - ··},
 22     │ - ··{
 23     │ - ····"tagName":·"mn",
 24     │ - ····"elementInterface":·"MathMLElement"
 25     │ - ··},
 26     │ - ··{
 27     │ - ····"tagName":·"mo",
 28     │ - ····"elementInterface":·"MathMLElement"
 29     │ - ··},
 30     │ - ··{
 31     │ - ····"tagName":·"mover",
 32     │ - ····"elementInterface":·"MathMLElement"
 33     │ - ··},
 34     │ - ··{
 35     │ - ····"tagName":·"mpadded",
 36     │ - ····"elementInterface":·"MathMLElement"
 37     │ - ··},
 38     │ - ··{
 39     │ - ····"tagName":·"mphantom",
 40     │ - ····"elementInterface":·"MathMLElement"
 41     │ - ··},
 42     │ - ··{
 43     │ - ····"tagName":·"mroot",
 44     │ - ····"elementInterface":·"MathMLElement"
 45     │ - ··},
 46     │ - ··{
 47     │ - ····"tagName":·"mrow",
 48     │ - ····"elementInterface":·"MathMLElement"
 49     │ - ··},
 50     │ - ··{
 51     │ - ····"tagName":·"ms",
 52     │ - ····"elementInterface":·"MathMLElement"
 53     │ - ··},
 54     │ - ··{
 55     │ - ····"tagName":·"mspace",
 56     │ - ····"elementInterface":·"MathMLElement"
 57     │ - ··},
 58     │ - ··{
 59     │ - ····"tagName":·"msqrt",
 60     │ - ····"elementInterface":·"MathMLElement"
 61     │ - ··},
 62     │ - ··{
 63     │ - ····"tagName":·"mstyle",
 64     │ - ····"elementInterface":·"MathMLElement"
 65     │ - ··},
 66     │ - ··{
 67     │ - ····"tagName":·"msub",
 68     │ - ····"elementInterface":·"MathMLElement"
 69     │ - ··},
 70     │ - ··{
 71     │ - ····"tagName":·"msubsup",
 72     │ - ····"elementInterface":·"MathMLElement"
 73     │ - ··},
 74     │ - ··{
 75     │ - ····"tagName":·"mtable",
 76     │ - ····"elementInterface":·"MathMLElement"
 77     │ - ··},
 78     │ - ··{
 79     │ - ····"tagName":·"mtd",
 80     │ - ····"elementInterface":·"MathMLElement"
 81     │ - ··},
 82     │ - ··{
 83     │ - ····"tagName":·"mtext",
 84     │ - ····"elementInterface":·"MathMLElement"
 85     │ - ··},
 86     │ - ··{
 87     │ - ····"tagName":·"mtr",
 88     │ - ····"elementInterface":·"MathMLElement"
 89     │ - ··},
 90     │ - ··{
 91     │ - ····"tagName":·"munder",
 92     │ - ····"elementInterface":·"MathMLElement"
 93     │ - ··},
 94     │ - ··{
 95     │ - ····"tagName":·"munderover",
 96     │ - ····"elementInterface":·"MathMLElement"
 97     │ - ··},
 98     │ - ··{
 99     │ - ····"tagName":·"semantics",
100     │ - ····"elementInterface":·"MathMLElement"
101     │ - ··}
102     │ - ]
      2 │ + → {
      3 │ + → → "tagName":·"math",
      4 │ + → → "elementInterface":·"MathMLElement"
      5 │ + → },
      6 │ + → {
      7 │ + → → "tagName":·"merror",
      8 │ + → → "elementInterface":·"MathMLElement"
      9 │ + → },
     10 │ + → {
     11 │ + → → "tagName":·"mfrac",
     12 │ + → → "elementInterface":·"MathMLElement"
     13 │ + → },
     14 │ + → {
     15 │ + → → "tagName":·"mi",
     16 │ + → → "elementInterface":·"MathMLElement"
     17 │ + → },
     18 │ + → {
     19 │ + → → "tagName":·"mmultiscripts",
     20 │ + → → "elementInterface":·"MathMLElement"
     21 │ + → },
     22 │ + → {
     23 │ + → → "tagName":·"mn",
     24 │ + → → "elementInterface":·"MathMLElement"
     25 │ + → },
     26 │ + → {
     27 │ + → → "tagName":·"mo",
     28 │ + → → "elementInterface":·"MathMLElement"
     29 │ + → },
     30 │ + → {
     31 │ + → → "tagName":·"mover",
     32 │ + → → "elementInterface":·"MathMLElement"
     33 │ + → },
     34 │ + → {
     35 │ + → → "tagName":·"mpadded",
     36 │ + → → "elementInterface":·"MathMLElement"
     37 │ + → },
     38 │ + → {
     39 │ + → → "tagName":·"mphantom",
     40 │ + → → "elementInterface":·"MathMLElement"
     41 │ + → },
     42 │ + → {
     43 │ + → → "tagName":·"mroot",
     44 │ + → → "elementInterface":·"MathMLElement"
     45 │ + → },
     46 │ + → {
     47 │ + → → "tagName":·"mrow",
     48 │ + → → "elementInterface":·"MathMLElement"
     49 │ + → },

54 more lines truncated

./supported/HTMLElements.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

  1   1 │   [
  2     │ - ··{
  3     │ - ····"tagName":·"html",
  4     │ - ····"elementInterface":·"HTMLElementTagNameMap['html']"
  5     │ - ··},
  6     │ - ··{
  7     │ - ····"tagName":·"head",
  8     │ - ····"elementInterface":·"HTMLElementTagNameMap['head']"
  9     │ - ··},
 10     │ - ··{
 11     │ - ····"tagName":·"title",
 12     │ - ····"elementInterface":·"HTMLElementTagNameMap['title']"
 13     │ - ··},
 14     │ - ··{
 15     │ - ····"tagName":·"base",
 16     │ - ····"elementInterface":·"HTMLElementTagNameMap['base']"
 17     │ - ··},
 18     │ - ··{
 19     │ - ····"tagName":·"link",
 20     │ - ····"elementInterface":·"HTMLElementTagNameMap['link']"
 21     │ - ··},
 22     │ - ··{
 23     │ - ····"tagName":·"meta",
 24     │ - ····"elementInterface":·"HTMLElementTagNameMap['meta']"
 25     │ - ··},
 26     │ - ··{
 27     │ - ····"tagName":·"style",
 28     │ - ····"elementInterface":·"HTMLElementTagNameMap['style']"
 29     │ - ··},
 30     │ - ··{
 31     │ - ····"tagName":·"body",
 32     │ - ····"elementInterface":·"HTMLElementTagNameMap['body']"
 33     │ - ··},
 34     │ - ··{
 35     │ - ····"tagName":·"article",
 36     │ - ····"elementInterface":·"HTMLElementTagNameMap['article']"
 37     │ - ··},
 38     │ - ··{
 39     │ - ····"tagName":·"section",
 40     │ - ····"elementInterface":·"HTMLElementTagNameMap['section']"
 41     │ - ··},
 42     │ - ··{
 43     │ - ····"tagName":·"nav",
 44     │ - ····"elementInterface":·"HTMLElementTagNameMap['nav']"
 45     │ - ··},
 46     │ - ··{
 47     │ - ····"tagName":·"aside",
 48     │ - ····"elementInterface":·"HTMLElementTagNameMap['aside']"
 49     │ - ··},
 50     │ - ··{
 51     │ - ····"tagName":·"h1",
 52     │ - ····"elementInterface":·"HTMLElementTagNameMap['h1']"
 53     │ - ··},
 54     │ - ··{
 55     │ - ····"tagName":·"h2",
 56     │ - ····"elementInterface":·"HTMLElementTagNameMap['h2']"
 57     │ - ··},
 58     │ - ··{
 59     │ - ····"tagName":·"h3",
 60     │ - ····"elementInterface":·"HTMLElementTagNameMap['h3']"
 61     │ - ··},
 62     │ - ··{
 63     │ - ····"tagName":·"h4",
 64     │ - ····"elementInterface":·"HTMLElementTagNameMap['h4']"
 65     │ - ··},
 66     │ - ··{
 67     │ - ····"tagName":·"h5",
 68     │ - ····"elementInterface":·"HTMLElementTagNameMap['h5']"
 69     │ - ··},
 70     │ - ··{
 71     │ - ····"tagName":·"h6",
 72     │ - ····"elementInterface":·"HTMLElementTagNameMap['h6']"
 73     │ - ··},
 74     │ - ··{
 75     │ - ····"tagName":·"header",
 76     │ - ····"elementInterface":·"HTMLElementTagNameMap['header']"
 77     │ - ··},
 78     │ - ··{
 79     │ - ····"tagName":·"footer",
 80     │ - ····"elementInterface":·"HTMLElementTagNameMap['footer']"
 81     │ - ··},
 82     │ - ··{
 83     │ - ····"tagName":·"address",
 84     │ - ····"elementInterface":·"HTMLElementTagNameMap['address']"
 85     │ - ··},
 86     │ - ··{
 87     │ - ····"tagName":·"p",
 88     │ - ····"elementInterface":·"HTMLElementTagNameMap['p']"
 89     │ - ··},
 90     │ - ··{
 91     │ - ····"tagName":·"hr",
 92     │ - ····"elementInterface":·"HTMLElementTagNameMap['hr']"
 93     │ - ··},
 94     │ - ··{
 95     │ - ····"tagName":·"pre",
 96     │ - ····"elementInterface":·"HTMLElementTagNameMap['pre']"
 97     │ - ··},
 98     │ - ··{
 99     │ - ····"tagName":·"blockquote",
100     │ - ····"elementInterface":·"HTMLElementTagNameMap['blockquote']"
101     │ - ··},
102     │ - ··{
103     │ - ····"tagName":·"ol",
104     │ - ····"elementInterface":·"HTMLElementTagNameMap['ol']"
105     │ - ··},
106     │ - ··{
107     │ - ····"tagName":·"ul",
108     │ - ····"elementInterface":·"HTMLElementTagNameMap['ul']"
109     │ - ··},
110     │ - ··{
111     │ - ····"tagName":·"li",
112     │ - ····"elementInterface":·"HTMLElementTagNameMap['li']"
113     │ - ··},
114     │ - ··{
115     │ - ····"tagName":·"dl",
116     │ - ····"elementInterface":·"HTMLElementTagNameMap['dl']"
117     │ - ··},
118     │ - ··{
119     │ - ····"tagName":·"dt",
120     │ - ····"elementInterface":·"HTMLElementTagNameMap['dt']"
121     │ - ··},
122     │ - ··{
123     │ - ····"tagName":·"dd",
124     │ - ····"elementInterface":·"HTMLElementTagNameMap['dd']"
125     │ - ··},
126     │ - ··{
127     │ - ····"tagName":·"figure",
128     │ - ····"elementInterface":·"HTMLElementTagNameMap['figure']"
129     │ - ··},
130     │ - ··{
131     │ - ····"tagName":·"figcaption",
132     │ - ····"elementInterface":·"HTMLElementTagNameMap['figcaption']"
133     │ - ··},
134     │ - ··{
135     │ - ····"tagName":·"main",
136     │ - ····"elementInterface":·"HTMLElementTagNameMap['main']"
137     │ - ··},
138     │ - ··{
139     │ - ····"tagName":·"div",
140     │ - ····"elementInterface":·"HTMLElementTagNameMap['div']"
141     │ - ··},
142     │ - ··{
143     │ - ····"tagName":·"a",
144     │ - ····"elementInterface":·"HTMLElementTagNameMap['a']"
145     │ - ··},
146     │ - ··{
147     │ - ····"tagName":·"em",
148     │ - ····"elementInterface":·"HTMLElementTagNameMap['em']"
149     │ - ··},
150     │ - ··{

758 more lines truncated

./src/types.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

2 2 │   
3 3 │   export type CSSProperties = Properties & {
4   │ - ··[k·in·`--${string}`]?:·string·|·number;
  4 │ + → [k·in·`--${string}`]?:·string·|·number;
5 5 │   };
6 6 │   

./supported/SVGElements.json format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

  1   1 │   [
  2     │ - ··{
  3     │ - ····"tagName":·"a",
  4     │ - ····"elementInterface":·"SVGElementTagNameMap['a']"
  5     │ - ··},
  6     │ - ··{
  7     │ - ····"tagName":·"animate",
  8     │ - ····"elementInterface":·"SVGElementTagNameMap['animate']"
  9     │ - ··},
 10     │ - ··{
 11     │ - ····"tagName":·"animateMotion",
 12     │ - ····"elementInterface":·"SVGElementTagNameMap['animateMotion']"
 13     │ - ··},
 14     │ - ··{
 15     │ - ····"tagName":·"animateTransform",
 16     │ - ····"elementInterface":·"SVGElementTagNameMap['animateTransform']"
 17     │ - ··},
 18     │ - ··{
 19     │ - ····"tagName":·"circle",
 20     │ - ····"elementInterface":·"SVGElementTagNameMap['circle']"
 21     │ - ··},
 22     │ - ··{
 23     │ - ····"tagName":·"clipPath",
 24     │ - ····"elementInterface":·"SVGElementTagNameMap['clipPath']"
 25     │ - ··},
 26     │ - ··{
 27     │ - ····"tagName":·"defs",
 28     │ - ····"elementInterface":·"SVGElementTagNameMap['defs']"
 29     │ - ··},
 30     │ - ··{
 31     │ - ····"tagName":·"desc",
 32     │ - ····"elementInterface":·"SVGElementTagNameMap['desc']"
 33     │ - ··},
 34     │ - ··{
 35     │ - ····"tagName":·"discard",
 36     │ - ····"elementInterface":·"SVGElement"
 37     │ - ··},
 38     │ - ··{
 39     │ - ····"tagName":·"ellipse",
 40     │ - ····"elementInterface":·"SVGElementTagNameMap['ellipse']"
 41     │ - ··},
 42     │ - ··{
 43     │ - ····"tagName":·"feBlend",
 44     │ - ····"elementInterface":·"SVGElementTagNameMap['feBlend']"
 45     │ - ··},
 46     │ - ··{
 47     │ - ····"tagName":·"feColorMatrix",
 48     │ - ····"elementInterface":·"SVGElementTagNameMap['feColorMatrix']"
 49     │ - ··},
 50     │ - ··{
 51     │ - ····"tagName":·"feComponentTransfer",
 52     │ - ····"elementInterface":·"SVGElementTagNameMap['feComponentTransfer']"
 53     │ - ··},
 54     │ - ··{
 55     │ - ····"tagName":·"feComposite",
 56     │ - ····"elementInterface":·"SVGElementTagNameMap['feComposite']"
 57     │ - ··},
 58     │ - ··{
 59     │ - ····"tagName":·"feConvolveMatrix",
 60     │ - ····"elementInterface":·"SVGElementTagNameMap['feConvolveMatrix']"
 61     │ - ··},
 62     │ - ··{
 63     │ - ····"tagName":·"feDiffuseLighting",
 64     │ - ····"elementInterface":·"SVGElementTagNameMap['feDiffuseLighting']"
 65     │ - ··},
 66     │ - ··{
 67     │ - ····"tagName":·"feDisplacementMap",
 68     │ - ····"elementInterface":·"SVGElementTagNameMap['feDisplacementMap']"
 69     │ - ··},
 70     │ - ··{
 71     │ - ····"tagName":·"feDistantLight",
 72     │ - ····"elementInterface":·"SVGElementTagNameMap['feDistantLight']"
 73     │ - ··},
 74     │ - ··{
 75     │ - ····"tagName":·"feDropShadow",
 76     │ - ····"elementInterface":·"SVGElementTagNameMap['feDropShadow']"
 77     │ - ··},
 78     │ - ··{
 79     │ - ····"tagName":·"feFlood",
 80     │ - ····"elementInterface":·"SVGElementTagNameMap['feFlood']"
 81     │ - ··},
 82     │ - ··{
 83     │ - ····"tagName":·"feFuncA",
 84     │ - ····"elementInterface":·"SVGElementTagNameMap['feFuncA']"
 85     │ - ··},
 86     │ - ··{
 87     │ - ····"tagName":·"feFuncB",
 88     │ - ····"elementInterface":·"SVGElementTagNameMap['feFuncB']"
 89     │ - ··},
 90     │ - ··{
 91     │ - ····"tagName":·"feFuncG",
 92     │ - ····"elementInterface":·"SVGElementTagNameMap['feFuncG']"
 93     │ - ··},
 94     │ - ··{
 95     │ - ····"tagName":·"feFuncR",
 96     │ - ····"elementInterface":·"SVGElementTagNameMap['feFuncR']"
 97     │ - ··},
 98     │ - ··{
 99     │ - ····"tagName":·"feGaussianBlur",
100     │ - ····"elementInterface":·"SVGElementTagNameMap['feGaussianBlur']"
101     │ - ··},
102     │ - ··{
103     │ - ····"tagName":·"feImage",
104     │ - ····"elementInterface":·"SVGElementTagNameMap['feImage']"
105     │ - ··},
106     │ - ··{
107     │ - ····"tagName":·"feMerge",
108     │ - ····"elementInterface":·"SVGElementTagNameMap['feMerge']"
109     │ - ··},
110     │ - ··{
111     │ - ····"tagName":·"feMergeNode",
112     │ - ····"elementInterface":·"SVGElementTagNameMap['feMergeNode']"
113     │ - ··},
114     │ - ··{
115     │ - ····"tagName":·"feMorphology",
116     │ - ····"elementInterface":·"SVGElementTagNameMap['feMorphology']"
117     │ - ··},
118     │ - ··{
119     │ - ····"tagName":·"feOffset",
120     │ - ····"elementInterface":·"SVGElementTagNameMap['feOffset']"
121     │ - ··},
122     │ - ··{
123     │ - ····"tagName":·"fePointLight",
124     │ - ····"elementInterface":·"SVGElementTagNameMap['fePointLight']"
125     │ - ··},
126     │ - ··{
127     │ - ····"tagName":·"feSpecularLighting",
128     │ - ····"elementInterface":·"SVGElementTagNameMap['feSpecularLighting']"
129     │ - ··},
130     │ - ··{
131     │ - ····"tagName":·"feSpotLight",
132     │ - ····"elementInterface":·"SVGElementTagNameMap['feSpotLight']"
133     │ - ··},
134     │ - ··{
135     │ - ····"tagName":·"feTile",
136     │ - ····"elementInterface":·"SVGElementTagNameMap['feTile']"
137     │ - ··},
138     │ - ··{
139     │ - ····"tagName":·"feTurbulence",
140     │ - ····"elementInterface":·"SVGElementTagNameMap['feTurbulence']"
141     │ - ··},
142     │ - ··{
143     │ - ····"tagName":·"filter",
144     │ - ····"elementInterface":·"SVGElementTagNameMap['filter']"
145     │ - ··},
146     │ - ··{
147     │ - ····"tagName":·"foreignObject",
148     │ - ····"elementInterface":·"SVGElementTagNameMap['foreignObject']"
149     │ - ··},
150     │ - ··{

366 more lines truncated

./tasks/generateTypes/index.ts:17:17 lint/style/noNonNullAssertion FIXABLE ━━━━━━━━━━━━━━━━━━━━━━━

× Forbidden non-null assertion.

15 │ const mathmlData = mathmlDataImport as HTMLDataV1;
16 │ 

17 │ htmlData.tags = htmlData.tags!.map((x) => {
│ ^^^^^^^^^^^^^^
18 │ if (["bdo", "textarea"].includes(x.name))
19 │ return {

i Unsafe fix: Replace with optional chain operator ?. This operator includes runtime checks, so it is safer than the compile-only non-null assertion operator

 15  15 │   const mathmlData = mathmlDataImport as HTMLDataV1;
 16  16 │   
 17     │ - htmlData.tags·=·htmlData.tags!.map((x)·=>·{
     17 │ + htmlData.tags·=·htmlData.tags?.map((x)·=>·{
 18  18 │     if (["bdo", "textarea"].includes(x.name))
 19  19 │       return {

./tasks/generateTypes/index.ts organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Import statements could be sorted:

  1     │ - import·{·TypesFactory·}·from·"./TypesFactory";
  2     │ - import·htmlDataImport·from·"@vscode/web-custom-data/data/browsers.html-data.json";
  3     │ - import·svgDataImport·from·"@michijs/vscode-svg/dist/svg.json";
  4     │ - import·svgAttributeSet·from·"@michijs/vscode-svg/dist/attributeSets.json";
  5     │ - import·mathmlDataImport·from·"@michijs/vscode-mathml/dist/mathml.json";
      1 │ + import·mathmlDataImport·from·"@michijs/vscode-mathml/dist/mathml.json";
      2 │ + import·svgAttributeSet·from·"@michijs/vscode-svg/dist/attributeSets.json";
      3 │ + import·svgDataImport·from·"@michijs/vscode-svg/dist/svg.json";
      4 │ + import·htmlDataImport·from·"@vscode/web-custom-data/data/browsers.html-data.json";
  6   5 │   import type { HTMLDataV1 } from "vscode-html-languageservice";
  7     │ - import·type·{
      6 │ + import·{·TypesFactory·}·from·"./TypesFactory";
      7 │ + import·type·{
  8   8 │     AttributeSet,
  9   9 │     GenerateTypesProps,

./tasks/generateTypes/types.ts organizeImports ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Import statements could be sorted:

 1  1 │   import type {
 2    │ - ··IAttributeData,
 3    │ - ··ITagData,
 4    │ - ··HTMLDataV1,
    2 │ + ··HTMLDataV1,
    3 │ + ··IAttributeData,
    4 │ + ··ITagData,
 5  5 │     IValueData,
 6  6 │   } from "vscode-html-languageservice";

./src/Events/TypedEventHandlers/TypedOnErrorEventHandler.ts format ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

i Formatter would have printed the following content:

 2  2 │   
 3  3 │   type TypedOnErrorEventHandlerNonNull<T> = (
 4    │ - ··event:·TypedEvent<T>·|·string,
 5    │ - ··source?:·string,
 6    │ - ··lineno?:·number,
 7    │ - ··colno?:·number,
 8    │ - ··error?:·Error,
    4 │ + → event:·TypedEvent<T>·|·string,
    5 │ + → source?:·string,
    6 │ + → lineno?:·number,
    7 │ + → colno?:·number,
    8 │ + → error?:·Error,
 9  9 │   ) => unknown;
10 10 │   
11 11 │   export type TypedOnErrorEventHandler<T> =
12    │ - ··TypedOnErrorEventHandlerNonNull<T>·|·null;
   12 │ + → TypedOnErrorEventHandlerNonNull<T>·|·null;
13 13 │   

The number of diagnostics exceeds the number allowed by Biome.
Diagnostics not shown: 349.
Checked 56 files in 256ms. No fixes needed.
Found 205 errors.
check ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

× Some errors were emitted while running checks.

@lsegurado lsegurado merged commit e1c2d87 into master Mar 27, 2024
@github-actions github-actions bot deleted the master_lint branch March 27, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant