Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[development] add linting #346

Merged
merged 3 commits into from
Sep 7, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
geekplux marked this conversation as resolved.
Show resolved Hide resolved
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