forked from Automattic/wp-calypso
-
Notifications
You must be signed in to change notification settings - Fork 0
/
npmpackagejsonlint.config.js
41 lines (41 loc) · 1.04 KB
/
npmpackagejsonlint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
module.exports = {
// See https://www.npmjs.com/package/@wordpress/npm-package-json-lint-config
extends: '@wordpress/npm-package-json-lint-config',
rules: {
'prefer-no-devDependencies': 'error',
'prefer-property-order': 'off',
'require-bugs': 'off',
'require-homepage': 'off',
'require-keywords': 'off',
'valid-values-author': [ 'error', [ 'Automattic Inc.' ] ],
'valid-values-name-scope': [ 'error', [ '@automattic' ] ],
},
overrides: [
{
patterns: [ './package.json' ],
rules: {
'prefer-no-devDependencies': 'off',
},
},
{
patterns: [
'./package.json',
'./client/package.json',
'./packages/calypso-codemods/package.json',
'./packages/eslint-plugin-wpcalypso/package.json',
'./packages/i18n-calypso-cli/package.json',
'./packages/i18n-calypso/package.json',
'./packages/photon/package.json',
],
rules: {
'valid-values-name-scope': 'off',
},
},
{
patterns: [ './packages/material-design-icons/package.json' ],
rules: {
'valid-values-license': 'off',
},
},
],
};