code-mirror-linter

WebJar for code-mirror-linter

License

License

Categories

Categories

CLI User Interface Mirror Application Layer Libs Introspection
GroupId

GroupId

org.webjars.bowergithub.advanced-rest-client
ArtifactId

ArtifactId

code-mirror-linter
Last Version

Last Version

2.0.2
Release Date

Release Date

Type

Type

jar
Description

Description

code-mirror-linter
WebJar for code-mirror-linter
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/advanced-rest-client/code-mirror-linter

Download code-mirror-linter

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/code-mirror-linter/ -->
<dependency>
    <groupId>org.webjars.bowergithub.advanced-rest-client</groupId>
    <artifactId>code-mirror-linter</artifactId>
    <version>2.0.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/code-mirror-linter/
implementation 'org.webjars.bowergithub.advanced-rest-client:code-mirror-linter:2.0.2'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.advanced-rest-client/code-mirror-linter/
implementation ("org.webjars.bowergithub.advanced-rest-client:code-mirror-linter:2.0.2")
'org.webjars.bowergithub.advanced-rest-client:code-mirror-linter:jar:2.0.2'
<dependency org="org.webjars.bowergithub.advanced-rest-client" name="code-mirror-linter" rev="2.0.2">
  <artifact name="code-mirror-linter" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.advanced-rest-client', module='code-mirror-linter', version='2.0.2')
)
libraryDependencies += "org.webjars.bowergithub.advanced-rest-client" % "code-mirror-linter" % "2.0.2"
[org.webjars.bowergithub.advanced-rest-client/code-mirror-linter "2.0.2"]

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.bowergithub.polymer : polymer jar [2.0.0,3)
org.webjars.bowergithub.components : codemirror jar [5.35.0,6)
org.webjars.bowergithub.zaach » jsonlint jar [1.6.0,2)

Project Modules

There are no modules declared in this project.

Build Status

Sets of linters for advanced-rest-client/code-mirror

Usage

Installation

npm install --save @advanced-rest-client/code-mirror-linter

In a LitElement

import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/code-mirror/code-mirror.js';
import '@advanced-rest-client/code-mirror-linter/code-mirror-linter-json';
import linterStyles from '@advanced-rest-client/code-mirror-linter/lint-style.js';

class SampleElement extends PolymerElement {
  static get styles() {
    return [
      linterStyles,
      css`:host { ... }`
    ];
  }

  render() {
    const gutters = ['CodeMirror-lint-markers'];
    return html`
    <code-mirror
      mode="application/json"
      linenumbers
      .gutters="${gutters}"
      .lint="${CodeMirror.lint.json}">
      {
        "a": 'b',
        "value": true
      }
      </code-mirror>
    `;
  }

  _valueHandler(e) {
    this.value = e.detail.value;
  }
}
customElements.define('sample-element', SampleElement);

Development

git clone https://github.com/advanced-rest-client/code-mirror-linter
cd code-mirror-linter
npm install

Running the demo locally

npm start

Running the tests

npm test

API components

This components is a part of API components ecosystem

org.webjars.bowergithub.advanced-rest-client

ARC

A set of repositories related to the Advanced REST Client and API console (by Mulesoft)

Versions

Version
2.0.2