GithubHelp home page GithubHelp logo

zhangpaopao0609 / format-import Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 993 KB

vscode 插件,用于规范项目中模块引用方法、组件

License: MIT License

JavaScript 20.68% TypeScript 79.32%

format-import's Introduction

format-import

Beta

Plugin's page on Visual Studio Marketplace

This extension is used to check the import method of non best practices in the project, give error prompts and provide one click repair function (Under development)

Click to view the 'import' of best practices (Under development)

Usage

  1. Install extension at vscode Search format import and install in the marketplace.

  2. Add import.json in the root directory of the project Users can customize and configure some special fields for this extension via import.json. If there are no special configuration items, this file is not required.

    Configuration reference

    {
      "alias": {
        "@": "src"
      },
      "whiteDirName": ["effects"]
    }
    
    field description type options
    alias path abbreviation object -
    whiteDirName directory whitelist during import string[]
  3. Get the path of all documents with 'import' problem

  • press: Ctrl/Command+Shift+p
  • input: format-import.checkAll

Commands

Command description
format-import.checkAll check all 'problem'
format-import.rules displays the best practices document for import

format-import's People

Contributors

zhangpaopao0609 avatar

Stargazers

蒋国帅 avatar  avatar

Watchers

 avatar

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.