Code Monkey home page Code Monkey logo

eslint-config-tc's People

Contributors

abby-huisman avatar dependabot-preview[bot] avatar dependabot[bot] avatar phil-rw avatar pohnemus avatar tclindner avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

eslint-config-tc's Issues

Consider tweaking the import/no-extraneous-dependencies rule

Not sure we should do this, but I've seen a few repos doing it and it seems like it might be valuable for us. Would need to tweak the extension.

'import/no-extraneous-dependencies': ['error', {devDependencies: ['**/test/*.ts'], peerDependencies: false}],

eslint 7

I saw that eslint-config-airbnb-base has been updated to support eslint 7. What other dependencies do we need to see updated before we take the plunge?

Move jest config to extends instead of overrides

  • Adds the other new "recommended" rules from v24 (why don't we just use their recommendations?)

Right now we do everything in overrides, which don't support extends. We can add the jest rules so they apply to all files. What do you think?

Yea that's fine. Just seems like unnecessary maintenance.

Originally posted by @pohnemus in #219 (comment)

Tasks

  • Add Jest recommended (plugin:jest/recommended) config to extends section. See https://www.npmjs.com/package/eslint-plugin-jest#recommended
  • Remove all jest/* rules from overrides - https://github.com/tclindner/eslint-config-tc/blob/master/index.js#L41
  • Move the following rules to a new jest file in the rules directory. jest/no-alias-methods, jest/no-duplicate-hooks, jest/no-if, jest/no-large-snapshots, jest/no-test-return-statement, jest/prefer-called-with, jest/prefer-hooks-on-top, jest/prefer-strict-equal, jest/prefer-to-be-null, jest/prefer-to-be-undefined, jest/prefer-to-contain, jest/prefer-to-have-length, jest/prefer-todo, jest/require-to-throw-message, and jest/require-top-level-describe.

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.