Advertisement
Guest User

Untitled

a guest
May 26th, 2020
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 30.27 KB | None | 0 0
  1. {
  2. "env": {
  3. "browser": true,
  4. "jquery": true,
  5. "node": true,
  6. "es6": true
  7. },
  8. "globals": {
  9. "window": true,
  10. "document": true,
  11. "wp": "readonly"
  12. },
  13. "parser": "C:\\Users\\snarl\\development-snarl\\development-wordpress\\linting-wordpress\\node_modules\\babel-eslint\\lib\\index.js",
  14. "parserOptions": {
  15. "sourceType": "module",
  16. "ecmaFeatures": {
  17. "jsx": true
  18. }
  19. },
  20. "plugins": [
  21. "jsx-a11y",
  22. "react-hooks",
  23. "react",
  24. "@wordpress",
  25. "jsdoc"
  26. ],
  27. "rules": {
  28. "vars-on-top": [
  29. "off"
  30. ],
  31. "arrow-parens": [
  32. "error",
  33. "always"
  34. ],
  35. "arrow-spacing": [
  36. "error"
  37. ],
  38. "computed-property-spacing": [
  39. "error",
  40. "always"
  41. ],
  42. "constructor-super": [
  43. "error"
  44. ],
  45. "no-const-assign": [
  46. "error"
  47. ],
  48. "no-dupe-class-members": [
  49. "error"
  50. ],
  51. "no-duplicate-imports": [
  52. "error"
  53. ],
  54. "no-useless-computed-key": [
  55. "error"
  56. ],
  57. "no-useless-constructor": [
  58. "error"
  59. ],
  60. "no-var": [
  61. "error"
  62. ],
  63. "object-shorthand": [
  64. "error"
  65. ],
  66. "prefer-const": [
  67. "error"
  68. ],
  69. "quotes": [
  70. "error",
  71. "single",
  72. {
  73. "allowTemplateLiterals": true,
  74. "avoidEscape": true
  75. }
  76. ],
  77. "space-unary-ops": [
  78. "error",
  79. {
  80. "overrides": {
  81. "!": true,
  82. "yield": true
  83. },
  84. "words": true,
  85. "nonwords": false
  86. }
  87. ],
  88. "template-curly-spacing": [
  89. "error",
  90. "always"
  91. ],
  92. "array-bracket-spacing": [
  93. "error",
  94. "always"
  95. ],
  96. "array-callback-return": [
  97. "error"
  98. ],
  99. "brace-style": [
  100. "error",
  101. "1tbs"
  102. ],
  103. "camelcase": [
  104. "error",
  105. {
  106. "properties": "never",
  107. "ignoreDestructuring": false,
  108. "ignoreImports": false
  109. }
  110. ],
  111. "comma-dangle": [
  112. "error",
  113. "always-multiline"
  114. ],
  115. "comma-spacing": [
  116. "error"
  117. ],
  118. "comma-style": [
  119. "error",
  120. "last"
  121. ],
  122. "curly": [
  123. "error",
  124. "all"
  125. ],
  126. "dot-notation": [
  127. "error"
  128. ],
  129. "eol-last": [
  130. "error"
  131. ],
  132. "eqeqeq": [
  133. "error"
  134. ],
  135. "func-call-spacing": [
  136. "error"
  137. ],
  138. "indent": [
  139. "error",
  140. "tab",
  141. {
  142. "SwitchCase": 1,
  143. "flatTernaryExpressions": false,
  144. "ignoreComments": false
  145. }
  146. ],
  147. "key-spacing": [
  148. "error"
  149. ],
  150. "keyword-spacing": [
  151. "error"
  152. ],
  153. "linebreak-style": [
  154. "error",
  155. "unix"
  156. ],
  157. "no-alert": [
  158. "error"
  159. ],
  160. "no-bitwise": [
  161. "error"
  162. ],
  163. "no-caller": [
  164. "error"
  165. ],
  166. "no-cond-assign": [
  167. "error",
  168. "except-parens"
  169. ],
  170. "no-console": [
  171. "error"
  172. ],
  173. "no-debugger": [
  174. "error"
  175. ],
  176. "no-dupe-args": [
  177. "error"
  178. ],
  179. "no-dupe-keys": [
  180. "error"
  181. ],
  182. "no-duplicate-case": [
  183. "error"
  184. ],
  185. "no-else-return": [
  186. "error"
  187. ],
  188. "no-eval": [
  189. "error"
  190. ],
  191. "no-extra-semi": [
  192. "error"
  193. ],
  194. "no-fallthrough": [
  195. "error"
  196. ],
  197. "no-irregular-whitespace": [
  198. "error"
  199. ],
  200. "no-lonely-if": [
  201. "error"
  202. ],
  203. "no-multi-str": [
  204. "error"
  205. ],
  206. "no-mixed-operators": [
  207. "error"
  208. ],
  209. "no-mixed-spaces-and-tabs": [
  210. "error"
  211. ],
  212. "no-multiple-empty-lines": [
  213. "error",
  214. {
  215. "max": 1
  216. }
  217. ],
  218. "no-multi-spaces": [
  219. "error"
  220. ],
  221. "no-negated-in-lhs": [
  222. "error"
  223. ],
  224. "no-nested-ternary": [
  225. "error"
  226. ],
  227. "no-redeclare": [
  228. "error"
  229. ],
  230. "no-shadow": [
  231. "error"
  232. ],
  233. "no-trailing-spaces": [
  234. "error"
  235. ],
  236. "no-undef": [
  237. "error"
  238. ],
  239. "no-undef-init": [
  240. "error"
  241. ],
  242. "no-unreachable": [
  243. "error"
  244. ],
  245. "no-unsafe-negation": [
  246. "error"
  247. ],
  248. "no-unused-expressions": [
  249. "error"
  250. ],
  251. "no-unused-vars": [
  252. "error"
  253. ],
  254. "no-useless-return": [
  255. "error"
  256. ],
  257. "no-whitespace-before-property": [
  258. "error"
  259. ],
  260. "no-with": [
  261. "error"
  262. ],
  263. "object-curly-spacing": [
  264. "error",
  265. "always"
  266. ],
  267. "one-var-declaration-per-line": [
  268. "error",
  269. "initializations"
  270. ],
  271. "operator-linebreak": [
  272. "error",
  273. "after"
  274. ],
  275. "padded-blocks": [
  276. "error",
  277. "never"
  278. ],
  279. "quote-props": [
  280. "error",
  281. "as-needed"
  282. ],
  283. "semi": [
  284. "error"
  285. ],
  286. "semi-spacing": [
  287. "error"
  288. ],
  289. "space-before-blocks": [
  290. "error",
  291. "always"
  292. ],
  293. "space-before-function-paren": [
  294. "error",
  295. {
  296. "anonymous": "never",
  297. "named": "never",
  298. "asyncArrow": "always"
  299. }
  300. ],
  301. "space-in-parens": [
  302. "error",
  303. "always"
  304. ],
  305. "space-infix-ops": [
  306. "error"
  307. ],
  308. "valid-typeof": [
  309. "error"
  310. ],
  311. "wrap-iife": [
  312. "error"
  313. ],
  314. "jsdoc/no-undefined-types": [
  315. "warn",
  316. {
  317. "definedTypes": [
  318. "AbortController",
  319. "AbortSignal",
  320. "AnalyserNode",
  321. "Animation",
  322. "AnimationEffectReadOnly",
  323. "AnimationEffectTiming",
  324. "AnimationEffectTimingReadOnly",
  325. "AnimationEvent",
  326. "AnimationPlaybackEvent",
  327. "AnimationTimeline",
  328. "ApplicationCache",
  329. "ApplicationCacheErrorEvent",
  330. "Attr",
  331. "Audio",
  332. "AudioBuffer",
  333. "AudioBufferSourceNode",
  334. "AudioContext",
  335. "AudioDestinationNode",
  336. "AudioListener",
  337. "AudioNode",
  338. "AudioParam",
  339. "AudioProcessingEvent",
  340. "AudioScheduledSourceNode",
  341. "AudioWorkletGlobalScope ",
  342. "AudioWorkletNode",
  343. "AudioWorkletProcessor",
  344. "BarProp",
  345. "BaseAudioContext",
  346. "BatteryManager",
  347. "BeforeUnloadEvent",
  348. "BiquadFilterNode",
  349. "Blob",
  350. "BlobEvent",
  351. "BroadcastChannel",
  352. "BudgetService",
  353. "ByteLengthQueuingStrategy",
  354. "Cache",
  355. "CacheStorage",
  356. "CanvasCaptureMediaStreamTrack",
  357. "CanvasGradient",
  358. "CanvasPattern",
  359. "CanvasRenderingContext2D",
  360. "ChannelMergerNode",
  361. "ChannelSplitterNode",
  362. "CharacterData",
  363. "ClipboardEvent",
  364. "CloseEvent",
  365. "Comment",
  366. "CompositionEvent",
  367. "ConstantSourceNode",
  368. "ConvolverNode",
  369. "CountQueuingStrategy",
  370. "Credential",
  371. "CredentialsContainer",
  372. "Crypto",
  373. "CryptoKey",
  374. "CSS",
  375. "CSSConditionRule",
  376. "CSSFontFaceRule",
  377. "CSSGroupingRule",
  378. "CSSImportRule",
  379. "CSSKeyframeRule",
  380. "CSSKeyframesRule",
  381. "CSSMediaRule",
  382. "CSSNamespaceRule",
  383. "CSSPageRule",
  384. "CSSRule",
  385. "CSSRuleList",
  386. "CSSStyleDeclaration",
  387. "CSSStyleRule",
  388. "CSSStyleSheet",
  389. "CSSSupportsRule",
  390. "CustomElementRegistry",
  391. "CustomEvent",
  392. "DataTransfer",
  393. "DataTransferItem",
  394. "DataTransferItemList",
  395. "DelayNode",
  396. "DeviceMotionEvent",
  397. "DeviceOrientationEvent",
  398. "Document",
  399. "DocumentFragment",
  400. "DocumentType",
  401. "DOMError",
  402. "DOMException",
  403. "DOMImplementation",
  404. "DOMMatrix",
  405. "DOMMatrixReadOnly",
  406. "DOMParser",
  407. "DOMPoint",
  408. "DOMPointReadOnly",
  409. "DOMQuad",
  410. "DOMRect",
  411. "DOMRectReadOnly",
  412. "DOMStringList",
  413. "DOMStringMap",
  414. "DOMTokenList",
  415. "DragEvent",
  416. "DynamicsCompressorNode",
  417. "Element",
  418. "ErrorEvent",
  419. "Event",
  420. "EventSource",
  421. "EventTarget",
  422. "File",
  423. "FileList",
  424. "FileReader",
  425. "FocusEvent",
  426. "FontFace",
  427. "FontFaceSetLoadEvent",
  428. "FormData",
  429. "GainNode",
  430. "Gamepad",
  431. "GamepadButton",
  432. "GamepadEvent",
  433. "HashChangeEvent",
  434. "Headers",
  435. "History",
  436. "HTMLAllCollection",
  437. "HTMLAnchorElement",
  438. "HTMLAreaElement",
  439. "HTMLAudioElement",
  440. "HTMLBaseElement",
  441. "HTMLBodyElement",
  442. "HTMLBRElement",
  443. "HTMLButtonElement",
  444. "HTMLCanvasElement",
  445. "HTMLCollection",
  446. "HTMLContentElement",
  447. "HTMLDataElement",
  448. "HTMLDataListElement",
  449. "HTMLDetailsElement",
  450. "HTMLDialogElement",
  451. "HTMLDirectoryElement",
  452. "HTMLDivElement",
  453. "HTMLDListElement",
  454. "HTMLDocument",
  455. "HTMLElement",
  456. "HTMLEmbedElement",
  457. "HTMLFieldSetElement",
  458. "HTMLFontElement",
  459. "HTMLFormControlsCollection",
  460. "HTMLFormElement",
  461. "HTMLFrameElement",
  462. "HTMLFrameSetElement",
  463. "HTMLHeadElement",
  464. "HTMLHeadingElement",
  465. "HTMLHRElement",
  466. "HTMLHtmlElement",
  467. "HTMLIFrameElement",
  468. "HTMLImageElement",
  469. "HTMLInputElement",
  470. "HTMLLabelElement",
  471. "HTMLLegendElement",
  472. "HTMLLIElement",
  473. "HTMLLinkElement",
  474. "HTMLMapElement",
  475. "HTMLMarqueeElement",
  476. "HTMLMediaElement",
  477. "HTMLMenuElement",
  478. "HTMLMetaElement",
  479. "HTMLMeterElement",
  480. "HTMLModElement",
  481. "HTMLObjectElement",
  482. "HTMLOListElement",
  483. "HTMLOptGroupElement",
  484. "HTMLOptionElement",
  485. "HTMLOptionsCollection",
  486. "HTMLOutputElement",
  487. "HTMLParagraphElement",
  488. "HTMLParamElement",
  489. "HTMLPictureElement",
  490. "HTMLPreElement",
  491. "HTMLProgressElement",
  492. "HTMLQuoteElement",
  493. "HTMLScriptElement",
  494. "HTMLSelectElement",
  495. "HTMLShadowElement",
  496. "HTMLSlotElement",
  497. "HTMLSourceElement",
  498. "HTMLSpanElement",
  499. "HTMLStyleElement",
  500. "HTMLTableCaptionElement",
  501. "HTMLTableCellElement",
  502. "HTMLTableColElement",
  503. "HTMLTableElement",
  504. "HTMLTableRowElement",
  505. "HTMLTableSectionElement",
  506. "HTMLTemplateElement",
  507. "HTMLTextAreaElement",
  508. "HTMLTimeElement",
  509. "HTMLTitleElement",
  510. "HTMLTrackElement",
  511. "HTMLUListElement",
  512. "HTMLUnknownElement",
  513. "HTMLVideoElement",
  514. "IDBCursor",
  515. "IDBCursorWithValue",
  516. "IDBDatabase",
  517. "IDBFactory",
  518. "IDBIndex",
  519. "IDBKeyRange",
  520. "IDBObjectStore",
  521. "IDBOpenDBRequest",
  522. "IDBRequest",
  523. "IDBTransaction",
  524. "IDBVersionChangeEvent",
  525. "IdleDeadline",
  526. "IIRFilterNode",
  527. "Image",
  528. "ImageBitmap",
  529. "ImageBitmapRenderingContext",
  530. "ImageCapture",
  531. "ImageData",
  532. "InputEvent",
  533. "IntersectionObserver",
  534. "IntersectionObserverEntry",
  535. "Intl",
  536. "KeyboardEvent",
  537. "KeyframeEffect",
  538. "KeyframeEffectReadOnly",
  539. "Location",
  540. "MediaDeviceInfo",
  541. "MediaDevices",
  542. "MediaElementAudioSourceNode",
  543. "MediaEncryptedEvent",
  544. "MediaError",
  545. "MediaKeyMessageEvent",
  546. "MediaKeySession",
  547. "MediaKeyStatusMap",
  548. "MediaKeySystemAccess",
  549. "MediaList",
  550. "MediaQueryList",
  551. "MediaQueryListEvent",
  552. "MediaRecorder",
  553. "MediaSettingsRange",
  554. "MediaSource",
  555. "MediaStream",
  556. "MediaStreamAudioDestinationNode",
  557. "MediaStreamAudioSourceNode",
  558. "MediaStreamEvent",
  559. "MediaStreamTrack",
  560. "MediaStreamTrackEvent",
  561. "MessageChannel",
  562. "MessageEvent",
  563. "MessagePort",
  564. "MIDIAccess",
  565. "MIDIConnectionEvent",
  566. "MIDIInput",
  567. "MIDIInputMap",
  568. "MIDIMessageEvent",
  569. "MIDIOutput",
  570. "MIDIOutputMap",
  571. "MIDIPort",
  572. "MimeType",
  573. "MimeTypeArray",
  574. "MouseEvent",
  575. "MutationEvent",
  576. "MutationObserver",
  577. "MutationRecord",
  578. "NamedNodeMap",
  579. "NavigationPreloadManager",
  580. "Navigator",
  581. "NetworkInformation",
  582. "Node",
  583. "NodeFilter",
  584. "NodeIterator",
  585. "NodeList",
  586. "Notification",
  587. "OfflineAudioCompletionEvent",
  588. "OfflineAudioContext",
  589. "OffscreenCanvas",
  590. "Option",
  591. "OscillatorNode",
  592. "PageTransitionEvent",
  593. "PannerNode",
  594. "Path2D",
  595. "PaymentAddress",
  596. "PaymentRequest",
  597. "PaymentRequestUpdateEvent",
  598. "PaymentResponse",
  599. "Performance",
  600. "PerformanceEntry",
  601. "PerformanceLongTaskTiming",
  602. "PerformanceMark",
  603. "PerformanceMeasure",
  604. "PerformanceNavigation",
  605. "PerformanceNavigationTiming",
  606. "PerformanceObserver",
  607. "PerformanceObserverEntryList",
  608. "PerformancePaintTiming",
  609. "PerformanceResourceTiming",
  610. "PerformanceTiming",
  611. "PeriodicWave",
  612. "Permissions",
  613. "PermissionStatus",
  614. "PhotoCapabilities",
  615. "Plugin",
  616. "PluginArray",
  617. "PointerEvent",
  618. "PopStateEvent",
  619. "Presentation",
  620. "PresentationAvailability",
  621. "PresentationConnection",
  622. "PresentationConnectionAvailableEvent",
  623. "PresentationConnectionCloseEvent",
  624. "PresentationConnectionList",
  625. "PresentationReceiver",
  626. "PresentationRequest",
  627. "ProcessingInstruction",
  628. "ProgressEvent",
  629. "PromiseRejectionEvent",
  630. "PushManager",
  631. "PushSubscription",
  632. "PushSubscriptionOptions",
  633. "RadioNodeList",
  634. "Range",
  635. "ReadableStream",
  636. "RemotePlayback",
  637. "Request",
  638. "ResizeObserver",
  639. "ResizeObserverEntry",
  640. "Response",
  641. "RTCCertificate",
  642. "RTCDataChannel",
  643. "RTCDataChannelEvent",
  644. "RTCDtlsTransport",
  645. "RTCIceCandidate",
  646. "RTCIceGatherer",
  647. "RTCIceTransport",
  648. "RTCPeerConnection",
  649. "RTCPeerConnectionIceEvent",
  650. "RTCRtpContributingSource",
  651. "RTCRtpReceiver",
  652. "RTCRtpSender",
  653. "RTCSctpTransport",
  654. "RTCSessionDescription",
  655. "RTCStatsReport",
  656. "RTCTrackEvent",
  657. "Screen",
  658. "ScreenOrientation",
  659. "ScriptProcessorNode",
  660. "SecurityPolicyViolationEvent",
  661. "Selection",
  662. "ServiceWorker",
  663. "ServiceWorkerContainer",
  664. "ServiceWorkerRegistration",
  665. "ShadowRoot",
  666. "SharedWorker",
  667. "SourceBuffer",
  668. "SourceBufferList",
  669. "SpeechSynthesisEvent",
  670. "SpeechSynthesisUtterance",
  671. "StaticRange",
  672. "StereoPannerNode",
  673. "Storage",
  674. "StorageEvent",
  675. "StorageManager",
  676. "StyleSheet",
  677. "StyleSheetList",
  678. "SubtleCrypto",
  679. "SVGAElement",
  680. "SVGAngle",
  681. "SVGAnimatedAngle",
  682. "SVGAnimatedBoolean",
  683. "SVGAnimatedEnumeration",
  684. "SVGAnimatedInteger",
  685. "SVGAnimatedLength",
  686. "SVGAnimatedLengthList",
  687. "SVGAnimatedNumber",
  688. "SVGAnimatedNumberList",
  689. "SVGAnimatedPreserveAspectRatio",
  690. "SVGAnimatedRect",
  691. "SVGAnimatedString",
  692. "SVGAnimatedTransformList",
  693. "SVGAnimateElement",
  694. "SVGAnimateMotionElement",
  695. "SVGAnimateTransformElement",
  696. "SVGAnimationElement",
  697. "SVGCircleElement",
  698. "SVGClipPathElement",
  699. "SVGComponentTransferFunctionElement",
  700. "SVGDefsElement",
  701. "SVGDescElement",
  702. "SVGDiscardElement",
  703. "SVGElement",
  704. "SVGEllipseElement",
  705. "SVGFEBlendElement",
  706. "SVGFEColorMatrixElement",
  707. "SVGFEComponentTransferElement",
  708. "SVGFECompositeElement",
  709. "SVGFEConvolveMatrixElement",
  710. "SVGFEDiffuseLightingElement",
  711. "SVGFEDisplacementMapElement",
  712. "SVGFEDistantLightElement",
  713. "SVGFEDropShadowElement",
  714. "SVGFEFloodElement",
  715. "SVGFEFuncAElement",
  716. "SVGFEFuncBElement",
  717. "SVGFEFuncGElement",
  718. "SVGFEFuncRElement",
  719. "SVGFEGaussianBlurElement",
  720. "SVGFEImageElement",
  721. "SVGFEMergeElement",
  722. "SVGFEMergeNodeElement",
  723. "SVGFEMorphologyElement",
  724. "SVGFEOffsetElement",
  725. "SVGFEPointLightElement",
  726. "SVGFESpecularLightingElement",
  727. "SVGFESpotLightElement",
  728. "SVGFETileElement",
  729. "SVGFETurbulenceElement",
  730. "SVGFilterElement",
  731. "SVGForeignObjectElement",
  732. "SVGGElement",
  733. "SVGGeometryElement",
  734. "SVGGradientElement",
  735. "SVGGraphicsElement",
  736. "SVGImageElement",
  737. "SVGLength",
  738. "SVGLengthList",
  739. "SVGLinearGradientElement",
  740. "SVGLineElement",
  741. "SVGMarkerElement",
  742. "SVGMaskElement",
  743. "SVGMatrix",
  744. "SVGMetadataElement",
  745. "SVGMPathElement",
  746. "SVGNumber",
  747. "SVGNumberList",
  748. "SVGPathElement",
  749. "SVGPatternElement",
  750. "SVGPoint",
  751. "SVGPointList",
  752. "SVGPolygonElement",
  753. "SVGPolylineElement",
  754. "SVGPreserveAspectRatio",
  755. "SVGRadialGradientElement",
  756. "SVGRect",
  757. "SVGRectElement",
  758. "SVGScriptElement",
  759. "SVGSetElement",
  760. "SVGStopElement",
  761. "SVGStringList",
  762. "SVGStyleElement",
  763. "SVGSVGElement",
  764. "SVGSwitchElement",
  765. "SVGSymbolElement",
  766. "SVGTextContentElement",
  767. "SVGTextElement",
  768. "SVGTextPathElement",
  769. "SVGTextPositioningElement",
  770. "SVGTitleElement",
  771. "SVGTransform",
  772. "SVGTransformList",
  773. "SVGTSpanElement",
  774. "SVGUnitTypes",
  775. "SVGUseElement",
  776. "SVGViewElement",
  777. "TaskAttributionTiming",
  778. "Text",
  779. "TextDecoder",
  780. "TextEncoder",
  781. "TextEvent",
  782. "TextMetrics",
  783. "TextTrack",
  784. "TextTrackCue",
  785. "TextTrackCueList",
  786. "TextTrackList",
  787. "TimeRanges",
  788. "Touch",
  789. "TouchEvent",
  790. "TouchList",
  791. "TrackEvent",
  792. "TransitionEvent",
  793. "TreeWalker",
  794. "UIEvent",
  795. "URL",
  796. "URLSearchParams",
  797. "ValidityState",
  798. "VisualViewport",
  799. "VTTCue",
  800. "WaveShaperNode",
  801. "WebAssembly",
  802. "WebGL2RenderingContext",
  803. "WebGLActiveInfo",
  804. "WebGLBuffer",
  805. "WebGLContextEvent",
  806. "WebGLFramebuffer",
  807. "WebGLProgram",
  808. "WebGLQuery",
  809. "WebGLRenderbuffer",
  810. "WebGLRenderingContext",
  811. "WebGLSampler",
  812. "WebGLShader",
  813. "WebGLShaderPrecisionFormat",
  814. "WebGLSync",
  815. "WebGLTexture",
  816. "WebGLTransformFeedback",
  817. "WebGLUniformLocation",
  818. "WebGLVertexArrayObject",
  819. "WebSocket",
  820. "WheelEvent",
  821. "Window",
  822. "Worker",
  823. "WritableStream",
  824. "XMLDocument",
  825. "XMLHttpRequest",
  826. "XMLHttpRequestEventTarget",
  827. "XMLHttpRequestUpload",
  828. "XMLSerializer",
  829. "XPathEvaluator",
  830. "XPathExpression",
  831. "XPathResult",
  832. "XSLTProcessor",
  833. "ArrayLike",
  834. "Exclude",
  835. "Extract",
  836. "InstanceType",
  837. "Iterable",
  838. "IterableIterator",
  839. "NonNullable",
  840. "Omit",
  841. "Partial",
  842. "Pick",
  843. "PromiseLike",
  844. "Readonly",
  845. "ReadonlyArray",
  846. "ReadonlyMap",
  847. "ReadonlySet",
  848. "Record",
  849. "Required",
  850. "ReturnType",
  851. "ThisType",
  852. "WPBlockChildren",
  853. "WPBlockNode",
  854. "WPBlockSelection",
  855. "WPBlockSerializationOptions",
  856. "WPBlock",
  857. "WPBlockPattern",
  858. "WPBlockTypeIcon",
  859. "WPBlockTypeIconRender",
  860. "WPBlockTypeIconDescriptor",
  861. "WPComponent",
  862. "WPElement",
  863. "WPIcon",
  864. "DOMHighResTimeStamp",
  865. "espree",
  866. "void"
  867. ]
  868. }
  869. ],
  870. "jsdoc/require-jsdoc": [
  871. "off"
  872. ],
  873. "jsdoc/require-param-description": [
  874. "off"
  875. ],
  876. "jsdoc/require-returns": [
  877. "off"
  878. ],
  879. "jsdoc/check-alignment": [
  880. "warn"
  881. ],
  882. "jsdoc/check-examples": [
  883. "off"
  884. ],
  885. "jsdoc/check-indentation": [
  886. "off"
  887. ],
  888. "jsdoc/check-param-names": [
  889. "warn"
  890. ],
  891. "jsdoc/check-syntax": [
  892. "off"
  893. ],
  894. "jsdoc/check-tag-names": [
  895. "warn"
  896. ],
  897. "jsdoc/check-types": [
  898. "warn"
  899. ],
  900. "jsdoc/implements-on-classes": [
  901. "warn"
  902. ],
  903. "jsdoc/match-description": [
  904. "off"
  905. ],
  906. "jsdoc/newline-after-description": [
  907. "warn"
  908. ],
  909. "jsdoc/no-types": [
  910. "off"
  911. ],
  912. "jsdoc/require-description": [
  913. "off"
  914. ],
  915. "jsdoc/require-description-complete-sentence": [
  916. "off"
  917. ],
  918. "jsdoc/require-example": [
  919. "off"
  920. ],
  921. "jsdoc/require-hyphen-before-param-description": [
  922. "off"
  923. ],
  924. "jsdoc/require-param": [
  925. "warn"
  926. ],
  927. "jsdoc/require-param-name": [
  928. "warn"
  929. ],
  930. "jsdoc/require-param-type": [
  931. "warn"
  932. ],
  933. "jsdoc/require-returns-check": [
  934. "warn"
  935. ],
  936. "jsdoc/require-returns-description": [
  937. "warn"
  938. ],
  939. "jsdoc/require-returns-type": [
  940. "warn"
  941. ],
  942. "jsdoc/valid-types": [
  943. "warn"
  944. ],
  945. "@wordpress/no-unused-vars-before-return": [
  946. "error",
  947. {
  948. "excludePattern": "^use"
  949. }
  950. ],
  951. "react/display-name": [
  952. "off"
  953. ],
  954. "react/jsx-curly-spacing": [
  955. "error",
  956. {
  957. "when": "always",
  958. "children": true
  959. }
  960. ],
  961. "react/jsx-equals-spacing": [
  962. "error"
  963. ],
  964. "react/jsx-indent": [
  965. "error",
  966. "tab"
  967. ],
  968. "react/jsx-indent-props": [
  969. "error",
  970. "tab"
  971. ],
  972. "react/jsx-key": [
  973. "error"
  974. ],
  975. "react/jsx-tag-spacing": [
  976. "error"
  977. ],
  978. "react/no-children-prop": [
  979. "off"
  980. ],
  981. "react/prop-types": [
  982. "off"
  983. ],
  984. "react/react-in-jsx-scope": [
  985. "off"
  986. ],
  987. "react-hooks/rules-of-hooks": [
  988. "error"
  989. ],
  990. "react/jsx-no-comment-textnodes": [
  991. 2
  992. ],
  993. "react/jsx-no-duplicate-props": [
  994. 2
  995. ],
  996. "react/jsx-no-target-blank": [
  997. 2
  998. ],
  999. "react/jsx-no-undef": [
  1000. 2
  1001. ],
  1002. "react/jsx-uses-react": [
  1003. 2
  1004. ],
  1005. "react/jsx-uses-vars": [
  1006. 2
  1007. ],
  1008. "react/no-danger-with-children": [
  1009. 2
  1010. ],
  1011. "react/no-deprecated": [
  1012. 2
  1013. ],
  1014. "react/no-direct-mutation-state": [
  1015. 2
  1016. ],
  1017. "react/no-find-dom-node": [
  1018. 2
  1019. ],
  1020. "react/no-is-mounted": [
  1021. 2
  1022. ],
  1023. "react/no-render-return-value": [
  1024. 2
  1025. ],
  1026. "react/no-string-refs": [
  1027. 2
  1028. ],
  1029. "react/no-unescaped-entities": [
  1030. 2
  1031. ],
  1032. "react/no-unknown-property": [
  1033. 2
  1034. ],
  1035. "react/no-unsafe": [
  1036. 0
  1037. ],
  1038. "react/require-render-return": [
  1039. 2
  1040. ],
  1041. "@wordpress/valid-sprintf": [
  1042. "error"
  1043. ],
  1044. "@wordpress/no-base-control-with-label-without-id": [
  1045. "error"
  1046. ],
  1047. "@wordpress/no-unguarded-get-range-at": [
  1048. "error"
  1049. ],
  1050. "no-restricted-syntax": [
  1051. "error",
  1052. {
  1053. "selector": "CallExpression[callee.name=/^(__|_n|_nx|_x)$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
  1054. "message": "Translate function arguments must be string literals."
  1055. },
  1056. {
  1057. "selector": "CallExpression[callee.name=/^(_n|_nx|_x)$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
  1058. "message": "Translate function arguments must be string literals."
  1059. },
  1060. {
  1061. "selector": "CallExpression[callee.name=_nx]:not([arguments.3.type=/^Literal|BinaryExpression$/])",
  1062. "message": "Translate function arguments must be string literals."
  1063. }
  1064. ],
  1065. "jsx-a11y/label-has-for": [
  1066. "error",
  1067. {
  1068. "required": "id"
  1069. }
  1070. ],
  1071. "jsx-a11y/media-has-caption": [
  1072. "off"
  1073. ],
  1074. "jsx-a11y/no-noninteractive-tabindex": [
  1075. "off",
  1076. {
  1077. "tags": [],
  1078. "roles": [
  1079. "tabpanel"
  1080. ],
  1081. "allowExpressionValues": true
  1082. }
  1083. ],
  1084. "jsx-a11y/role-has-required-aria-props": [
  1085. "off"
  1086. ],
  1087. "jsx-quotes": [
  1088. "error"
  1089. ],
  1090. "jsx-a11y/accessible-emoji": [
  1091. "error"
  1092. ],
  1093. "jsx-a11y/alt-text": [
  1094. "error"
  1095. ],
  1096. "jsx-a11y/anchor-has-content": [
  1097. "error"
  1098. ],
  1099. "jsx-a11y/anchor-is-valid": [
  1100. "error"
  1101. ],
  1102. "jsx-a11y/aria-activedescendant-has-tabindex": [
  1103. "error"
  1104. ],
  1105. "jsx-a11y/aria-props": [
  1106. "error"
  1107. ],
  1108. "jsx-a11y/aria-proptypes": [
  1109. "error"
  1110. ],
  1111. "jsx-a11y/aria-role": [
  1112. "error"
  1113. ],
  1114. "jsx-a11y/aria-unsupported-elements": [
  1115. "error"
  1116. ],
  1117. "jsx-a11y/click-events-have-key-events": [
  1118. "error"
  1119. ],
  1120. "jsx-a11y/control-has-associated-label": [
  1121. "off",
  1122. {
  1123. "ignoreElements": [
  1124. "audio",
  1125. "canvas",
  1126. "embed",
  1127. "input",
  1128. "textarea",
  1129. "tr",
  1130. "video"
  1131. ],
  1132. "ignoreRoles": [
  1133. "grid",
  1134. "listbox",
  1135. "menu",
  1136. "menubar",
  1137. "radiogroup",
  1138. "row",
  1139. "tablist",
  1140. "toolbar",
  1141. "tree",
  1142. "treegrid"
  1143. ],
  1144. "includeRoles": [
  1145. "alert",
  1146. "dialog"
  1147. ]
  1148. }
  1149. ],
  1150. "jsx-a11y/heading-has-content": [
  1151. "error"
  1152. ],
  1153. "jsx-a11y/html-has-lang": [
  1154. "error"
  1155. ],
  1156. "jsx-a11y/iframe-has-title": [
  1157. "error"
  1158. ],
  1159. "jsx-a11y/img-redundant-alt": [
  1160. "error"
  1161. ],
  1162. "jsx-a11y/interactive-supports-focus": [
  1163. "error",
  1164. {
  1165. "tabbable": [
  1166. "button",
  1167. "checkbox",
  1168. "link",
  1169. "searchbox",
  1170. "spinbutton",
  1171. "switch",
  1172. "textbox"
  1173. ]
  1174. }
  1175. ],
  1176. "jsx-a11y/label-has-associated-control": [
  1177. "error"
  1178. ],
  1179. "jsx-a11y/mouse-events-have-key-events": [
  1180. "error"
  1181. ],
  1182. "jsx-a11y/no-access-key": [
  1183. "error"
  1184. ],
  1185. "jsx-a11y/no-autofocus": [
  1186. "error"
  1187. ],
  1188. "jsx-a11y/no-distracting-elements": [
  1189. "error"
  1190. ],
  1191. "jsx-a11y/no-interactive-element-to-noninteractive-role": [
  1192. "error",
  1193. {
  1194. "tr": [
  1195. "none",
  1196. "presentation"
  1197. ]
  1198. }
  1199. ],
  1200. "jsx-a11y/no-noninteractive-element-interactions": [
  1201. "error",
  1202. {
  1203. "handlers": [
  1204. "onClick",
  1205. "onError",
  1206. "onLoad",
  1207. "onMouseDown",
  1208. "onMouseUp",
  1209. "onKeyPress",
  1210. "onKeyDown",
  1211. "onKeyUp"
  1212. ],
  1213. "alert": [
  1214. "onKeyUp",
  1215. "onKeyDown",
  1216. "onKeyPress"
  1217. ],
  1218. "body": [
  1219. "onError",
  1220. "onLoad"
  1221. ],
  1222. "dialog": [
  1223. "onKeyUp",
  1224. "onKeyDown",
  1225. "onKeyPress"
  1226. ],
  1227. "iframe": [
  1228. "onError",
  1229. "onLoad"
  1230. ],
  1231. "img": [
  1232. "onError",
  1233. "onLoad"
  1234. ]
  1235. }
  1236. ],
  1237. "jsx-a11y/no-noninteractive-element-to-interactive-role": [
  1238. "error",
  1239. {
  1240. "ul": [
  1241. "listbox",
  1242. "menu",
  1243. "menubar",
  1244. "radiogroup",
  1245. "tablist",
  1246. "tree",
  1247. "treegrid"
  1248. ],
  1249. "ol": [
  1250. "listbox",
  1251. "menu",
  1252. "menubar",
  1253. "radiogroup",
  1254. "tablist",
  1255. "tree",
  1256. "treegrid"
  1257. ],
  1258. "li": [
  1259. "menuitem",
  1260. "option",
  1261. "row",
  1262. "tab",
  1263. "treeitem"
  1264. ],
  1265. "table": [
  1266. "grid"
  1267. ],
  1268. "td": [
  1269. "gridcell"
  1270. ]
  1271. }
  1272. ],
  1273. "jsx-a11y/no-onchange": [
  1274. "error"
  1275. ],
  1276. "jsx-a11y/no-redundant-roles": [
  1277. "error"
  1278. ],
  1279. "jsx-a11y/no-static-element-interactions": [
  1280. "error",
  1281. {
  1282. "allowExpressionValues": true,
  1283. "handlers": [
  1284. "onClick",
  1285. "onMouseDown",
  1286. "onMouseUp",
  1287. "onKeyPress",
  1288. "onKeyDown",
  1289. "onKeyUp"
  1290. ]
  1291. }
  1292. ],
  1293. "jsx-a11y/role-supports-aria-props": [
  1294. "error"
  1295. ],
  1296. "jsx-a11y/scope": [
  1297. "error"
  1298. ],
  1299. "jsx-a11y/tabindex-no-positive": [
  1300. "error"
  1301. ]
  1302. },
  1303. "settings": {
  1304. "jsdoc": {
  1305. "preferredTypes": {
  1306. "object": "Object"
  1307. },
  1308. "tagNamePreference": {
  1309. "returns": "return",
  1310. "yields": "yield"
  1311. }
  1312. },
  1313. "react": {
  1314. "version": "16.6"
  1315. }
  1316. },
  1317. "ignorePatterns": []
  1318. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement