eslint-plugin-rdf
Linting rules for RDF/JS projects.
Installation
Install
npm install --save-dev eslint-plugin-rdfEdit
.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.