Skip to content

Commit

Permalink
Update tsconfig.json
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jan 4, 2023
1 parent 848380b commit 53361dd
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 35 deletions.
8 changes: 4 additions & 4 deletions lib/html.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* @typedef {import('./core.js').HChild} Child Acceptable child value
* @typedef {import('./core.js').HProperties} Properties Acceptable properties value.
*
* @typedef {import('./jsx-classic').Element} h.JSX.Element
* @typedef {import('./jsx-classic').IntrinsicAttributes} h.JSX.IntrinsicAttributes
* @typedef {import('./jsx-classic').IntrinsicElements} h.JSX.IntrinsicElements
* @typedef {import('./jsx-classic').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
* @typedef {import('./jsx-classic.js').Element} h.JSX.Element
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} h.JSX.IntrinsicAttributes
* @typedef {import('./jsx-classic.js').IntrinsicElements} h.JSX.IntrinsicElements
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} h.JSX.ElementChildrenAttribute
*/

import {html} from 'property-information'
Expand Down
8 changes: 4 additions & 4 deletions lib/svg.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
* @typedef {import('./core.js').HChild} Child
* @typedef {import('./core.js').HProperties} Properties
*
* @typedef {import('./jsx-classic').Element} s.JSX.Element
* @typedef {import('./jsx-classic').IntrinsicAttributes} s.JSX.IntrinsicAttributes
* @typedef {import('./jsx-classic').IntrinsicElements} s.JSX.IntrinsicElements
* @typedef {import('./jsx-classic').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
* @typedef {import('./jsx-classic.js').Element} s.JSX.Element
* @typedef {import('./jsx-classic.js').IntrinsicAttributes} s.JSX.IntrinsicAttributes
* @typedef {import('./jsx-classic.js').IntrinsicElements} s.JSX.IntrinsicElements
* @typedef {import('./jsx-classic.js').ElementChildrenAttribute} s.JSX.ElementChildrenAttribute
*/

import {svg} from 'property-information'
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"prettier": "^2.0.0",
"remark-cli": "^11.0.0",
"remark-preset-wooorm": "^9.0.0",
"rimraf": "^3.0.0",
"svg-tag-names": "^3.0.0",
"tape": "^5.0.0",
"tsd": "^0.25.0",
Expand All @@ -85,8 +84,8 @@
},
"scripts": {
"prepack": "npm run build && npm run format",
"build": "rimraf \"{script/**,test/**,}*.d.ts\" \"lib/{core,html,index,runtime-html,runtime-svg,runtime,svg-case-sensitive-tag-names,svg}.d.ts\" && tsc && tsd && type-coverage",
"generate": "node script/generate-jsx && node script/build",
"build": "tsc --build --clean && tsc --build && type-coverage",
"generate": "node script/generate-jsx.js && node script/build.js",
"format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
"test-api": "node --conditions development test/index.js",
"test-coverage": "c8 --check-coverage --100 --reporter lcov npm run test-api",
Expand Down
37 changes: 13 additions & 24 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,33 +1,22 @@
{
"include": [
"*.js",
"html/**/*.js",
"script/**/*.js",
"svg/**/*.js",
"test/**/*.js",
"lib/core.js",
"lib/html.js",
"lib/index.js",
"lib/runtime-html.js",
"lib/runtime-svg.js",
"lib/runtime.js",
"lib/svg-case-sensitive-tag-names.js",
"lib/svg.js",
"lib/jsx-automatic.d.ts",
"lib/jsx-classic.d.ts"
"include": ["**/**.js"],
"exclude": [
"coverage/",
"node_modules/",
"lib/jsx-automatic.js",
"lib/jsx-classic.js"
],
"compilerOptions": {
"target": "ES2020",
"lib": ["ES2020"],
"module": "ES2020",
"moduleResolution": "node",
"allowJs": true,
"checkJs": true,
"declaration": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"exactOptionalPropertyTypes": true,
"forceConsistentCasingInFileNames": true,
"lib": ["es2020"],
"module": "node16",
"newLine": "lf",
"skipLibCheck": true,
"strictNullChecks": true,
"strict": true
"strict": true,
"target": "es2020"
}
}

0 comments on commit 53361dd

Please sign in to comment.