Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/uzitech/eslint-linter-browserify
Use eslint in the browser
https://github.com/uzitech/eslint-linter-browserify
Last synced: 19 days ago
JSON representation
Use eslint in the browser
- Host: GitHub
- URL: https://github.com/uzitech/eslint-linter-browserify
- Owner: UziTech
- License: mit
- Created: 2020-01-31T19:40:58.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-04-12T10:41:59.000Z (7 months ago)
- Last Synced: 2024-04-14T09:45:19.440Z (7 months ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/eslint-linter-browserify
- Size: 4.81 MB
- Stars: 21
- Watchers: 4
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# eslint-linter-browserify
Use eslint in the browser```js
import * as eslint from "eslint-linter-browserify";// or const eslint = require("eslint-linter-browserify");
// or
// orconst linter = new eslint.Linter();
const messages = linter.verify("var foo;", {
rules: {
semi: ["error", "never"]
}
}, { filename: "foo.js" });console.log(messages);
```https://eslint.org/docs/developer-guide/nodejs-api#linter
See the [CodeMirror example](./example) for a way to use this in [CodeMirror](https://codemirror.net).