Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tpluscode/eslint-plugin-rdf
https://github.com/tpluscode/eslint-plugin-rdf
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tpluscode/eslint-plugin-rdf
- Owner: tpluscode
- License: mit
- Created: 2024-06-27T14:16:56.000Z (6 months ago)
- Default Branch: master
- Last Pushed: 2024-06-28T08:09:52.000Z (6 months ago)
- Last Synced: 2024-10-05T13:22:24.655Z (3 months ago)
- Language: JavaScript
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-rdf
Linting rules for RDF/JS projects.
## Installation
1. Install
```shell
npm install --save-dev eslint-plugin-rdf
```2. Edit `.eslintrc`
```json
{
"extends": [
"plugin:rdf/recommended"
],
"plugins": [
"rdf"
]
}
```## Rules
### `rdf/ban-rdf-js`
🔧 This rule is automatically fixable by the [`--fix` CLI option][fix].
The `rdf-js` package is deprecated. Its usages should be replaced with `@rdfjs/types`.
#### Fail
```ts
import { DataFactory } from 'rdf-js'
import type { NamedNode } from 'rdf-js'
import * as RDF from 'rdf-js'
```#### Pass
```ts
import { DataFactory } from '@rdfjs/types'
import type { NamedNode } from '@rdfjs/types'
import * as RDF from '@rdfjs/types'
```#### Options
This rule has no options.
[fix]: https://eslint.org/docs/latest/user-guide/command-line-interface#--fix