question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add wildcard support to new-cap: capIsNewExceptions

See original GitHub issue

In some cases it would be nice to be able to specify to ignore a whole library for instance.

I ran into this problem when using sequelize types.

eg.

        type: {
            type: Sequelize.ENUM('something'), // <- error here
            allowNull: false,
        },

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:27 (21 by maintainers)

github_iconTop GitHub Comments

4reactions
anniecommented, Jul 25, 2016

i can continue work on this since that PR was never merged!

0reactions
ljharbcommented, Mar 10, 2016

consistency wins, fair enough

Read more comments on GitHub >

github_iconTop Results From Across the Web

ESLint: How to set "new-cap" rule's "capIsNewExceptions ...
Try /*eslint new-cap: [2, {capIsNewExceptions: ["S"]}]*/ var S = require("string"); var lines = S(text).lines();.
Read more >
Support for wildcard domains - Azure Front Door
In this article. In this article; Add a wildcard domain and certificate binding; WAF policies; Routing rules; Next steps.
Read more >
new-cap - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
00시 00분 자동으로 데이터를 받아와서 datas 폴더에 년.월.시간 ...
Add or subtract day if not day of week is set (and no match) and day of month is wildcard. if (isDayOfMonthWildcardMatch &&...
Read more >
Download Diff File
NOTE: `reviver` parameter is not supported yet, but will be added in next releases. ... @since 0.0.3-0 - * @see https://eslint.org/docs/rules/new-cap ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found