Skip to content

Commit

Permalink
Merge pull request #888 from bmish/npm-package-json-lint
Browse files Browse the repository at this point in the history
Add npm-package-json-lint
  • Loading branch information
bmish committed Jul 15, 2020
2 parents 29e9ef1 + 82c0ec5 commit 0183d45
Show file tree
Hide file tree
Showing 3 changed files with 303 additions and 5 deletions.
10 changes: 10 additions & 0 deletions .npmpackagejsonlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"rules": {
"no-duplicate-properties": "error",
"prefer-alphabetical-bundledDependencies": "error",
"prefer-alphabetical-dependencies": "error",
"prefer-alphabetical-devDependencies": "error",
"prefer-alphabetical-optionalDependencies": "error",
"prefer-alphabetical-scripts": "error"
}
}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"lint:docs": "markdownlint '**/*.md'",
"lint:docs-js": "eslint . --cache --ext md",
"lint:js": "eslint . --cache",
"lint:package-json": "npmPkgJsonLint .",
"start": "yarn run test:watch",
"test": "jest",
"test:coverage": "jest --coverage",
Expand Down Expand Up @@ -58,6 +59,7 @@
"jest": "^26.1.0",
"lerna-changelog": "^1.0.1",
"markdownlint-cli": "^0.23.2",
"npm-package-json-lint": "^5.1.0",
"npm-run-all": "^4.1.5",
"prettier": "2.0.5"
},
Expand Down

0 comments on commit 0183d45

Please sign in to comment.