mirror of
https://github.com/shelljs/shelljs.git
synced 2026-01-18 16:03:37 +00:00
chore(lint): alphabetize lint rules (#946)
No change to the rules, this just reorders the eslintrc file so there's a sane way to add new rules. Test: npm run lint
This commit is contained in:
parent
6d83d3509b
commit
f7dbc61d41
@ -5,25 +5,25 @@
|
||||
"extends": "airbnb-base/legacy",
|
||||
"rules": {
|
||||
"comma-dangle": ["error", "always-multiline"],
|
||||
"global-require": "off",
|
||||
"vars-on-top": "off",
|
||||
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }],
|
||||
"no-param-reassign": "off",
|
||||
"no-console": "off",
|
||||
"consistent-return": "off",
|
||||
"curly": ["error", "multi-line"],
|
||||
"func-names": "off",
|
||||
"quote-props": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"global-require": "off",
|
||||
"max-len": "off",
|
||||
"no-use-before-define": "off",
|
||||
"no-empty": "off",
|
||||
"no-else-return": "off",
|
||||
"no-throw-literal": "off",
|
||||
"newline-per-chained-call": "off",
|
||||
"consistent-return": "off",
|
||||
"no-console": "off",
|
||||
"no-else-return": "off",
|
||||
"no-empty": "off",
|
||||
"no-mixed-operators": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-multiple-empty-lines": ["error", { "max": 2, "maxBOF": 0, "maxEOF": 0 } ],
|
||||
"no-param-reassign": "off",
|
||||
"no-prototype-builtins": "off",
|
||||
"no-throw-literal": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-use-before-define": "off",
|
||||
"quote-props": "off",
|
||||
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@", "@commands"] }],
|
||||
"vars-on-top": "off",
|
||||
"new-cap": ["error", {
|
||||
"capIsNewExceptions": [
|
||||
"ShellString"
|
||||
|
||||
@ -4,19 +4,19 @@
|
||||
},
|
||||
"extends": "airbnb-base",
|
||||
"rules": {
|
||||
"import/no-mutable-exports": "off",
|
||||
"global-require": "off",
|
||||
"vars-on-top": "off",
|
||||
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@"] }],
|
||||
"no-param-reassign": "off",
|
||||
"no-console": "off",
|
||||
"curly": "off",
|
||||
"global-require": "off",
|
||||
"import/no-mutable-exports": "off",
|
||||
"max-len": "off",
|
||||
"no-console": "off",
|
||||
"no-param-reassign": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"no-var": "error",
|
||||
"prefer-arrow-callback": "off",
|
||||
"prefer-const": "error",
|
||||
"prefer-template": "off",
|
||||
"prefer-arrow-callback": "off",
|
||||
"no-underscore-dangle": "off",
|
||||
"max-len": "off",
|
||||
"spaced-comment": ["error", "always", { "markers": ["@", "@include"], "exceptions": ["@"] }],
|
||||
"vars-on-top": "off",
|
||||
"new-cap": ["error", {
|
||||
"capIsNewExceptions": [
|
||||
"ShellString"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user