Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/eddieantonio/eslint-plugin-stringly-typed
- Owner: eddieantonio
- License: mit
- Created: 2016-11-27T19:41:13.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2016-11-28T22:38:50.000Z (almost 8 years ago)
- Last Synced: 2024-10-07T11:37:09.063Z (about 1 month ago)
- Topics: eslint, javascript, linter, stringly-typed, strings, url
- Language: JavaScript
- Size: 29.3 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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