Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdu93Jer <mailing_93@hotmail.com>2020-12-16 02:49:38 +0300
committerisaacs <i@izs.me>2020-12-18 22:35:16 +0300
commita92d310b7e9e4c48b08f52785c2e3a6d52a82ad7 (patch)
tree60a615230082a8cdac3d357ae7c59cbd94b0211d /.eslintrc.json
parentbe4a0900b14b2c6315bf62bed8f5affb648215ae (diff)
Add max-len to lint rules
PR-URL: https://github.com/npm/cli/pull/2361 Credit: @Edu93Jer Close: #2361 Reviewed-by: @isaacs EDIT(@isaacs): amended to match some of the fixes to our current style conventions
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json7
1 files changed, 7 insertions, 0 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 139716eef..8566613e7 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -67,6 +67,13 @@
"key-spacing": ["error", { "beforeColon": false, "afterColon": true }],
"keyword-spacing": ["error", { "before": true, "after": true }],
"lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }],
+ "max-len": ["error", 80, {
+ "ignoreUrls": true,
+ "ignoreComments": false,
+ "ignoreRegExpLiterals": true,
+ "ignoreStrings": true,
+ "ignoreTemplateLiterals": true
+ }],
"new-cap": ["error", { "newIsCap": true, "capIsNew": false, "properties": true }],
"new-parens": "error",
"no-array-constructor": "error",