Skip to content

Commit

Permalink
feat: use eslint for dependency checks
Browse files Browse the repository at this point in the history
  • Loading branch information
mikesurowiec committed May 6, 2021
1 parent a5bc762 commit e10c29b
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 370 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module.exports = {
ecmaVersion: 11
},
rules: {
'import/no-extraneous-dependencies': ['error']
},
overrides: [
{
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/js-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ jobs:

- name: Run linter
run: npx eslint .

- name: Check dependencies
run: npm run check-deps
282 changes: 0 additions & 282 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@
"csv-parser": "^2.3.3",
"dedent": "^0.7.0",
"del": "^4.1.1",
"dependency-check": "^4.1.0",
"domwaiter": "^1.1.0",
"eslint": "^7.13.0",
"eslint-config-standard": "^16.0.1",
Expand Down Expand Up @@ -182,7 +181,7 @@
"lint": "eslint --fix . && prettier -w \"**/*.{yml,yaml}\" && npm run lint-tsc",
"lint-translation": "TEST_TRANSLATION=true jest content/lint-files",
"lint-tsc": "prettier -w \"**/*.{ts,tsx}\"",
"test": "jest && eslint . && prettier -c \"**/*.{yml,yaml}\" && npm run check-deps",
"test": "jest && eslint . && prettier -c \"**/*.{yml,yaml}\"",
"prebrowser-test": "npm run build",
"browser-test": "start-server-and-test browser-test-server 4001 browser-test-tests",
"browser-test-server": "cross-env NODE_ENV=production PORT=4001 node server.js",
Expand All @@ -192,7 +191,6 @@
"sync-search-server": "cross-env NODE_ENV=production PORT=4002 node server.js",
"sync-search-indices": "script/sync-search-indices.js",
"test-watch": "jest --watch --notify --notifyMode=change --coverage",
"check-deps": "node script/check-deps.js",
"prevent-pushes-to-main": "node script/prevent-pushes-to-main.js",
"pa11y-ci": "pa11y-ci",
"pa11y-test": "start-server-and-test browser-test-server 4001 pa11y-ci",
Expand Down
Loading

0 comments on commit e10c29b

Please sign in to comment.