Skip to content

Commit

Permalink
feat: update package.json linter config (#694)
Browse files Browse the repository at this point in the history
- add a few new rules
- update engine to =>12
- add double license option
  • Loading branch information
hugomrdias authored Dec 16, 2020
1 parent f421dd0 commit 605cd2a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@
"sinon": "^9.2.2"
},
"engines": {
"node": ">=10.0.0",
"node": ">=12.0.0",
"npm": ">=6.0.0"
},
"browserslist": [
Expand Down
18 changes: 12 additions & 6 deletions src/config/.npmpackagejsonlintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@
"require-contributors": "off",
"require-cpu": "off",
"require-dependencies": "off",
"require-description": "off",
"require-description": "error",
"require-devDependencies": "off",
"require-directories": "off",
"require-engines": "error",
"require-files": "error",
"require-funding": "off",
"require-homepage": "error" ,
"require-keywords": "error",
"require-license": "error",
Expand All @@ -28,19 +29,26 @@
"require-publishConfig": "off",
"require-repository": "error",
"require-scripts": "error",
"require-types": "off",
"require-typings": "off",
"require-version": "error",
"bin-type": "error",
"files-type": "error",
"version-type": "error",
"valid-values-engines": ["error", [
{
"node": ">=10.0.0",
"node": ">=14.0.0",
"npm": ">=6.0.0"
}
]],
"valid-values-license": ["error", [
"MIT"
"MIT",
"(Apache-2.0 OR MIT)"
]],
"no-repeated-dependencies": "error",
"no-file-dependencies": "error",
"no-git-dependencies": "warning",
"no-duplicate-properties": "error",
"prefer-alphabetical-dependencies": "error",
"prefer-alphabetical-devDependencies": "error",
"prefer-property-order": ["error",
Expand All @@ -55,10 +63,10 @@
"author",
"leadMaintainer",
"files",
"types",
"main",
"browser",
"module",
"jsnext:main",
"bin",
"repository",
"scripts",
Expand All @@ -71,8 +79,6 @@
"engineStrict",
"engines",
"pre-commit",
"types",
"typings",
"browserslist",
"browserify",
"babel",
Expand Down

0 comments on commit 605cd2a

Please sign in to comment.