Skip to content

Commit

Permalink
Add eslint plugin for Ava
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Apr 9, 2016
1 parent faafee7 commit 5ab7a0c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{
"parser": "babel-eslint",
"extends": "eslint-config-airbnb",
"extends": [
"eslint-config-airbnb",
"plugin:ava/recommended"
],
"plugins": [
"ava"
],
"rules": {
"indent": [2, 2, {"SwitchCase": 1}],
"no-console": [0],
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@
"ava": "^0.14.0",
"babel-cli": "^6.6.5",
"babel-eslint": "^6.0.0",
"eslint": "^2.4.0",
"eslint": "^2.7.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-ava": "^2.0.1",
"eslint-plugin-react": "^4.2.1"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion test/utils/build-page/url-resolver.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ test('if not an index create a path like /foo/bar/', t => {
t.is(pagePath, '/blog/2016/creating-static-websites/')
})

test('if not an index create a path like /foo/bar/', t => {
test('if not an index create a path like /foo/bar/ from file at root', t => {
const parsedPath = { name: 'about-us', dirname: '' }
const data = {}
const pagePath = urlResolver(data, parsedPath)
Expand Down

0 comments on commit 5ab7a0c

Please sign in to comment.