eslint-config-mgol
Advanced tools
Comparing version 0.0.44 to 0.0.45
@@ -44,3 +44,3 @@ 'use strict'; | ||
'no-template-curly-in-string': 'error', | ||
'no-unexpected-multiline': 'error', | ||
'no-unexpected-multiline': 'off', | ||
'no-unreachable': 'error', | ||
@@ -175,13 +175,6 @@ 'no-unsafe-finally': 'error', | ||
'line-comment-position': 'off', | ||
// Re-enable when commented out lines & ESLint pragmas work; was: | ||
// ['error', {beforeBlockComment: true, beforeLineComment: true, allowBlockStart: true}], | ||
'lines-around-comment': 'off', | ||
'lines-between-class-members': 'error', | ||
'max-depth': 'off', | ||
'max-len': [ | ||
'error', | ||
100, | ||
4, | ||
{ ignoreUrls: true, ignoreRegExpLiterals: true }, | ||
], | ||
'max-len': 'off', | ||
'max-lines': 'off', | ||
@@ -200,6 +193,3 @@ 'max-lines-per-function': 'off', | ||
'no-lonely-if': 'error', | ||
'no-mixed-operators': [ | ||
'error', | ||
{ groups: [['&&', '||']], allowSamePrecedence: true }, | ||
], | ||
'no-mixed-operators': 'off', | ||
'no-multi-assign': 'off', | ||
@@ -232,2 +222,6 @@ 'no-nested-ternary': 'error', | ||
}, | ||
{ | ||
selector: 'SequenceExpression', | ||
message: 'Comma expressions are disallowed', | ||
}, | ||
], | ||
@@ -234,0 +228,0 @@ 'no-tabs': 'error', |
{ | ||
"name": "eslint-config-mgol", | ||
"version": "0.0.44", | ||
"version": "0.0.45", | ||
"description": "ESLint config for projects written by mgol", | ||
@@ -39,4 +39,4 @@ "main": "eslint-config-mgol.js", | ||
"ensure-prettier-rules-disabled": "eslint --print-config eslint-config-mgol.js | eslint-config-prettier-check", | ||
"prettier-check": "prettier --check '**/*.{json,js,jsx,ts,tsx,md}'", | ||
"prettier-format": "prettier --write '**/*.{json,js,jsx,ts,tsx,md}'", | ||
"prettier-check": "prettier --check '**/*.{json,js,yml,yaml,md}'", | ||
"prettier-format": "prettier --write '**/*.{json,js,yml,yaml,md}'", | ||
"lint": "eslint . && npm run prettier-check", | ||
@@ -51,7 +51,7 @@ "test": "npm run ensure-prettier-rules-disabled && npm run ensure-all-rules-specified && npm run lint" | ||
"lint-staged": { | ||
"*.{json,md}": [ | ||
"*.{json,yml,yaml,md}": [ | ||
"prettier --write", | ||
"git add" | ||
], | ||
"*.{ts,tsx,js,jsx}": [ | ||
"*.js": [ | ||
"eslint --fix", | ||
@@ -58,0 +58,0 @@ "prettier --write", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13347
272