Comments (3)
Well, It has worked. Thank you!
from linters-config.
Hi @OlukaDenis, thanks for raising this issue.
It is OK to disable some rules when there is no way around it, but please don't do it on your .esling.config.js
, just add a disable comment next to the line you want to disable and with the specific rule you want to disable: https://eslint.org/docs/user-guide/configuring#disabling-rules-with-inline-comments
So, in your case, you can add the following comment above the offending line:
// eslint-disable-next-line no-unresolved
import '@fortawesome/fontawesome-free/js...';
Doing it this way makes it clear you are making a valid choice there because there is no way around, and you don't have to modify the ESLint configuration provided. If you disable it on the whole file with a comment, or in the ESLint configuration, then it won't be clear why you are disabling it and if it is a valid choice to do it.
You can use this same method for other cases when there is no way around.
Please let us know if this works for you.
from linters-config.
Sorry, I close it by accident 😄 .
from linters-config.
Related Issues (20)
- Please add /dist in line 20 of linters.yml
- Constant : Obsolete linters configuration file
- Ubuntu 18.04 depreciation HOT 1
- Linters config update HOT 1
- Warning: obsolete parameter `IgnoredMethods` in .robocop.yml file
- @-rule issues with plain SASS
- Setup Ruby action deprecation
- Please Update stylelintrc.json to include Tailwind CSS compiled file in 'ignoreFiles' key.
- Should hint linters throw an error on this line?
- Disabling Javascript "Line Break Style" Rule
- Ruby Lintes install
- Warning in rubocop.yml HOT 1
- linters.yml file throws "Lighthouse" error HOT 1
- Remove Template Literal HOT 2
- Linter/Eslint Configuration for React-Redux
- .rubocop.yml HOT 2
- Webhint Error [ERR_REQUIRE_ESM] HOT 4
- HTML & CSS3 Course - please edit
- Issue on npx hint .
- Outdated Ruby linter HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linters-config.