Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

Commit

Permalink
Add eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
kddnewton committed Mar 3, 2019
1 parent a9082d2 commit b2a7596
Show file tree
Hide file tree
Showing 4 changed files with 599 additions and 25 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/coverage/
13 changes: 13 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "airbnb",
"env": {
"jest": true,
"node": true
},
"rules": {
"arrow-body-style": ["error", "as-needed"],
"arrow-parens": ["error", "as-needed"],
"comma-dangle": ["error", "never"],
"quotes": ["error", "double"]
}
}
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
"description": "prettier plugin for the Ruby programming language",
"main": "src/ruby.js",
"scripts": {
"test": "jest",
"lint": "eslint .",
"print": "prettier --plugin=.",
"rubocop": "run() { prettier --plugin=. $@ | bundle exec rubocop --stdin $1; }; run"
"rubocop": "run() { prettier --plugin=. $@ | bundle exec rubocop --stdin $1; }; run",
"test": "jest"
},
"repository": {
"type": "git",
Expand All @@ -23,6 +24,11 @@
},
"devDependencies": {
"all-contributors-cli": "^6.1.2",
"eslint": "^5.14.1",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.16.0",
"eslint-plugin-jsx-a11y": "^6.2.1",
"eslint-plugin-react": "^7.12.4",
"jest": "^24.0.0"
},
"engines": {
Expand Down
Loading

0 comments on commit b2a7596

Please sign in to comment.