|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +module.exports = { |
| 4 | + // See https://www.npmjs.com/package/npm-package-json-lint-config-default |
| 5 | + extends: 'npm-package-json-lint-config-default', |
| 6 | + rules: { |
| 7 | + 'description-format': ['error', { requireCapitalFirstLetter: true, requireEndingPeriod: true }], |
| 8 | + 'no-duplicate-properties': 'error', |
| 9 | + 'no-file-dependencies': 'error', |
| 10 | + 'no-file-devDependencies': 'error', |
| 11 | + 'no-git-dependencies': 'error', |
| 12 | + 'no-git-devDependencies': 'error', |
| 13 | + 'prefer-alphabetical-dependencies': 'error', |
| 14 | + 'prefer-alphabetical-devDependencies': 'error', |
| 15 | + 'prefer-alphabetical-peerDependencies': 'error', |
| 16 | + 'prefer-alphabetical-scripts': 'error', |
| 17 | + 'prefer-no-engineStrict': 'error', |
| 18 | + 'prefer-property-order': [ |
| 19 | + 'error', |
| 20 | + [ |
| 21 | + 'name', |
| 22 | + 'private', |
| 23 | + 'version', |
| 24 | + 'description', |
| 25 | + 'keywords', |
| 26 | + 'homepage', |
| 27 | + 'repository', |
| 28 | + 'funding', |
| 29 | + 'bugs', |
| 30 | + 'license', |
| 31 | + 'author', |
| 32 | + 'main', |
| 33 | + 'bin', |
| 34 | + 'files', |
| 35 | + 'directories', |
| 36 | + 'type', |
| 37 | + 'module', |
| 38 | + 'publishConfig', |
| 39 | + 'engines', |
| 40 | + // VS Code |
| 41 | + 'publisher', |
| 42 | + 'displayName', |
| 43 | + 'qna', |
| 44 | + 'galleryBanner', |
| 45 | + 'icon', |
| 46 | + 'categories', |
| 47 | + 'activationEvents', |
| 48 | + 'contributes', |
| 49 | + 'commands', |
| 50 | + 'jsonValidation', |
| 51 | + 'languages', |
| 52 | + 'snippets', |
| 53 | + // Repo |
| 54 | + 'eslintConfig', |
| 55 | + 'jest', |
| 56 | + 'husky', |
| 57 | + 'lint-staged', |
| 58 | + 'npmpackagejsonlint', |
| 59 | + 'prettier', |
| 60 | + 'remarkConfig', |
| 61 | + 'dependencies', |
| 62 | + 'devDependencies', |
| 63 | + 'peerDependencies', |
| 64 | + 'scripts', |
| 65 | + ], |
| 66 | + ], |
| 67 | + 'require-author': 'error', |
| 68 | + 'require-bugs': 'error', |
| 69 | + 'require-description': 'error', |
| 70 | + 'require-engines': 'error', |
| 71 | + 'require-homepage': 'error', |
| 72 | + 'require-keywords': 'error', |
| 73 | + 'require-license': 'error', |
| 74 | + 'require-main': 'error', |
| 75 | + 'require-name': 'error', |
| 76 | + 'require-repository': 'error', |
| 77 | + 'require-scripts': 'error', |
| 78 | + 'require-version': 'error', |
| 79 | + 'valid-values-author': ['error', ['stylelint']], |
| 80 | + 'valid-values-license': ['error', ['MIT']], |
| 81 | + 'valid-values-publishConfig': ['error', [{ access: 'public' }]], |
| 82 | + }, |
| 83 | +}; |
0 commit comments