Giter Club home page Giter Club logo

tslint-plugin-relay's People

Contributors

alloy avatar ashfurrow avatar damassi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

damassi ashfurrow

tslint-plugin-relay's Issues

Support for ESLint?

Now that TSLint is deprecated in favor of ESLint, is there any interest in porting this project to ESLint? I realize that may sound odd because eslint-plugin-relay exists, but that project appears to be intended for Flow-based projects. I'd be happy to see if that project is interested in adopting the TypeScript rules from here, but if they don't want to, is there any interest in retargeting this project for ESLint so those migrating from TSLint can retain Relay linting?

Relay Compatibility Mode variable linting

eslint-plugin-relay does this here: https://github.com/relayjs/eslint-plugin-relay/blob/master/src/rule-compat-uses-vars.js

It enforces conventions used by Relay Compatibility Mode. It does the following:

  • requires @relay(mask: false) for locally-defined fragments (fragments that aren't defined in fragment containers).
  • requires locally-defined fragments to be stored in matching variable names.
  • locally-defined fragments must be used (no unused variables).

Borrow rules from eslint-plugin-relay

I'm going to look at eslint-plugin-relay's rules and see what makes sense to port over. I'll list them here and work away on them.

Edit: here's a list of their rules:

  • rule-compat-uses-vars.js (#16)
  • rule-generated-flow-types.js (#15)
  • rule-graphql-naming.js (#14)
  • rule-graphql-syntax.js (#12)
  • rule-no-future-added-value.js (#13)

I'll check them off as I browse rules.

Figure out testing

How do we test custom linting rules? This will be important as we add new rules and accept contribution from external contributors.

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.