Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: enable eslint for loopback-next monorepo
Browse files Browse the repository at this point in the history
raymondfeng committed Mar 26, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 298e015 commit b5537de
Showing 5 changed files with 544 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules/
dist/
coverage/
api-docs/
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['./packages/eslint-config/eslintrc.js'],
};
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ matrix:
env: TASK=code-lint
# Running Code Linter -- Requires @loopback/build so it's bootstrapped
script:
- lerna bootstrap --scope @loopback/build --scope @loopback/tslint-config
- lerna bootstrap --scope @loopback/build --scope @loopback/tslint-config --scope @loopback/eslint-config
- npm run lint
- node_js: "8"
os: linux
528 changes: 528 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -15,8 +15,14 @@
"@commitlint/config-conventional": "^7.5.0",
"@commitlint/travis-cli": "^7.5.0",
"@types/mocha": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^1.4.2",
"@typescript-eslint/parser": "^1.4.2",
"coveralls": "^3.0.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.14.1",
"eslint-config-prettier": "^4.1.0",
"eslint-plugin-eslint-plugin": "^2.0.1",
"eslint-plugin-mocha": "^5.3.0",
"husky": "^1.3.1",
"lerna": "^3.13.0",
"tslint": "^5.12.0",
@@ -39,6 +45,8 @@
"coverage": "open coverage/index.html",
"lint": "npm run prettier:check && npm run tslint",
"lint:fix": "npm run tslint:fix && npm run prettier:fix",
"eslint": "node packages/build/bin/run-eslint .",
"eslint:fix": "npm run eslint -- --fix",
"tslint": "node packages/build/bin/run-tslint --project tsconfig.json",
"tslint:fix": "npm run tslint -- --fix",
"prettier:cli": "node packages/build/bin/run-prettier \"**/*.ts\" \"**/*.js\" \"**/*.md\"",

0 comments on commit b5537de

Please sign in to comment.