LivelyKernel / LivelyKernel/lively4-core

lint support for our syntax

Open
#293 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

comp: base system comp: tools comp: transpilation P3: important
Dominant language
JavaScript
Stars
89
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Problem `foo::bar()` is marked as an parsing error by eslint's esprima parser.

We should can plugin a custom parser that behaves like esprima, e.g.
[babe-eslint](https://github.com/babel/babel-eslint).

But this packag requires Babel7.

```
"dependencies": {
"@babel/code-frame": "7.0.0-beta.36",
"@babel/traverse": "7.0.0-beta.36",
"@babel/types": "7.0.0-beta.36",
"babylon": "7.0.0-beta.36",
"eslint-scope": "~3.7.1",
"eslint-visitor-keys": "^1.0.0"
},
```

So should we update eventually? @onsetsu ?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ESLint parser integration and the package dependency configuration, then reproduce the parsing error with `foo::bar()`. Review the Babel 7-compatible parser option mentioned in the issue; done means the project syntax is accepted without an Esprima parsing error and the required dependencies are consistent.

Written by the indexing model from the issue text.

Assessment

Tech stack
eslint, javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.