Code Monkey home page Code Monkey logo

eslint-plugin-prefix-types's Introduction

eslint-plugin-prefix-types's People

Contributors

kwaimind avatar

Stargazers

 avatar  avatar

Watchers

 avatar

eslint-plugin-prefix-types's Issues

Feature Request: autofix type usages too

If I have

interface Foo { }
const f = {} as Foo

and autofix, it only fixes the interface, leaving the as Foo in an zombie state, forcing me to run the eslint/tsc run twice and then I have to manually change all the usages to match the new interface name.

It would be awesome if this plugin could also fix all usages (like WebStorm does when 'Refactoring'). Even if it's only in the current file or glob as given to eslint.

Bug: eslint-ignore-next-line is not honored

I found a strange one:

image

The code I have is

// eslint-ignore-next-line prefix-types/prefer-interface-prefix
interface IMatch {
  text: string
  start: number
  end: number
}

and the eslintrc is

    "prefix-types/prefer-interface-prefix": ["error", { "allow": "never" }],
    "prefix-types/prefer-type-prefix": ["error", { "allow": "never" }],
    "prefix-types/prefer-styled-component-prefix": ["error", { "allow": "never" }],

Feature request: Negation

Hi I am the opposite - I do not want to allow IInterface, TType etc into my codebase. Could you support a negate: true?

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.