Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eddieantonio/eslint-plugin-stringly-typed

Finds and fixes embarrassing stringly-typing
https://github.com/eddieantonio/eslint-plugin-stringly-typed

eslint javascript linter stringly-typed strings url

Last synced: 27 days ago
JSON representation

Finds and fixes embarrassing stringly-typing

Awesome Lists containing this project

README

        

ESLint-plugin-stringly-typed
=============================

[![Build Status](https://travis-ci.org/eddieantonio/eslint-plugin-stringly-typed.svg?branch=master)](https://travis-ci.org/eddieantonio/eslint-plugin-stringly-typed)

Detects and fixes instances of stringly-typed!

[What's does it mean to be stringly typed?][stringly-typed]

[stringly-typed]: http://wiki.c2.com/?StringlyTyped

## Installation

You'll first need to install [ESLint](http://eslint.org):

```
$ npm i eslint --save-dev
```

Next, install `eslint-plugin-stringly-typed`:

```
$ npm install eslint-plugin-stringly-typed --save-dev
```

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

## Usage

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

```json
{
"plugins": [
"stringly-typed"
]
}
```

Then configure the rules you want to use under the rules section.

```json
{
"rules": {
"stringly-typed/no-bare-url": "error"
}
}
```

## Supported Rules

* [stringly-typed/no-bare-url](docs/rules/no-bare-url.md): Prevent usage of bare URLs