eslint-plugin-geojson

2.0.0 • Public • Published

eslint-plugin-geojson

Build Status Code Climate

THIS IS NOT THE MODULE YOU ARE LOOKING FOR!!

What's going on?

This module exists for security awareness and training purposes to raise awareness to typosquatting. Typosquatting is when a malicious package disguises itself as a legitimate one.

Installed malicious packages can take over your machine. Learn more. This has happened before numerous times.

You probably want eslint-plugin-json instead. There is currently no eslint-plugin-geojson package. If you want to develop one, email me and I'll release the name to you.


Lint geoJSON files

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-geojson:

$ npm install eslint-plugin-geojson --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-geojson globally.

Usage

Add geojson to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "geojson"
    ]
}

You can run ESLint on individual geoJSON files or you can use the --ext flag to add geoJSON files to the list.

eslint . --ext .json --ext .js
eslint example.json

Package Sidebar

Install

npm i eslint-plugin-geojson

Weekly Downloads

0

Version

2.0.0

License

ISC

Unpacked Size

2.53 kB

Total Files

2

Last publish

Collaborators

  • arlyn-bones