Comments (10)
My bad, we use both Esprima and Babel, eslintrc is instead used for ESLintTraverser (for AST parsing). Babel's plugins should be set in:
electronegativity/src/parser/parser.js
Lines 29 to 40 in 4db147d
from electronegativity.
You may want to try to install the Babel's optionalChaining
experimental plugin and add it to the Electronegativity's.eslintrc.json
file. In Electronegativity, parsers are not that configurable per-se (I can only think about this .eslintrc.json
file and maybe some options where they are instantiated), so I'm afraid that if the above doesn't work you'll need to actually edit Electronegativity's/Babel's plugin source to achieve that.
from electronegativity.
That's a huge help! Thanks so much!
I'll mark this as unread and when I get a chance to look into this further I'll report back.
from electronegativity.
Hi Guys, any news on this issue?
from electronegativity.
I'm thinking about adding a command line option to specify additional parser plugins. That way plugins can be specified at run time, or by using the programmatic interface.
from electronegativity.
We're eager to adopt electronegativity – are you planning to release a version with this feature?
from electronegativity.
Thanks for your reply @phosphore!
That's an interesting idea that I'll look into. Did you mean the .babelrc
file though? Or does Electronegativity's parsing somehow rely on .eslintrc.json
?
from electronegativity.
Sorry about the delay merging this! Now 2d2cc9b is in master!
from electronegativity.
I'll be working on the repository this incoming week and I'll release a new minor before EOW!
from electronegativity.
Amazing, thank you!!
from electronegativity.
Related Issues (20)
- Error when run programmatically
- AVAILABLE_SECURITY_FIXES_GLOBAL_CHECK false positives HOT 1
- Failed to read data with length of .... HOT 5
- error: Unknown Electron release "25.2.x" HOT 1
- broken "references" links HOT 1
- Exit code when finding any issues in cli mode
- Guideline for handling False Positives / False Negatives HOT 3
- Allow annotations in source code to ignore a check HOT 7
- ENOENT: no such file or directory -4058 - Path exceeds 256 characters HOT 1
- Cannot manually whitelist PERMISSION_REQUEST_HANDLER_GLOBAL_CHECK if using a partition HOT 2
- How does one ignore LIMIT_NAVIGATION_GLOBAL_CHECK? HOT 2
- Fails to install 1.8.1 on Ubuntu HOT 5
- eng-disable CSP_GLOBAL_CHECK not working HOT 7
- Update Wiki Page about Context Isolation HOT 1
- Don't publish npm-shrinkwrap.json HOT 8
- Support the setWindowOpenHandler API in Electron 12+ HOT 6
- Allow `eng-disable` comments to be placed above lines of code
- package.json `config` can contain non-strings HOT 1
- Yarn 2 Support
- Exclude from scan option throwing errors 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 electronegativity.