前端:Angular框架关闭Tslint语法检查

news/2024/7/5 6:48:29

由于Angular版本问题而引起的代码误报,出现问题一般为TSLINT......,这个时候可以使用以下操作解决。

替换tslint.json文件内容

{
  "parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "env": {
    "browser": true,
    "node": true,
    "commonjs": true,
    "meteor": true,
    "mongo": true,
    "jquery": true,
    "amd": true
  },
  "globals": {},
  "rules": {
    "comma-dangle": [2, "never"],
    "no-cond-assign": [2],
    "no-constant-condition": [2],
    "no-control-regex": [2],
    "no-debugger": [2],
    "no-dupe-args": [2],
    "no-dupe-keys": [2],
    "no-duplicate-case": [2],
    "no-empty-character-class": [2],
    "no-empty": [2],
    "no-ex-assign": [2],
    "no-extra-boolean-cast": [2],
    "no-func-assign": [2],
    "no-inner-declarations": [2],
    "no-invalid-regexp": [2],
    "no-irregular-whitespace": [2],
    "no-negated-in-lhs": [2],
    "no-obj-calls": [2],
    "no-regex-spaces": [2],
    "no-sparse-arrays": [2],
    "no-unexpected-multiline": [2],
    "no-unreachable": [2],
    "use-isnan": [2],
    "no-octal": [2],
    "no-empty-pattern": [2],
    "no-multi-spaces": [2],
    "no-unused-labels": [1],
    "no-void": [2],
    "semi": [2, "always"],
    "quotes": [2, "single"],
    "strict": [2, "safe"],
    "dot-location": [2, "property"],
    "no-label-var": [2],
    "no-shadow-restricted-names": [2],
    "no-undef": [2],
    "init-declarations": [2, "always"],
    "no-catch-shadow": [2],
    "no-delete-var": [2],
    "constructor-super": [1],
    "no-const-assign": [2],
    "no-dupe-class-members": [2],
    "no-new-symbol": [2],
    "no-this-before-super": [2],
    "no-class-assign": [2]
  }
}

http://www.niftyadmin.cn/n/3649665.html

相关文章

[J2ME]Nokia播放音乐时发生MediaException的解决办法

[J2ME]Nokia播放音乐时发生MediaException的解决办法现象 在Nokia7610上播放音乐时遇到了-18的MediaException错误!J2ME中播放音乐资源的代码很容易找,我是直接从这篇比较经典的《熟练使用J2ME在实际开发中的可选包MMAPI》中复制的代码,心想&…

如何在CentOS 7上为生产设置Node.js应用程序

介绍 (Introduction) Node.js is an open source Javascript runtime environment for easily building server-side and networking applications. The platform runs on Linux, OS X, FreeBSD, and Windows, and its applications are written in JavaScript. Node.js applic…

[j2me]手机也可以玩播客(Podcasting On Mobile)!开源开发说明

[J2ME] 手机也可以玩播客(Podcast)! Geek说明摘要:本文档给出iPodderX on Mobile 之Kjava版本的Geek说明。第1章 简单描述这个iPodderX的功能和特别之处。第2章 给出了 这个iPodderX的下载资源。我的IPodderX on Mobile资源:1:《[…

4G时代:手机不仅是电话

本报记者 朱伟 张晓鸣题记美国东部时间6月4日。上午7点不到,全美第三大移动运营商Sprint公司位于曼哈顿西23街Flatiron大厦底层的营业厅门前,已经排起了一条300多人的等候长龙。热情的发烧友们此时表现得很安静,尽管他们即将见证一个历史时刻…

hm-geosphere!也许算是web2.0的一个创意了

http://hm-geosphere.sourceforge.net/在你的页面上加入下面这样的代码&#xff0c;你就可以得到我的blog左边那个能用鼠标转动的地球的效果&#xff0c;可以添加你的坐标&#xff0c;这也算是一个web2.0的创意了。hm-geosphere盛装演示<script language"JavaScript&qu…

Android项目实战系列—基于博学谷(一)项目综述

一、项目分析 1、项目名称 WordPress建站APP 2、项目概述 WordPress建站是一个学习博客建站技术的APP&#xff0c;主要讲述WordPress建站过程。APP基于黑马程序员的博学谷自学助手项目进行开发和创新。是移动高级开发课程的学生自主设计项目。博客内容会讲述APP的原型设计、…

ldflags_使用ldflags设置Go应用程序的版本信息

ldflags介绍 (Introduction) When deploying applications into a production environment, building binaries with version information and other metadata will improve your monitoring, logging, and debugging processes by adding identifying information to help tra…

[J2ME]手机看交通监视器实时录像 实现说明

[J2ME] 手机看交通监视器实时录像实现说明摘要&#xff1a;本文档给出Mobile TrafficCam Viewer的实现说明。第1章 简单描述Mobile TrafficCam Viewer的功能和特别之处。第2章 给出了 Mobile TrafficCam Viewer的下载资源。1背景、功能和特别之处摘要&#xff1a;本章 简单描述…