Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/santi/eslint-plugin-robber-language
Eslint rules for robbers
https://github.com/santi/eslint-plugin-robber-language
eslint eslintplugin robber-language
Last synced: 28 days ago
JSON representation
Eslint rules for robbers
- Host: GitHub
- URL: https://github.com/santi/eslint-plugin-robber-language
- Owner: santi
- License: mit
- Created: 2017-07-30T20:23:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-09T13:12:14.000Z (about 7 years ago)
- Last Synced: 2024-09-17T15:05:29.731Z (about 2 months ago)
- Topics: eslint, eslintplugin, robber-language
- Language: JavaScript
- Homepage:
- Size: 35.2 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-plugin-robber-language
Robber Language is a secret code language made popular in the books about
Kalle Blomkvist (Eng: Bill Bergson) by Astrid Lindgren in the 1940s and 1950s.The Robber Language is spoken by robbers, where every consonant is
doubled, with an 'o' added in-between. This provides for a code language that
is quick and easy to learn, but hard for an untrained ear to understand.This plugin provides linting rules so that robbers are able to write their
code without anyone else understanding it.## Installation
You'll first need to install [ESLint](http://eslint.org):
```
$ npm i eslint --save-dev
```Next, install `eslint-plugin-robber-language`:
```
$ npm install eslint-plugin-robber-language --save-dev
```**Note:** If you installed ESLint globally (using the `-g` flag) then you must also install `eslint-plugin-robber-language` globally.
## Usage
Add `robber-language` to the plugins section of your `.eslintrc` configuration file. You can omit the `eslint-plugin-` prefix:
```json
{
"plugins": [
"robber-language"
]
}
```Then configure the rules you want to use under the rules section.
```json
{
"rules": {
"robber-language/variables": "warn"
}
}
```### Supported Rules
* `robber-language/variables`
* `robber-language/functions`
* `robber-language/objects`
* `robber-language/import`## Recommended configuration
This plugin also exports a set of recommended configuration options for the rules.
To use the recommended configuration, add the following under the extends section.```json
{
"extends": {
"plugin:robber-language/recommended"
}
}
```## Fixing
All rules support automatic fixing of linting errors. To automatically fix the errors,
apply the `--fix` flag when using `eslint` from the command line.**Warning:** Automatic fixing only fixes declaration errors. Identifiers used
at a later point are not touched.