|
27 | 27 | "url": "https://github.com/ChristianMurphy/nicest/issues" |
28 | 28 | }, |
29 | 29 | "homepage": "https://github.com/ChristianMurphy/nicest#readme", |
| 30 | + "engines": { |
| 31 | + "node": "^6.0.0", |
| 32 | + "npm": ">=3.8.0" |
| 33 | + }, |
| 34 | + "files": [ |
| 35 | + "bin", |
| 36 | + "lib", |
| 37 | + "modules", |
| 38 | + "tasks" |
| 39 | + ], |
| 40 | + "preferGlobal": true, |
30 | 41 | "dependencies": { |
31 | 42 | "bell": "^8.4.0", |
32 | 43 | "boom": "^4.2.0", |
|
62 | 73 | "remark-preset-lint-recommended": "^1.0.0", |
63 | 74 | "remark-validate-links": "^5.0.0" |
64 | 75 | }, |
65 | | - "engines": { |
66 | | - "node": "^6.0.0", |
67 | | - "npm": ">=3.8.0" |
| 76 | + "eslintConfig": { |
| 77 | + "extends": "eslint:all", |
| 78 | + "env": { |
| 79 | + "node": true, |
| 80 | + "es6": true |
| 81 | + }, |
| 82 | + "rules": { |
| 83 | + "complexity": [ |
| 84 | + "warn", |
| 85 | + 10 |
| 86 | + ], |
| 87 | + "dot-location": [ |
| 88 | + "error", |
| 89 | + "property" |
| 90 | + ], |
| 91 | + "func-style": [ |
| 92 | + "error", |
| 93 | + "declaration" |
| 94 | + ], |
| 95 | + "guard-for-in": "off", |
| 96 | + "id-match": [ |
| 97 | + "error", |
| 98 | + "^[a-zA-Z]+$" |
| 99 | + ], |
| 100 | + "indent": [ |
| 101 | + "error", |
| 102 | + 4, |
| 103 | + { |
| 104 | + "MemberExpression": 1, |
| 105 | + "SwitchCase": 1 |
| 106 | + } |
| 107 | + ], |
| 108 | + "max-len": [ |
| 109 | + "error", |
| 110 | + 120 |
| 111 | + ], |
| 112 | + "max-nested-callbacks": [ |
| 113 | + "error", |
| 114 | + 2 |
| 115 | + ], |
| 116 | + "no-console": "off", |
| 117 | + "no-magic-numbers": [ |
| 118 | + "error", |
| 119 | + { |
| 120 | + "ignoreArrayIndexes": true, |
| 121 | + "enforceConst": true |
| 122 | + } |
| 123 | + ], |
| 124 | + "no-underscore-dangle": [ |
| 125 | + "error", |
| 126 | + { |
| 127 | + "allow": [ |
| 128 | + "_id" |
| 129 | + ] |
| 130 | + } |
| 131 | + ], |
| 132 | + "one-var": [ |
| 133 | + "error", |
| 134 | + "never" |
| 135 | + ], |
| 136 | + "padded-blocks": [ |
| 137 | + "error", |
| 138 | + "never" |
| 139 | + ], |
| 140 | + "quote-props": [ |
| 141 | + "error", |
| 142 | + "as-needed" |
| 143 | + ], |
| 144 | + "quotes": [ |
| 145 | + "error", |
| 146 | + "single" |
| 147 | + ], |
| 148 | + "spaced-comment": [ |
| 149 | + "error", |
| 150 | + "always", |
| 151 | + { |
| 152 | + "markers": [ |
| 153 | + "*" |
| 154 | + ] |
| 155 | + } |
| 156 | + ], |
| 157 | + "valid-jsdoc": [ |
| 158 | + "error", |
| 159 | + { |
| 160 | + "prefer": { |
| 161 | + "return": "returns", |
| 162 | + "method": "function", |
| 163 | + "func": "function", |
| 164 | + "arg": "param", |
| 165 | + "argument": "param", |
| 166 | + "prop": "property" |
| 167 | + } |
| 168 | + } |
| 169 | + ] |
| 170 | + } |
68 | 171 | }, |
69 | | - "files": [ |
70 | | - "bin", |
71 | | - "lib", |
72 | | - "modules", |
73 | | - "tasks" |
74 | | - ], |
75 | | - "preferGlobal": true |
| 172 | + "pugLintConfig": { |
| 173 | + "disallowAttributeConcatenation": null, |
| 174 | + "disallowAttributeInterpolation": true, |
| 175 | + "disallowAttributeTemplateString": "all", |
| 176 | + "disallowBlockExpansion": true, |
| 177 | + "disallowClassAttributeWithStaticValue": true, |
| 178 | + "disallowClassLiteralsBeforeAttributes": null, |
| 179 | + "disallowClassLiteralsBeforeIdLiterals": true, |
| 180 | + "disallowClassLiterals": null, |
| 181 | + "disallowDuplicateAttributes": true, |
| 182 | + "disallowHtmlText": true, |
| 183 | + "disallowIdAttributeWithStaticValue": true, |
| 184 | + "disallowIdLiteralsBeforeAttributes": null, |
| 185 | + "disallowIdLiterals": null, |
| 186 | + "disallowLegacyMixinCall": true, |
| 187 | + "disallowMultipleLineBreaks": true, |
| 188 | + "disallowSpaceAfterCodeOperator": null, |
| 189 | + "disallowSpacesInsideAttributeBrackets": true, |
| 190 | + "disallowSpecificAttributes": null, |
| 191 | + "disallowSpecificTags": [ |
| 192 | + "acronym", |
| 193 | + "applet", |
| 194 | + "b", |
| 195 | + "basefont", |
| 196 | + "big", |
| 197 | + "center", |
| 198 | + "dir", |
| 199 | + "font", |
| 200 | + "frame", |
| 201 | + "frameset", |
| 202 | + "noframes", |
| 203 | + "strike", |
| 204 | + "tt" |
| 205 | + ], |
| 206 | + "disallowStringConcatenation": true, |
| 207 | + "disallowStringInterpolation": true, |
| 208 | + "disallowTagInterpolation": true, |
| 209 | + "disallowTemplateString": true, |
| 210 | + "maximumNumberOfLines": 150, |
| 211 | + "requireClassLiteralsBeforeAttributes": true, |
| 212 | + "requireClassLiteralsBeforeIdLiterals": null, |
| 213 | + "requireIdLiteralsBeforeAttributes": true, |
| 214 | + "requireLineFeedAtFileEnd": true, |
| 215 | + "requireLowerCaseAttributes": true, |
| 216 | + "requireLowerCaseTags": true, |
| 217 | + "requireSpaceAfterCodeOperator": true, |
| 218 | + "requireSpacesInsideAttributeBrackets": null, |
| 219 | + "requireSpecificAttributes": null, |
| 220 | + "requireStrictEqualityOperators": true, |
| 221 | + "validateAttributeQuoteMarks": "'", |
| 222 | + "validateAttributeSeparator": ", ", |
| 223 | + "validateDivTags": true, |
| 224 | + "validateExtensions": true, |
| 225 | + "validateIndentation": 4, |
| 226 | + "validateLineBreaks": "LF", |
| 227 | + "validateSelfClosingTags": true, |
| 228 | + "validateTemplateString": true |
| 229 | + }, |
| 230 | + "remarkConfig": { |
| 231 | + "presets": [ |
| 232 | + "remark-preset-lint-recommended", |
| 233 | + "remark-preset-lint-consistent" |
| 234 | + ] |
| 235 | + } |
76 | 236 | } |
0 commit comments