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.

Note if `/* exported */` applies when using `--no-inline-config`

See original GitHub issue

The version of ESLint you are using.

v6.8.0

The problem you want to solve.

Per the listing at https://eslint.org/docs/user-guide/command-line-interface#inline-configuration-comments :

All inline config comments are ignored

However, /* exported */ is not listed as being among these when using --no-inline-config. If it is prevented, it should be documented here, and if not, I think it should be called out as an exception (and why).

I think it would make sense to add it if it is not supported.

Your take on the correct solution to problem.

It is unclear.

Are you willing to submit a pull request to implement this change?

Not at this time.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
mdjermanoviccommented, Mar 12, 2020

In favor of exported being a directive, it also affects prefer-const:

/* eslint prefer-const: ["error"] */

let x = 1; // error

/* exported y */
let y = 1; // ok

Also, it’s handled by the core. Technically, it sets variable.eslintUsed = true.

1reaction
anikethsahacommented, Mar 11, 2020

However, if you mean adding an option to no-unused-vars to disable checking of exported, then this would at least allow --no-inline-config to prevent sites from overriding one’s disabling of the exported check, so I would personally be satisfied with that.

yes

Read more comments on GitHub >

github_iconTop Results From Across the Web

Command Line Interface - 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 >
Deemed Exports FAQs - What if the individual is a foreign ...
Can I apply for an export license if I'm not a U.S. citizen? ... Please note that the terms "required," "development," "production," "use,"...
Read more >
Legal - Global Trade Compliance - Apple
All Apple products are subject to the US Export Administration Regulations (EAR) when exported from the United States. The classifications provided below are ......
Read more >
eslint ignore
There are other ways to ignore files with ESLint, too. If this file is found, then When ESLint is run, it looks in...
Read more >
General rules to determine the origin of your products for trade ...
Procedure for applying full cumulation. Where an exported good has got its originating status through the application of full bilateral ...
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