Comments (3)
the plugin is not maintained by eslint team. please file it in https://github.com/typescript-eslint/typescript-eslint.
from eslint.
@aladdin-add I did mean prefer-destructuring
and accidentally left in @typescript-eslint
. I've updated the post accordingly. Could you please reopen?
from eslint.
const selectedCost = costs[index_ - 1]
fixes to
const {[index_ - 1]: selectedCost} = costs
this example is a bit confusing, while const selectedCost = costs[index_ - 1];
accesses an array element directly, the fix const {[index_ - 1]: selectedCost} = costs;
suggests object destructuring, which is not applicable to arrays
can you please add some code example you want to have suggestions for with appropriate fixes?
from eslint.
Related Issues (20)
- Rule Change: Should `no-magic-numbers` be moved out of core HOT 2
- Bug: object-shorthand auto-fix removes comments HOT 3
- Bug: Flat config ignores option dont work HOT 1
- Change Request: New eslint cli option HOT 1
- ESLint hangs indefinitely, no errors HOT 4
- Docs: no-restricted-imports HOT 5
- Change Request: `release-please` should create release only for certain tags HOT 5
- Change Request: Add feature flag capabilities to ESLint HOT 9
- Bug: can't run a single ESLint rule in CLI after migrating to flat config HOT 7
- Docs: Give example for adding meta.name and meta.version to plugin config HOT 6
- Bug: Imports fail in flat config file when ESLint installed elsewhere HOT 3
- Bug: cannot select node within init script
- Issue: pattern is being ignored
- Docs: func-style docs are confusing HOT 1
- Docs: Unexpected file matching behavior when using `ignores` without `files` HOT 12
- Bug: No files matching the pattern "linebreak-style: [2, windows]" were found. HOT 3
- Change Request: Add autofix for func-style HOT 7
- Scheduled release for May 31st, 2024 HOT 1
- Bug: --inspect-config should always download the latest @eslint/config-inspector? HOT 5
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 eslint.