generated from nl-design-system/example
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: update npm-package-json-lint config (#84)
- Use new config file name: npmpackagejsonlint.config.cjs - Only use the rules we explicitly want to enforce - Use overrides to get rid of config files in folders - Update proprietary/**/package.json to have the correct license fields - Add missing repository field in root package.json
- Loading branch information
Showing
8 changed files
with
33 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = { | ||
rules: { | ||
'no-caret-version-dependencies': 'error', | ||
'no-caret-version-devDependencies': 'error', | ||
'no-tilde-version-dependencies': 'error', | ||
'require-repository-directory': 'error', | ||
'valid-values-license': ['error', ['EUPL-1.2']], | ||
'valid-values-name-scope': ['error', ['@tilburg']], | ||
}, | ||
overrides: [ | ||
{ | ||
patterns: ['proprietary/**/package.json'], | ||
rules: { | ||
'valid-values-license': ['error', ['SEE LICENSE IN ../LICENSE.md']], | ||
}, | ||
}, | ||
], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,11 @@ | |
"node": "^20", | ||
"pnpm": "^9" | ||
}, | ||
"repository": { | ||
"type": "git+ssh", | ||
"url": "[email protected]:nl-design-system/tilburg.git", | ||
"directory": "." | ||
}, | ||
"workspaces": [ | ||
"./packages/*", | ||
"./proprietary/*" | ||
|
@@ -50,7 +55,7 @@ | |
"lint:css": "stylelint --allow-empty-input '**/*.{css,scss}'", | ||
"lint:js": "eslint --ext .js,.cjs,.mjs,.json,.jsx,.mdx,.ts,.tsx --report-unused-disable-directives .", | ||
"lint:md": "markdownlint '**/*.md'", | ||
"lint:package-json": "npmPkgJsonLint '**/package.json'", | ||
"lint:package-json": "npmPkgJsonLint .", | ||
"lint:package-lock": "pnpm ls --recursive", | ||
"lint-fix": "npm-run-all --continue-on-error lint-fix:** prettier", | ||
"lint-fix:css": "stylelint --fix '**/*.{css,scss}'", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,5 +7,10 @@ | |
"keywords": [ | ||
"nl-design-system" | ||
], | ||
"private": true | ||
"private": true, | ||
"repository": { | ||
"type": "git+ssh", | ||
"url": "[email protected]:nl-design-system/tilburg.git", | ||
"directory": "packages/components-css" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters