eslint-plugin-rdf

1.0.1 • Public • Published

eslint-plugin-rdf

Linting rules for RDF/JS projects.

Installation

  1. Install
npm install --save-dev eslint-plugin-rdf
  1. Edit .eslintrc
{
    "extends": [
        "plugin:rdf/recommended"
    ],
    "plugins": [
        "rdf"
    ]
}

Rules

rdf/ban-rdf-js

🔧 This rule is automatically fixable by the --fix CLI option.

The rdf-js package is deprecated. Its usages should be replaced with @rdfjs/types.

Fail

import { DataFactory } from 'rdf-js'
import type { NamedNode } from 'rdf-js'
import * as RDF from 'rdf-js'

Pass

import { DataFactory } from '@rdfjs/types'
import type { NamedNode } from '@rdfjs/types'
import * as RDF from '@rdfjs/types'

Options

This rule has no options.

Readme

Keywords

Package Sidebar

Install

npm i eslint-plugin-rdf

Weekly Downloads

350

Version

1.0.1

License

MIT

Unpacked Size

3.74 kB

Total Files

4

Last publish

Collaborators

  • tpluscode