Skip to content

Commit

Permalink
feat(plugin-algolia): Add eslint-plugin-algolia
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerska committed Dec 2, 2015
1 parent 7b98bd3 commit 395ce7a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ We [extend](http://eslint.org/docs/user-guide/configuring.html#extending-configu
## Usage

```sh
npm install eslint eslint-config-algolia eslint-config-airbnb eslint-plugin-react babel-eslint --save-dev
npm install eslint eslint-config-algolia eslint-plugin-algolia eslint-config-airbnb eslint-plugin-react babel-eslint --save-dev
```

create an `.eslintrc` file:
Expand Down
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ module.exports = {
'eslint:recommended',
'airbnb',
'algolia/rules/base',
'algolia/rules/plugin',
'algolia/rules/react'
]
};
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"eslint": "^1.7.3",
"eslint-config-airbnb": "^0.1.0",
"eslint-config-algolia": "latest",
"eslint-plugin-algolia": "^1.0.1",
"eslint-plugin-react": "^3.6.3"
}
}
}
7 changes: 7 additions & 0 deletions rules/plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
parser: 'babel-eslint',
plugins: ['algolia'],
rules: {
'relative-require': 2
}
};

0 comments on commit 395ce7a

Please sign in to comment.