Giter Club home page Giter Club logo

eslint-plugin-syntax-ban's Introduction

eslint-plugin-syntax-ban

  • 本文用于讲解如何禁用 JS 语法的 eslint plugin 的实现,以及使用。详细讲解

Example

在前端工程中禁用 console.time()Object.value() 方法。支持开发者继续拓展~

How to use

yan add eslint-pulgin-syntax-ban

or

npm install eslint-plugin-syntax-ban -D

How to config

.eslintrc.js 使用插件所有规则:

module.exports = {
    extends: [
+        'plugin:eslint-plugin-syntax-ban/recommended'
    ],
+    plugins: [
+        'syntax-ban' // 可省略 `eslint-plugin-` 前缀
+    ],
};

或单独使用插件中的条规则:

module.exports = {
+    plugins: [
+        'syntax-ban' // 可省略 `eslint-plugin-` 前缀
+    ],
+    rules: {
+        "syntax-ban/no-object-values": "error",
+    }
};

eslint-plugin-syntax-ban's People

Contributors

xsf0105 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

cloudyan

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.