@wildpastry/eslint-config 1.7.4 → 1.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc +1 -1
- package/index.js +1 -1
- package/package.json +1 -1
package/.eslintrc
CHANGED
|
@@ -291,7 +291,7 @@
|
|
|
291
291
|
// Other
|
|
292
292
|
"line-comment-position": 1, // enforce position of line comments // DONE
|
|
293
293
|
"lines-between-class-members": 0, // require or disallow an empty line between class members // DONE - OFF
|
|
294
|
-
"max-len":
|
|
294
|
+
"max-len": [1, { "code": 80, "ignoreUrls": true, "ignoreComments": true, "ignorePattern": "^import .* | className={.+}" }], // enforce a maximum line length // DONE - CUSTOMISED
|
|
295
295
|
"max-statements-per-line": 1, // enforce a maximum number of statements allowed per line // DONE
|
|
296
296
|
"padding-line-between-statements": 1, // require or disallow padding lines between statements // DONE
|
|
297
297
|
"no-cond-assign": 1, // disallow assignment in conditional expressions // DONE
|
package/index.js
CHANGED
|
@@ -271,7 +271,7 @@ export default [
|
|
|
271
271
|
// Other
|
|
272
272
|
"line-comment-position": 1, // enforce position of line comments // DONE
|
|
273
273
|
"lines-between-class-members": 0, // require or disallow an empty line between class members // DONE - OFF
|
|
274
|
-
"max-len": [1, { "code": 80, "ignoreUrls": true, "ignoreComments": true, "ignorePattern": "^import .*" }], // enforce a maximum line length // DONE - CUSTOMISED
|
|
274
|
+
"max-len": [1, { "code": 80, "ignoreUrls": true, "ignoreComments": true, "ignorePattern": "^import .* | className={.+}" }], // enforce a maximum line length // DONE - CUSTOMISED
|
|
275
275
|
"max-statements-per-line": 1, // enforce a maximum number of statements allowed per line // DONE
|
|
276
276
|
"padding-line-between-statements": 1, // require or disallow padding lines between statements // DONE
|
|
277
277
|
"no-cond-assign": 1, // disallow assignment in conditional expressions // DONE
|