Skip to content

Commit

Permalink
Merge pull request #66 from sanctuary-js/davidchambers/lint
Browse files Browse the repository at this point in the history
revert to naive `license` field validation in `lint-package-json`
  • Loading branch information
davidchambers committed Dec 29, 2023
2 parents e775a80 + f4b0fe5 commit bb73014
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions bin/lint-package-json
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,7 @@ assert "!('private' in pkg)"

assert "matches(pkg.description, /.{10}/)"

assert "(function() {
var parse = require('spdx-expression-parse');
try { parse(pkg.license); } catch (err) { return false; }
return true;
}())"
assert "matches(pkg.license, /./)"

assert "isSortedObject(pkg.repository)
&& pkg.repository.type === 'git'
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
"eslint": "8.55.x",
"oletus": "4.0.x",
"sanctuary-style": "7.0.x",
"spdx-expression-parse": "3.0.x",
"transcribe": "1.1.2",
"xyz": "4.0.x"
},
Expand Down

0 comments on commit bb73014

Please sign in to comment.