Skip to content

Commit

Permalink
chore(lint): moves linting into individual packages
Browse files Browse the repository at this point in the history
  • Loading branch information
stalniy committed Nov 11, 2018
1 parent 86e35cc commit 0383b90
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"build": "lerna run build",
"pretest": "npm run lint",
"test": "lerna run test",
"lint": "eslint -c .eslintrc packages/*/src",
"lint": "lerna run lint",
"coverage.submit": "codecov",
"prerelease": "npm run lint",
"release": "lerna run release"
Expand Down
1 change: 1 addition & 0 deletions packages/casl-ability/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"build.extra.umd": "rollup -c ../../tools/rollup.umd.js -i src/extra.js -o dist/umd/extra.js -n casl.extra",
"build.extra": "npm run build.extra.es && npm run build.extra.es5m && npm run build.extra.umd",
"build": "npm run build.es && npm run build.umd && npm run build.es5m && npm run build.extra",
"lint": "eslint src/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
Expand Down
1 change: 1 addition & 0 deletions packages/casl-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"build": "npm run build.es && npm run build.umd && npm run build.es5m",
"postbuild": "rm -f dist/types/*.{js,js.map}",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"lint": "node -p -e '`Skip linting for typescript`' ",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
},
Expand Down
1 change: 1 addition & 0 deletions packages/casl-aurelia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"build.umd": "npm run rollup -- -c ../../tools/rollup.umd.js -n casl.au",
"build.es5m": "npm run rollup -- -c ../../tools/rollup.es5m.js",
"build": "npm run build.es && npm run build.umd && npm run build.es5m",
"lint": "eslint src/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
Expand Down
1 change: 1 addition & 0 deletions packages/casl-mongoose/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"build.es": "rollup -c ../../tools/rollup.es.js -e @casl/ability/extra",
"build.cjs": "rollup -c ../../tools/rollup.umd.js -e @casl/ability/extra -f cjs -o index.js",
"build": "npm run build.es && npm run build.cjs",
"lint": "eslint src/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
Expand Down
1 change: 1 addition & 0 deletions packages/casl-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build.umd": "npm run rollup -- -c ../../tools/rollup.umd.js -n casl.react",
"build.es5m": "npm run rollup -- -c ../../tools/rollup.es5m.js",
"build": "npm run build.es && npm run build.umd && npm run build.es5m",
"lint": "eslint src/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
Expand Down
1 change: 1 addition & 0 deletions packages/casl-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"build.umd": "npm run rollup -- -c ../../tools/rollup.umd.js -n casl.vue",
"build.es5m": "npm run rollup -- -c ../../tools/rollup.es5m.js",
"build": "npm run build.es && npm run build.umd && npm run build.es5m",
"lint": "eslint src/",
"test": "NODE_ENV=test jest --config ../../tools/jest.config.js",
"prerelease": "npm test && NODE_ENV=production npm run build",
"release": "semantic-release -e semantic-release-monorepo -e ../../tools/semantic-release"
Expand Down

0 comments on commit 0383b90

Please sign in to comment.