Skip to content

Latest commit

 

History

History
530 lines (493 loc) · 43.3 KB

ESLINT_RULES.md

File metadata and controls

530 lines (493 loc) · 43.3 KB

Generator Community Repo

ESLint rules

generator-community enforces the following code standards with ESLint.

Table of contents

1. Rule summary

total omitted off warn error
eslint 245 115 - 1 129
import 30 22 - 3 5
security 13 - - 1 12
jsdoc 12 - - - 12
no-unsafe-innerhtml 1 1 - - -
no-unsanitized 2 - - - 2
node 12 - - - 12
promise 11 10 - - 1
scanjs-rules 88 - - 88 -
standard 4 - - - 4
xss 2 - - - 2
TOTALS 420 147 - 93 181

2. Rules

2.1. eslint

Name Status
accessor-pairs error
arrow-spacing error
block-spacing error
brace-style error
camelcase error
comma-dangle error
comma-spacing error
comma-style error
constructor-super error
curly error
dot-location error
eol-last error
eqeqeq error
func-call-spacing error
generator-star-spacing error
handle-callback-err error
indent error
key-spacing error
keyword-spacing error
new-cap error
new-parens error
no-array-constructor error
no-caller error
no-class-assign error
no-compare-neg-zero error
no-cond-assign error
no-const-assign error
no-constant-condition error
no-control-regex error
no-debugger error
no-delete-var error
no-dupe-args error
no-dupe-class-members error
no-dupe-keys error
no-duplicate-case error
no-empty-character-class error
no-empty-pattern error
no-eval error
no-ex-assign error
no-extend-native error
no-extra-bind error
no-extra-boolean-cast error
no-extra-parens error
no-fallthrough error
no-floating-decimal error
no-func-assign error
no-global-assign error
no-implied-eval error
no-inner-declarations error
no-invalid-regexp error
no-irregular-whitespace error
no-iterator error
no-label-var error
no-labels error
no-lone-blocks error
no-mixed-operators error
no-mixed-spaces-and-tabs error
no-multi-spaces error
no-multi-str error
no-multiple-empty-lines error
no-new error
no-new-func error
no-new-object error
no-new-require error
no-new-symbol error
no-new-wrappers error
no-obj-calls error
no-octal error
no-octal-escape error
no-path-concat error
no-process-exit error
no-proto error
no-redeclare error
no-regex-spaces error
no-return-assign error
no-return-await error
no-self-assign error
no-self-compare error
no-sequences error
no-shadow-restricted-names error
no-sparse-arrays error
no-tabs error
no-template-curly-in-string error
no-this-before-super error
no-throw-literal error
no-trailing-spaces error
no-undef error
no-undef-init error
no-unexpected-multiline error
no-unmodified-loop-condition error
no-unneeded-ternary error
no-unreachable error
no-unsafe-finally error
no-unsafe-negation error
no-unused-expressions error
no-unused-vars error
no-use-before-define error
no-useless-call error
no-useless-computed-key error
no-useless-constructor error
no-useless-escape error
no-useless-rename error
no-useless-return error
no-whitespace-before-property error
no-with error
object-property-newline error
one-var error
operator-linebreak error
padded-blocks error
prefer-promise-reject-errors error
quotes error
rest-spread-spacing error
semi error
semi-spacing error
space-before-blocks error
space-before-function-paren error
space-in-parens error
space-infix-ops error
space-unary-ops error
spaced-comment error
symbol-description error
template-curly-spacing error
template-tag-spacing error
unicode-bom error
use-isnan error
valid-typeof error
wrap-iife error
yield-star-spacing error
yoda error
array-bracket-newline omitted
array-bracket-spacing omitted
array-callback-return omitted
array-element-newline omitted
arrow-body-style omitted
arrow-parens omitted
block-scoped-var omitted
callback-return omitted
capitalized-comments omitted
class-methods-use-this omitted
complexity omitted
computed-property-spacing omitted
consistent-return omitted
consistent-this omitted
default-case omitted
dot-notation omitted
for-direction omitted
func-name-matching omitted
func-names omitted
func-style omitted
getter-return omitted
global-require omitted
guard-for-in omitted
id-blacklist omitted
id-length omitted
id-match omitted
init-declarations omitted
jsx-quotes omitted
line-comment-position omitted
linebreak-style omitted
lines-around-comment omitted
max-depth omitted
max-len omitted
max-lines omitted
max-nested-callbacks omitted
max-params omitted
max-statements omitted
max-statements-per-line omitted
multiline-ternary omitted
newline-per-chained-call omitted
no-alert omitted
no-await-in-loop omitted
no-bitwise omitted
no-buffer-constructor omitted
no-case-declarations omitted
no-catch-shadow omitted
no-confusing-arrow omitted
no-console omitted
no-continue omitted
no-div-regex omitted
no-duplicate-imports omitted
no-else-return omitted
no-empty omitted
no-empty-function omitted
no-eq-null omitted
no-extra-label omitted
no-extra-semi omitted
no-implicit-coercion omitted
no-implicit-globals omitted
no-invalid-this omitted
no-lonely-if omitted
no-loop-func omitted
no-magic-numbers omitted
no-mixed-requires omitted
no-multi-assign omitted
no-negated-condition omitted
no-nested-ternary omitted
no-param-reassign omitted
no-plusplus omitted
no-process-env omitted
no-prototype-builtins omitted
no-restricted-globals omitted
no-restricted-imports omitted
no-restricted-modules omitted
no-restricted-properties omitted
no-restricted-syntax omitted
no-script-url omitted
no-shadow omitted
no-sync omitted
no-ternary omitted
no-undefined omitted
no-underscore-dangle omitted
no-unused-labels omitted
no-useless-concat omitted
no-var omitted
no-void omitted
no-warning-comments omitted
nonblock-statement-body-position omitted
object-curly-newline omitted
object-curly-spacing omitted
object-shorthand omitted
one-var-declaration-per-line omitted
operator-assignment omitted
padding-line-between-statements omitted
prefer-arrow-callback omitted
prefer-const omitted
prefer-destructuring omitted
prefer-numeric-literals omitted
prefer-rest-params omitted
prefer-spread omitted
prefer-template omitted
quote-props omitted
radix omitted
require-await omitted
require-jsdoc omitted
require-yield omitted
semi-style omitted
sort-imports omitted
sort-keys omitted
sort-vars omitted
strict omitted
switch-colon-spacing omitted
valid-jsdoc omitted
vars-on-top omitted
wrap-regex omitted
no-inline-comments warn

2.2. import

Name Status
import/default error
import/export error
import/named error
import/namespace error
import/no-unresolved error
import/extensions omitted
import/first omitted
import/max-dependencies omitted
import/newline-after-import omitted
import/no-absolute-path omitted
import/no-amd omitted
import/no-anonymous-default-export omitted
import/no-commonjs omitted
import/no-deprecated omitted
import/no-dynamic-require omitted
import/no-extraneous-dependencies omitted
import/no-internal-modules omitted
import/no-mutable-exports omitted
import/no-named-default omitted
import/no-namespace omitted
import/no-nodejs-modules omitted
import/no-restricted-paths omitted
import/no-unassigned-import omitted
import/no-webpack-loader-syntax omitted
import/order omitted
import/prefer-default-export omitted
import/unambiguous omitted
import/no-duplicates warn
import/no-named-as-default warn
import/no-named-as-default-member warn

2.3. security

Name Status
security/detect-buffer-noassert error
security/detect-child-process error
security/detect-disable-mustache-escape error
security/detect-eval-with-expression error
security/detect-no-csrf-before-method-override error
security/detect-non-literal-fs-filename error
security/detect-non-literal-regexp error
security/detect-non-literal-require error
security/detect-object-injection error
security/detect-possible-timing-attacks error
security/detect-pseudoRandomBytes error
security/detect-unsafe-regex error
security/detect-new-buffer warn

2.4. jsdoc

Name Status
jsdoc/check-param-names error
jsdoc/check-tag-names error
jsdoc/check-types error
jsdoc/newline-after-description error
jsdoc/require-description-complete-sentence error
jsdoc/require-example error
jsdoc/require-hyphen-before-param-description error
jsdoc/require-param error
jsdoc/require-param-description error
jsdoc/require-param-type error
jsdoc/require-returns-description error
jsdoc/require-returns-type error

2.5. no-unsanitized

Name Status
no-unsanitized/method error
no-unsanitized/property error

2.6. node

Name Status
node/exports-style error
node/no-deprecated-api error
node/no-extraneous-import error
node/no-extraneous-require error
node/no-missing-import error
node/no-missing-require error
node/no-unpublished-bin error
node/no-unpublished-import error
node/no-unpublished-require error
node/no-unsupported-features error
node/process-exit-as-throw error
node/shebang error

2.7. promise

Name Status
promise/param-names error
promise/always-return omitted
promise/avoid-new omitted
promise/catch-or-return omitted
promise/no-callback-in-promise omitted
promise/no-native omitted
promise/no-nesting omitted
promise/no-promise-in-callback omitted
promise/no-return-wrap omitted
promise/prefer-await-to-callbacks omitted
promise/prefer-await-to-then omitted

2.8. standard

Name Status
standard/array-bracket-even-spacing error
standard/computed-property-even-spacing error
standard/no-callback-literal error
standard/object-curly-even-spacing error

2.9. xss

Name Status
xss/no-location-href-assign error
xss/no-mixed-html error

2.10. no-unsafe-innerhtml

Name Status
no-unsafe-innerhtml/no-unsafe-innerhtml omitted

2.11. scanjs-rules

Name Status
scanjs-rules/accidental_assignment warn
scanjs-rules/assign_to_hostname warn
scanjs-rules/assign_to_href warn
scanjs-rules/assign_to_location warn
scanjs-rules/assign_to_mozAudioChannel warn
scanjs-rules/assign_to_mozAudioChannelType warn
scanjs-rules/assign_to_onmessage warn
scanjs-rules/assign_to_pathname warn
scanjs-rules/assign_to_protocol warn
scanjs-rules/assign_to_search warn
scanjs-rules/assign_to_src warn
scanjs-rules/call_Function warn
scanjs-rules/call_addEventListener warn
scanjs-rules/call_addEventListener_cellbroadcastmsgchanged warn
scanjs-rules/call_addEventListener_deviceproximity warn
scanjs-rules/call_addEventListener_message warn
scanjs-rules/call_addEventListener_moznetworkdownload warn
scanjs-rules/call_addEventListener_moznetworkupload warn
scanjs-rules/call_connect warn
scanjs-rules/call_eval warn
scanjs-rules/call_execScript warn
scanjs-rules/call_generateCRMFRequest warn
scanjs-rules/call_getDeviceStorage_apps warn
scanjs-rules/call_getDeviceStorage_crashes warn
scanjs-rules/call_getDeviceStorage_music warn
scanjs-rules/call_getDeviceStorage_pictures warn
scanjs-rules/call_getDeviceStorage_sdcard warn
scanjs-rules/call_getDeviceStorage_videos warn
scanjs-rules/call_hide warn
scanjs-rules/call_mozSetMessageHandler warn
scanjs-rules/call_mozSetMessageHandler_activity warn
scanjs-rules/call_mozSetMessageHandler_wappush_received warn
scanjs-rules/call_open_attention warn
scanjs-rules/call_open_remote=true warn
scanjs-rules/call_parseFromString warn
scanjs-rules/call_setAttribute_mozapp warn
scanjs-rules/call_setAttribute_mozbrowser warn
scanjs-rules/call_setImmediate warn
scanjs-rules/call_setInterval warn
scanjs-rules/call_setMessageHandler_connect warn
scanjs-rules/call_setTimeout warn
scanjs-rules/call_write warn
scanjs-rules/call_writeln warn
scanjs-rules/identifier_indexedDB warn
scanjs-rules/identifier_localStorage warn
scanjs-rules/identifier_sessionStorage warn
scanjs-rules/new_Function warn
scanjs-rules/new_MozActivity warn
scanjs-rules/new_MozSpeakerManager warn
scanjs-rules/new_Notification warn
scanjs-rules/object_mozSystem warn
scanjs-rules/property_addIdleObserver warn
scanjs-rules/property_createContextualFragment warn
scanjs-rules/property_crypto warn
scanjs-rules/property_geolocation warn
scanjs-rules/property_getDataStores warn
scanjs-rules/property_getDeviceStorage warn
scanjs-rules/property_getUserMedia warn
scanjs-rules/property_indexedDB warn
scanjs-rules/property_lastKnownHomeNetwork warn
scanjs-rules/property_lastKnownNetwork warn
scanjs-rules/property_localStorage warn
scanjs-rules/property_mgmt warn
scanjs-rules/property_mozAlarms warn
scanjs-rules/property_mozBluetooth warn
scanjs-rules/property_mozCameras warn
scanjs-rules/property_mozCellBroadcast warn
scanjs-rules/property_mozContacts warn
scanjs-rules/property_mozDownloadManager warn
scanjs-rules/property_mozFMRadio warn
scanjs-rules/property_mozInputMethod warn
scanjs-rules/property_mozKeyboard warn
scanjs-rules/property_mozMobileConnection warn
scanjs-rules/property_mozMobileConnections warn
scanjs-rules/property_mozMobileMessage warn
scanjs-rules/property_mozNetworkStats warn
scanjs-rules/property_mozNfc warn
scanjs-rules/property_mozNotification warn
scanjs-rules/property_mozPermissionSettings warn
scanjs-rules/property_mozPhoneNumberService warn
scanjs-rules/property_mozPower warn
scanjs-rules/property_mozSettings warn
scanjs-rules/property_mozTCPSocket warn
scanjs-rules/property_mozTelephony warn
scanjs-rules/property_mozTime warn
scanjs-rules/property_mozVoicemail warn
scanjs-rules/property_mozWifiManager warn
scanjs-rules/property_sessionStorage warn

Generated on 2017-07-21T06:05:56.603Z.