angelozerr / codemirror-lint-eslint Goto Github PK
View Code? Open in Web Editor NEWCodeMirror Lint addon to use ESLint
License: MIT License
CodeMirror Lint addon to use ESLint
License: MIT License
I have done npm install of codemirror, eslint and codemirror-lint-eslint
In a .js file I have:
window.CodeMirror = require("codemirror") //now in index.html because this didn't work
require("codemirror/mode/javascript/javascript")
require("eslint")
require("codemirror/addon/lint/lint.js")
require("codemirror-lint-eslint")
I get an error in the file: eslint-lint.js, line 166
var errors = eslint.verify(text, config);
where eslint is bound, but verify is not.
I have also tried commenting out my requires for eslint and lint,
in which case I get no error from my require("codemirror-lint-eslint"),
but I don't see any red dots appearing in my codemirror editor left margin either
indicating js errors.
Help greatly appreciated!
Thanks man for this file, you saved me hours of time, greatly appreciated!
The last commit to this repo is a while back now, and ESLint rule keys have since changed. I could submit a pull request, but the updates I made are for a specific project, and I'm not sure I tripped all of out of date keys.
Thanks!!!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.