Skip to content

Commit

Permalink
Merge pull request #346 from geekplux/development/add_linting
Browse files Browse the repository at this point in the history
[development] add linting
  • Loading branch information
hshoff authored Sep 7, 2018
2 parents c55fe5d + 47d534b commit 09d89cb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 2 deletions.
14 changes: 14 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.DS_Store
node_modules
build
dist
bundle.js
test/tmp
*.log
*.cache
/.eslintcache
.next
coverage
package-lock.json
npm-shrinkwrap.json
yarn.lock
15 changes: 13 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,21 @@
"docs": "node ./scripts/docs/index.js",
"prepare-release": "git checkout master && git pull --rebase origin master && npm run docs && lerna updated",
"release": "npm run prepare-release && lerna publish --exact",
"format": "prettier \"{packages,scripts}/**/*.js\" --write",
"lint": "eslint \"{packages,scripts}/**/*.js\"",
"lint:fix": "eslint \"{packages,scripts}/**/*.js\" --fix",
"format": "prettier-eslint \"{packages,scripts}/**/*.js\" --write",
"precommit": "lint-staged"
},
"eslintConfig": {
"extends": "airbnb"
},
"prettier": {
"printWidth": 100,
"singleQuote": true
},
"lint-staged": {
"*.js": [
"prettier --write",
"prettier-eslint --write",
"git add"
]
},
Expand Down Expand Up @@ -47,13 +52,19 @@
"devDependencies": {
"babel-jest": "^20.0.3",
"coveralls": "^2.13.1",
"eslint": "^5.5.0",
"eslint-config-airbnb": "^17.1.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-jsx-a11y": "^6.1.1",
"eslint-plugin-react": "^7.11.1",
"fs-jetpack": "^1.3.0",
"husky": "^0.14.3",
"jest": "^20.0.3",
"lerna": "2.1.2",
"lint-staged": "^7.0.4",
"marked": "^0.3.19",
"prettier": "^1.12.1",
"prettier-eslint-cli": "^4.7.1",
"react": "^15.0.0-0 || ^16.0.0-0",
"react-dom": "^15.0.0-0 || ^16.0.0-0",
"regenerator-runtime": "^0.10.5"
Expand Down

0 comments on commit 09d89cb

Please sign in to comment.