Comments (12)
Seems like bad-string-regex-arg not exist in Deepscan, is it bad-regexp-literal-in-string?
Oops, I combined these two:
since they are the same thing
from oxc.
@mysteryven You can also implement any deepscan rule that interest you 😁
from oxc.
@mysteryven thanks but, for example, I am not seeing deprecated rules like
no-catch-shadow
which are still supported by ESLint; It's probably a WIP/incomplete list.
Aha, the deprecated rules are folded, search the "Deprecated rules" and click the right arrow :)
from oxc.
May I pick some rules to implement?
from oxc.
Some interesting rules:
- no-irregular-whitespace - we can use the lexer to store these inside trivias
- no-unused-labels - build this inside the semantic analyzer
- require-yield - inside the semantic analyzer, keep track of functions and then mark the function node with a
NodeFlag::HasYield
when we see a yield - bad-xxx - these are the rules from deepscan, you can find their descriptions here: https://deepscan.io/docs/rules/
from oxc.
- require-yield - inside the semantic analyzer, keep track of functions and then mark the function node with a
NodeFlag::HasYield
when we see a yield
I just realized that if we have
var a = 1;
function *a() { return; }
The symbol table only stores the first var a = 1
declaration? Then it's not guaranteed we can check all the functions by just looking at the symbols.
from oxc.
The symbol table only stores
You visit the functions inside the linter, and then lookup the symbol via the node. But we need #225
Or we figure out all the edge cases for symbol declaration, which is really nasty ... I tried to follow TypeScript a while back, and I couldn't follow all the cases 😢
from oxc.
Seems like bad-string-regex-arg not exist in Deepscan, is it bad-regexp-literal-in-string?
from oxc.
I'm going to create another list for this.
from oxc.
Is there a list compiled of all the unimplemented ESLint rules?
Do I have compare the core rules with https://github.com/oxc-project/oxc/blob/main/crates/oxc_linter/src/rules.rs#L39?
from oxc.
Is there a list compiled of all the unimplemented ESLint rules? Do I have compare the core rules with
main
/crates/oxc_linter/src/rules.rs#L39?
This issue is a list of rule's implementation status : #479
from oxc.
@mysteryven thanks but, for example, I am not seeing deprecated rules like no-catch-shadow
which are still supported by ESLint; It's probably a WIP/incomplete list.
from oxc.
Related Issues (20)
- Alternative API for getting `TraverseCtx` in HOT 3
- bug(parser): Parsing computed member expressions inside decorators fails
- eslint-plugin-regexp
- oxc_traverse: cannot publish the build script HOT 1
- Fast path for parsing decimal literals HOT 3
- Change type of padding in lexer `Token`? HOT 1
- Linter: Error when setting initial state in constructor of class component HOT 4
- Convert lexer to iterate over bytes instead of chars
- Convert simple byte handlers in lexer to branchless code
- CI: add oxlint-ecosystem-ci action to the main repo. HOT 2
- linter: option to disable oxc and deepscan rules HOT 2
- linter: map rules of hooks to react-hooks HOT 1
- Niche Optimization for `Option<ReferenceId>` and `IndexVec<ReferenceId, T>` HOT 7
- react/jsx-no-undef consistency HOT 4
- Parser Fuzz Errors
- linter: panic in `jest/expect-expect` HOT 3
- linter: panic in `jest/no_conditional_expect`
- Incorrect reference flags for `x++` and `x--` HOT 1
- React false positive in a pure Vue application HOT 3
- linter: configuration file json schema 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 oxc.