查看“︁JavaScript/typescript”︁的源代码
来自康健生活
←
JavaScript/typescript
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
== 引言 == == 类型 == [[/类型|类型]] == 关键字 == {| class="wikitable" |- | [[/回调函数|回调函数]] || --strict || 示例 |- | 示例 || 示例 || 示例 |- | 示例 || 示例 || 示例 |} == eslint == {{shc|<syntaxhighlight lang="bash"> npm install eslint typescript --save-dev npm install --save-dev @typescript-eslint/parser npm install --save-dev @typescript-eslint/eslint-plugin </syntaxhighlight>|$}} === 配置 === === AlloyTeam ESLint === {{shc|<syntaxhighlight lang="bash"> npm install --save-dev eslint-config-alloy</syntaxhighlight>|$}} === 部署配置 === {{hc|.eslintrc.js|<syntaxhighlight lang="javascript"> module.exports = { extends: [ 'alloy', 'alloy/typescript', ], env: { // 您的环境变量(包含多个预定义的全局变量) // Your environments (which contains several predefined global variables) // // browser: true, // node: true, // mocha: true, // jest: true, // jquery: true }, globals: { // 您的全局变量(设置为 false 表示它不允许被重新赋值) // Your global variables (setting to false means it's not allowed to be reassigned) // // myGlobal: false }, rules: { // 自定义您的规则 // Customize your rules } };</syntaxhighlight>}} == error == * TypeError: The 'request' argument must be string. Received type undefined * Argument of type 'string | null | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string' * TS2339: Property '$axios' does not exist on type 'NetworkAuth'. * Error:(7, 40) TS2691: An import path cannot end with a '.ts' extension. Consider importing '@@/api/httpInterface' instead. [[/error|error]]
此页面嵌入的页面:
模板:Hc
(
查看源代码
)
模板:Hc/style.css
(
查看源代码
)
模板:Shc
(
查看源代码
)
模板:Shc/style.css
(
查看源代码
)
返回
JavaScript/typescript
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。