
Security News
Node.js TSC Declines to Endorse Feature Bounty Program
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
@poi/plugin-typescript
Advanced tools
Official TypeScript plugin for Poi.
This plugin use ts-loader
to transpile TypeScript files, it also uses fork-ts-checker-webpack-plugin
to perform type-checking. .ts
.tsx
and .vue
files are supported.
It's possible to run Babel alongside TypeScript using the babel option. When used with Babel, it's recommended to set compilerOptions.target
to es2015
or later in tsconfig.json
to delegate the rest to Babel for auto polyfill based on browser targets.
yarn add @poi/plugin-typescript typescript --dev
module.exports = {
plugins: [
{
resolve: '@poi/plugin-typescript',
options: {}
}
]
}
Then add a tsconfig.json
in your project:
{
"compilerOptions": {
"target": "es5",
"strict": true,
"module": "es2015",
"moduleResolution": "node"
}
}
boolean
false
Use Babel after the TypeScript compiler.
boolean
true
Lint TS files with ts-lint
at compile time, note that it will only work when you have a tslint.json
in your project root.
string
tsconfig.json
The path to the TypeScript config file.
any
Addtional options for ts-loader
.
any
Additional options for fork-ts-checker-webpack-plugin
.
FAQs
Official TypeScript plugin for Poi.
We found that @poi/plugin-typescript demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Node.js TSC opted not to endorse a feature bounty program, citing concerns about incentives, governance, and project neutrality.
Research
Security News
A look at the top trends in how threat actors are weaponizing open source packages to deliver malware and persist across the software supply chain.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.