Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "env": {
- "browser": true,
- "jquery": true,
- "node": true,
- "es6": true
- },
- "globals": {
- "window": true,
- "document": true,
- "wp": "readonly"
- },
- "parser": "C:\\Users\\snarl\\development-snarl\\development-wordpress\\linting-wordpress\\node_modules\\babel-eslint\\lib\\index.js",
- "parserOptions": {
- "sourceType": "module",
- "ecmaFeatures": {
- "jsx": true
- }
- },
- "plugins": [
- "jsx-a11y",
- "react-hooks",
- "react",
- "@wordpress",
- "jsdoc"
- ],
- "rules": {
- "vars-on-top": [
- "off"
- ],
- "arrow-parens": [
- "error",
- "always"
- ],
- "arrow-spacing": [
- "error"
- ],
- "computed-property-spacing": [
- "error",
- "always"
- ],
- "constructor-super": [
- "error"
- ],
- "no-const-assign": [
- "error"
- ],
- "no-dupe-class-members": [
- "error"
- ],
- "no-duplicate-imports": [
- "error"
- ],
- "no-useless-computed-key": [
- "error"
- ],
- "no-useless-constructor": [
- "error"
- ],
- "no-var": [
- "error"
- ],
- "object-shorthand": [
- "error"
- ],
- "prefer-const": [
- "error"
- ],
- "quotes": [
- "error",
- "single",
- {
- "allowTemplateLiterals": true,
- "avoidEscape": true
- }
- ],
- "space-unary-ops": [
- "error",
- {
- "overrides": {
- "!": true,
- "yield": true
- },
- "words": true,
- "nonwords": false
- }
- ],
- "template-curly-spacing": [
- "error",
- "always"
- ],
- "array-bracket-spacing": [
- "error",
- "always"
- ],
- "array-callback-return": [
- "error"
- ],
- "brace-style": [
- "error",
- "1tbs"
- ],
- "camelcase": [
- "error",
- {
- "properties": "never",
- "ignoreDestructuring": false,
- "ignoreImports": false
- }
- ],
- "comma-dangle": [
- "error",
- "always-multiline"
- ],
- "comma-spacing": [
- "error"
- ],
- "comma-style": [
- "error",
- "last"
- ],
- "curly": [
- "error",
- "all"
- ],
- "dot-notation": [
- "error"
- ],
- "eol-last": [
- "error"
- ],
- "eqeqeq": [
- "error"
- ],
- "func-call-spacing": [
- "error"
- ],
- "indent": [
- "error",
- "tab",
- {
- "SwitchCase": 1,
- "flatTernaryExpressions": false,
- "ignoreComments": false
- }
- ],
- "key-spacing": [
- "error"
- ],
- "keyword-spacing": [
- "error"
- ],
- "linebreak-style": [
- "error",
- "unix"
- ],
- "no-alert": [
- "error"
- ],
- "no-bitwise": [
- "error"
- ],
- "no-caller": [
- "error"
- ],
- "no-cond-assign": [
- "error",
- "except-parens"
- ],
- "no-console": [
- "error"
- ],
- "no-debugger": [
- "error"
- ],
- "no-dupe-args": [
- "error"
- ],
- "no-dupe-keys": [
- "error"
- ],
- "no-duplicate-case": [
- "error"
- ],
- "no-else-return": [
- "error"
- ],
- "no-eval": [
- "error"
- ],
- "no-extra-semi": [
- "error"
- ],
- "no-fallthrough": [
- "error"
- ],
- "no-irregular-whitespace": [
- "error"
- ],
- "no-lonely-if": [
- "error"
- ],
- "no-multi-str": [
- "error"
- ],
- "no-mixed-operators": [
- "error"
- ],
- "no-mixed-spaces-and-tabs": [
- "error"
- ],
- "no-multiple-empty-lines": [
- "error",
- {
- "max": 1
- }
- ],
- "no-multi-spaces": [
- "error"
- ],
- "no-negated-in-lhs": [
- "error"
- ],
- "no-nested-ternary": [
- "error"
- ],
- "no-redeclare": [
- "error"
- ],
- "no-shadow": [
- "error"
- ],
- "no-trailing-spaces": [
- "error"
- ],
- "no-undef": [
- "error"
- ],
- "no-undef-init": [
- "error"
- ],
- "no-unreachable": [
- "error"
- ],
- "no-unsafe-negation": [
- "error"
- ],
- "no-unused-expressions": [
- "error"
- ],
- "no-unused-vars": [
- "error"
- ],
- "no-useless-return": [
- "error"
- ],
- "no-whitespace-before-property": [
- "error"
- ],
- "no-with": [
- "error"
- ],
- "object-curly-spacing": [
- "error",
- "always"
- ],
- "one-var-declaration-per-line": [
- "error",
- "initializations"
- ],
- "operator-linebreak": [
- "error",
- "after"
- ],
- "padded-blocks": [
- "error",
- "never"
- ],
- "quote-props": [
- "error",
- "as-needed"
- ],
- "semi": [
- "error"
- ],
- "semi-spacing": [
- "error"
- ],
- "space-before-blocks": [
- "error",
- "always"
- ],
- "space-before-function-paren": [
- "error",
- {
- "anonymous": "never",
- "named": "never",
- "asyncArrow": "always"
- }
- ],
- "space-in-parens": [
- "error",
- "always"
- ],
- "space-infix-ops": [
- "error"
- ],
- "valid-typeof": [
- "error"
- ],
- "wrap-iife": [
- "error"
- ],
- "jsdoc/no-undefined-types": [
- "warn",
- {
- "definedTypes": [
- "AbortController",
- "AbortSignal",
- "AnalyserNode",
- "Animation",
- "AnimationEffectReadOnly",
- "AnimationEffectTiming",
- "AnimationEffectTimingReadOnly",
- "AnimationEvent",
- "AnimationPlaybackEvent",
- "AnimationTimeline",
- "ApplicationCache",
- "ApplicationCacheErrorEvent",
- "Attr",
- "Audio",
- "AudioBuffer",
- "AudioBufferSourceNode",
- "AudioContext",
- "AudioDestinationNode",
- "AudioListener",
- "AudioNode",
- "AudioParam",
- "AudioProcessingEvent",
- "AudioScheduledSourceNode",
- "AudioWorkletGlobalScope ",
- "AudioWorkletNode",
- "AudioWorkletProcessor",
- "BarProp",
- "BaseAudioContext",
- "BatteryManager",
- "BeforeUnloadEvent",
- "BiquadFilterNode",
- "Blob",
- "BlobEvent",
- "BroadcastChannel",
- "BudgetService",
- "ByteLengthQueuingStrategy",
- "Cache",
- "CacheStorage",
- "CanvasCaptureMediaStreamTrack",
- "CanvasGradient",
- "CanvasPattern",
- "CanvasRenderingContext2D",
- "ChannelMergerNode",
- "ChannelSplitterNode",
- "CharacterData",
- "ClipboardEvent",
- "CloseEvent",
- "Comment",
- "CompositionEvent",
- "ConstantSourceNode",
- "ConvolverNode",
- "CountQueuingStrategy",
- "Credential",
- "CredentialsContainer",
- "Crypto",
- "CryptoKey",
- "CSS",
- "CSSConditionRule",
- "CSSFontFaceRule",
- "CSSGroupingRule",
- "CSSImportRule",
- "CSSKeyframeRule",
- "CSSKeyframesRule",
- "CSSMediaRule",
- "CSSNamespaceRule",
- "CSSPageRule",
- "CSSRule",
- "CSSRuleList",
- "CSSStyleDeclaration",
- "CSSStyleRule",
- "CSSStyleSheet",
- "CSSSupportsRule",
- "CustomElementRegistry",
- "CustomEvent",
- "DataTransfer",
- "DataTransferItem",
- "DataTransferItemList",
- "DelayNode",
- "DeviceMotionEvent",
- "DeviceOrientationEvent",
- "Document",
- "DocumentFragment",
- "DocumentType",
- "DOMError",
- "DOMException",
- "DOMImplementation",
- "DOMMatrix",
- "DOMMatrixReadOnly",
- "DOMParser",
- "DOMPoint",
- "DOMPointReadOnly",
- "DOMQuad",
- "DOMRect",
- "DOMRectReadOnly",
- "DOMStringList",
- "DOMStringMap",
- "DOMTokenList",
- "DragEvent",
- "DynamicsCompressorNode",
- "Element",
- "ErrorEvent",
- "Event",
- "EventSource",
- "EventTarget",
- "File",
- "FileList",
- "FileReader",
- "FocusEvent",
- "FontFace",
- "FontFaceSetLoadEvent",
- "FormData",
- "GainNode",
- "Gamepad",
- "GamepadButton",
- "GamepadEvent",
- "HashChangeEvent",
- "Headers",
- "History",
- "HTMLAllCollection",
- "HTMLAnchorElement",
- "HTMLAreaElement",
- "HTMLAudioElement",
- "HTMLBaseElement",
- "HTMLBodyElement",
- "HTMLBRElement",
- "HTMLButtonElement",
- "HTMLCanvasElement",
- "HTMLCollection",
- "HTMLContentElement",
- "HTMLDataElement",
- "HTMLDataListElement",
- "HTMLDetailsElement",
- "HTMLDialogElement",
- "HTMLDirectoryElement",
- "HTMLDivElement",
- "HTMLDListElement",
- "HTMLDocument",
- "HTMLElement",
- "HTMLEmbedElement",
- "HTMLFieldSetElement",
- "HTMLFontElement",
- "HTMLFormControlsCollection",
- "HTMLFormElement",
- "HTMLFrameElement",
- "HTMLFrameSetElement",
- "HTMLHeadElement",
- "HTMLHeadingElement",
- "HTMLHRElement",
- "HTMLHtmlElement",
- "HTMLIFrameElement",
- "HTMLImageElement",
- "HTMLInputElement",
- "HTMLLabelElement",
- "HTMLLegendElement",
- "HTMLLIElement",
- "HTMLLinkElement",
- "HTMLMapElement",
- "HTMLMarqueeElement",
- "HTMLMediaElement",
- "HTMLMenuElement",
- "HTMLMetaElement",
- "HTMLMeterElement",
- "HTMLModElement",
- "HTMLObjectElement",
- "HTMLOListElement",
- "HTMLOptGroupElement",
- "HTMLOptionElement",
- "HTMLOptionsCollection",
- "HTMLOutputElement",
- "HTMLParagraphElement",
- "HTMLParamElement",
- "HTMLPictureElement",
- "HTMLPreElement",
- "HTMLProgressElement",
- "HTMLQuoteElement",
- "HTMLScriptElement",
- "HTMLSelectElement",
- "HTMLShadowElement",
- "HTMLSlotElement",
- "HTMLSourceElement",
- "HTMLSpanElement",
- "HTMLStyleElement",
- "HTMLTableCaptionElement",
- "HTMLTableCellElement",
- "HTMLTableColElement",
- "HTMLTableElement",
- "HTMLTableRowElement",
- "HTMLTableSectionElement",
- "HTMLTemplateElement",
- "HTMLTextAreaElement",
- "HTMLTimeElement",
- "HTMLTitleElement",
- "HTMLTrackElement",
- "HTMLUListElement",
- "HTMLUnknownElement",
- "HTMLVideoElement",
- "IDBCursor",
- "IDBCursorWithValue",
- "IDBDatabase",
- "IDBFactory",
- "IDBIndex",
- "IDBKeyRange",
- "IDBObjectStore",
- "IDBOpenDBRequest",
- "IDBRequest",
- "IDBTransaction",
- "IDBVersionChangeEvent",
- "IdleDeadline",
- "IIRFilterNode",
- "Image",
- "ImageBitmap",
- "ImageBitmapRenderingContext",
- "ImageCapture",
- "ImageData",
- "InputEvent",
- "IntersectionObserver",
- "IntersectionObserverEntry",
- "Intl",
- "KeyboardEvent",
- "KeyframeEffect",
- "KeyframeEffectReadOnly",
- "Location",
- "MediaDeviceInfo",
- "MediaDevices",
- "MediaElementAudioSourceNode",
- "MediaEncryptedEvent",
- "MediaError",
- "MediaKeyMessageEvent",
- "MediaKeySession",
- "MediaKeyStatusMap",
- "MediaKeySystemAccess",
- "MediaList",
- "MediaQueryList",
- "MediaQueryListEvent",
- "MediaRecorder",
- "MediaSettingsRange",
- "MediaSource",
- "MediaStream",
- "MediaStreamAudioDestinationNode",
- "MediaStreamAudioSourceNode",
- "MediaStreamEvent",
- "MediaStreamTrack",
- "MediaStreamTrackEvent",
- "MessageChannel",
- "MessageEvent",
- "MessagePort",
- "MIDIAccess",
- "MIDIConnectionEvent",
- "MIDIInput",
- "MIDIInputMap",
- "MIDIMessageEvent",
- "MIDIOutput",
- "MIDIOutputMap",
- "MIDIPort",
- "MimeType",
- "MimeTypeArray",
- "MouseEvent",
- "MutationEvent",
- "MutationObserver",
- "MutationRecord",
- "NamedNodeMap",
- "NavigationPreloadManager",
- "Navigator",
- "NetworkInformation",
- "Node",
- "NodeFilter",
- "NodeIterator",
- "NodeList",
- "Notification",
- "OfflineAudioCompletionEvent",
- "OfflineAudioContext",
- "OffscreenCanvas",
- "Option",
- "OscillatorNode",
- "PageTransitionEvent",
- "PannerNode",
- "Path2D",
- "PaymentAddress",
- "PaymentRequest",
- "PaymentRequestUpdateEvent",
- "PaymentResponse",
- "Performance",
- "PerformanceEntry",
- "PerformanceLongTaskTiming",
- "PerformanceMark",
- "PerformanceMeasure",
- "PerformanceNavigation",
- "PerformanceNavigationTiming",
- "PerformanceObserver",
- "PerformanceObserverEntryList",
- "PerformancePaintTiming",
- "PerformanceResourceTiming",
- "PerformanceTiming",
- "PeriodicWave",
- "Permissions",
- "PermissionStatus",
- "PhotoCapabilities",
- "Plugin",
- "PluginArray",
- "PointerEvent",
- "PopStateEvent",
- "Presentation",
- "PresentationAvailability",
- "PresentationConnection",
- "PresentationConnectionAvailableEvent",
- "PresentationConnectionCloseEvent",
- "PresentationConnectionList",
- "PresentationReceiver",
- "PresentationRequest",
- "ProcessingInstruction",
- "ProgressEvent",
- "PromiseRejectionEvent",
- "PushManager",
- "PushSubscription",
- "PushSubscriptionOptions",
- "RadioNodeList",
- "Range",
- "ReadableStream",
- "RemotePlayback",
- "Request",
- "ResizeObserver",
- "ResizeObserverEntry",
- "Response",
- "RTCCertificate",
- "RTCDataChannel",
- "RTCDataChannelEvent",
- "RTCDtlsTransport",
- "RTCIceCandidate",
- "RTCIceGatherer",
- "RTCIceTransport",
- "RTCPeerConnection",
- "RTCPeerConnectionIceEvent",
- "RTCRtpContributingSource",
- "RTCRtpReceiver",
- "RTCRtpSender",
- "RTCSctpTransport",
- "RTCSessionDescription",
- "RTCStatsReport",
- "RTCTrackEvent",
- "Screen",
- "ScreenOrientation",
- "ScriptProcessorNode",
- "SecurityPolicyViolationEvent",
- "Selection",
- "ServiceWorker",
- "ServiceWorkerContainer",
- "ServiceWorkerRegistration",
- "ShadowRoot",
- "SharedWorker",
- "SourceBuffer",
- "SourceBufferList",
- "SpeechSynthesisEvent",
- "SpeechSynthesisUtterance",
- "StaticRange",
- "StereoPannerNode",
- "Storage",
- "StorageEvent",
- "StorageManager",
- "StyleSheet",
- "StyleSheetList",
- "SubtleCrypto",
- "SVGAElement",
- "SVGAngle",
- "SVGAnimatedAngle",
- "SVGAnimatedBoolean",
- "SVGAnimatedEnumeration",
- "SVGAnimatedInteger",
- "SVGAnimatedLength",
- "SVGAnimatedLengthList",
- "SVGAnimatedNumber",
- "SVGAnimatedNumberList",
- "SVGAnimatedPreserveAspectRatio",
- "SVGAnimatedRect",
- "SVGAnimatedString",
- "SVGAnimatedTransformList",
- "SVGAnimateElement",
- "SVGAnimateMotionElement",
- "SVGAnimateTransformElement",
- "SVGAnimationElement",
- "SVGCircleElement",
- "SVGClipPathElement",
- "SVGComponentTransferFunctionElement",
- "SVGDefsElement",
- "SVGDescElement",
- "SVGDiscardElement",
- "SVGElement",
- "SVGEllipseElement",
- "SVGFEBlendElement",
- "SVGFEColorMatrixElement",
- "SVGFEComponentTransferElement",
- "SVGFECompositeElement",
- "SVGFEConvolveMatrixElement",
- "SVGFEDiffuseLightingElement",
- "SVGFEDisplacementMapElement",
- "SVGFEDistantLightElement",
- "SVGFEDropShadowElement",
- "SVGFEFloodElement",
- "SVGFEFuncAElement",
- "SVGFEFuncBElement",
- "SVGFEFuncGElement",
- "SVGFEFuncRElement",
- "SVGFEGaussianBlurElement",
- "SVGFEImageElement",
- "SVGFEMergeElement",
- "SVGFEMergeNodeElement",
- "SVGFEMorphologyElement",
- "SVGFEOffsetElement",
- "SVGFEPointLightElement",
- "SVGFESpecularLightingElement",
- "SVGFESpotLightElement",
- "SVGFETileElement",
- "SVGFETurbulenceElement",
- "SVGFilterElement",
- "SVGForeignObjectElement",
- "SVGGElement",
- "SVGGeometryElement",
- "SVGGradientElement",
- "SVGGraphicsElement",
- "SVGImageElement",
- "SVGLength",
- "SVGLengthList",
- "SVGLinearGradientElement",
- "SVGLineElement",
- "SVGMarkerElement",
- "SVGMaskElement",
- "SVGMatrix",
- "SVGMetadataElement",
- "SVGMPathElement",
- "SVGNumber",
- "SVGNumberList",
- "SVGPathElement",
- "SVGPatternElement",
- "SVGPoint",
- "SVGPointList",
- "SVGPolygonElement",
- "SVGPolylineElement",
- "SVGPreserveAspectRatio",
- "SVGRadialGradientElement",
- "SVGRect",
- "SVGRectElement",
- "SVGScriptElement",
- "SVGSetElement",
- "SVGStopElement",
- "SVGStringList",
- "SVGStyleElement",
- "SVGSVGElement",
- "SVGSwitchElement",
- "SVGSymbolElement",
- "SVGTextContentElement",
- "SVGTextElement",
- "SVGTextPathElement",
- "SVGTextPositioningElement",
- "SVGTitleElement",
- "SVGTransform",
- "SVGTransformList",
- "SVGTSpanElement",
- "SVGUnitTypes",
- "SVGUseElement",
- "SVGViewElement",
- "TaskAttributionTiming",
- "Text",
- "TextDecoder",
- "TextEncoder",
- "TextEvent",
- "TextMetrics",
- "TextTrack",
- "TextTrackCue",
- "TextTrackCueList",
- "TextTrackList",
- "TimeRanges",
- "Touch",
- "TouchEvent",
- "TouchList",
- "TrackEvent",
- "TransitionEvent",
- "TreeWalker",
- "UIEvent",
- "URL",
- "URLSearchParams",
- "ValidityState",
- "VisualViewport",
- "VTTCue",
- "WaveShaperNode",
- "WebAssembly",
- "WebGL2RenderingContext",
- "WebGLActiveInfo",
- "WebGLBuffer",
- "WebGLContextEvent",
- "WebGLFramebuffer",
- "WebGLProgram",
- "WebGLQuery",
- "WebGLRenderbuffer",
- "WebGLRenderingContext",
- "WebGLSampler",
- "WebGLShader",
- "WebGLShaderPrecisionFormat",
- "WebGLSync",
- "WebGLTexture",
- "WebGLTransformFeedback",
- "WebGLUniformLocation",
- "WebGLVertexArrayObject",
- "WebSocket",
- "WheelEvent",
- "Window",
- "Worker",
- "WritableStream",
- "XMLDocument",
- "XMLHttpRequest",
- "XMLHttpRequestEventTarget",
- "XMLHttpRequestUpload",
- "XMLSerializer",
- "XPathEvaluator",
- "XPathExpression",
- "XPathResult",
- "XSLTProcessor",
- "ArrayLike",
- "Exclude",
- "Extract",
- "InstanceType",
- "Iterable",
- "IterableIterator",
- "NonNullable",
- "Omit",
- "Partial",
- "Pick",
- "PromiseLike",
- "Readonly",
- "ReadonlyArray",
- "ReadonlyMap",
- "ReadonlySet",
- "Record",
- "Required",
- "ReturnType",
- "ThisType",
- "WPBlockChildren",
- "WPBlockNode",
- "WPBlockSelection",
- "WPBlockSerializationOptions",
- "WPBlock",
- "WPBlockPattern",
- "WPBlockTypeIcon",
- "WPBlockTypeIconRender",
- "WPBlockTypeIconDescriptor",
- "WPComponent",
- "WPElement",
- "WPIcon",
- "DOMHighResTimeStamp",
- "espree",
- "void"
- ]
- }
- ],
- "jsdoc/require-jsdoc": [
- "off"
- ],
- "jsdoc/require-param-description": [
- "off"
- ],
- "jsdoc/require-returns": [
- "off"
- ],
- "jsdoc/check-alignment": [
- "warn"
- ],
- "jsdoc/check-examples": [
- "off"
- ],
- "jsdoc/check-indentation": [
- "off"
- ],
- "jsdoc/check-param-names": [
- "warn"
- ],
- "jsdoc/check-syntax": [
- "off"
- ],
- "jsdoc/check-tag-names": [
- "warn"
- ],
- "jsdoc/check-types": [
- "warn"
- ],
- "jsdoc/implements-on-classes": [
- "warn"
- ],
- "jsdoc/match-description": [
- "off"
- ],
- "jsdoc/newline-after-description": [
- "warn"
- ],
- "jsdoc/no-types": [
- "off"
- ],
- "jsdoc/require-description": [
- "off"
- ],
- "jsdoc/require-description-complete-sentence": [
- "off"
- ],
- "jsdoc/require-example": [
- "off"
- ],
- "jsdoc/require-hyphen-before-param-description": [
- "off"
- ],
- "jsdoc/require-param": [
- "warn"
- ],
- "jsdoc/require-param-name": [
- "warn"
- ],
- "jsdoc/require-param-type": [
- "warn"
- ],
- "jsdoc/require-returns-check": [
- "warn"
- ],
- "jsdoc/require-returns-description": [
- "warn"
- ],
- "jsdoc/require-returns-type": [
- "warn"
- ],
- "jsdoc/valid-types": [
- "warn"
- ],
- "@wordpress/no-unused-vars-before-return": [
- "error",
- {
- "excludePattern": "^use"
- }
- ],
- "react/display-name": [
- "off"
- ],
- "react/jsx-curly-spacing": [
- "error",
- {
- "when": "always",
- "children": true
- }
- ],
- "react/jsx-equals-spacing": [
- "error"
- ],
- "react/jsx-indent": [
- "error",
- "tab"
- ],
- "react/jsx-indent-props": [
- "error",
- "tab"
- ],
- "react/jsx-key": [
- "error"
- ],
- "react/jsx-tag-spacing": [
- "error"
- ],
- "react/no-children-prop": [
- "off"
- ],
- "react/prop-types": [
- "off"
- ],
- "react/react-in-jsx-scope": [
- "off"
- ],
- "react-hooks/rules-of-hooks": [
- "error"
- ],
- "react/jsx-no-comment-textnodes": [
- 2
- ],
- "react/jsx-no-duplicate-props": [
- 2
- ],
- "react/jsx-no-target-blank": [
- 2
- ],
- "react/jsx-no-undef": [
- 2
- ],
- "react/jsx-uses-react": [
- 2
- ],
- "react/jsx-uses-vars": [
- 2
- ],
- "react/no-danger-with-children": [
- 2
- ],
- "react/no-deprecated": [
- 2
- ],
- "react/no-direct-mutation-state": [
- 2
- ],
- "react/no-find-dom-node": [
- 2
- ],
- "react/no-is-mounted": [
- 2
- ],
- "react/no-render-return-value": [
- 2
- ],
- "react/no-string-refs": [
- 2
- ],
- "react/no-unescaped-entities": [
- 2
- ],
- "react/no-unknown-property": [
- 2
- ],
- "react/no-unsafe": [
- 0
- ],
- "react/require-render-return": [
- 2
- ],
- "@wordpress/valid-sprintf": [
- "error"
- ],
- "@wordpress/no-base-control-with-label-without-id": [
- "error"
- ],
- "@wordpress/no-unguarded-get-range-at": [
- "error"
- ],
- "no-restricted-syntax": [
- "error",
- {
- "selector": "CallExpression[callee.name=/^(__|_n|_nx|_x)$/]:not([arguments.0.type=/^Literal|BinaryExpression$/])",
- "message": "Translate function arguments must be string literals."
- },
- {
- "selector": "CallExpression[callee.name=/^(_n|_nx|_x)$/]:not([arguments.1.type=/^Literal|BinaryExpression$/])",
- "message": "Translate function arguments must be string literals."
- },
- {
- "selector": "CallExpression[callee.name=_nx]:not([arguments.3.type=/^Literal|BinaryExpression$/])",
- "message": "Translate function arguments must be string literals."
- }
- ],
- "jsx-a11y/label-has-for": [
- "error",
- {
- "required": "id"
- }
- ],
- "jsx-a11y/media-has-caption": [
- "off"
- ],
- "jsx-a11y/no-noninteractive-tabindex": [
- "off",
- {
- "tags": [],
- "roles": [
- "tabpanel"
- ],
- "allowExpressionValues": true
- }
- ],
- "jsx-a11y/role-has-required-aria-props": [
- "off"
- ],
- "jsx-quotes": [
- "error"
- ],
- "jsx-a11y/accessible-emoji": [
- "error"
- ],
- "jsx-a11y/alt-text": [
- "error"
- ],
- "jsx-a11y/anchor-has-content": [
- "error"
- ],
- "jsx-a11y/anchor-is-valid": [
- "error"
- ],
- "jsx-a11y/aria-activedescendant-has-tabindex": [
- "error"
- ],
- "jsx-a11y/aria-props": [
- "error"
- ],
- "jsx-a11y/aria-proptypes": [
- "error"
- ],
- "jsx-a11y/aria-role": [
- "error"
- ],
- "jsx-a11y/aria-unsupported-elements": [
- "error"
- ],
- "jsx-a11y/click-events-have-key-events": [
- "error"
- ],
- "jsx-a11y/control-has-associated-label": [
- "off",
- {
- "ignoreElements": [
- "audio",
- "canvas",
- "embed",
- "input",
- "textarea",
- "tr",
- "video"
- ],
- "ignoreRoles": [
- "grid",
- "listbox",
- "menu",
- "menubar",
- "radiogroup",
- "row",
- "tablist",
- "toolbar",
- "tree",
- "treegrid"
- ],
- "includeRoles": [
- "alert",
- "dialog"
- ]
- }
- ],
- "jsx-a11y/heading-has-content": [
- "error"
- ],
- "jsx-a11y/html-has-lang": [
- "error"
- ],
- "jsx-a11y/iframe-has-title": [
- "error"
- ],
- "jsx-a11y/img-redundant-alt": [
- "error"
- ],
- "jsx-a11y/interactive-supports-focus": [
- "error",
- {
- "tabbable": [
- "button",
- "checkbox",
- "link",
- "searchbox",
- "spinbutton",
- "switch",
- "textbox"
- ]
- }
- ],
- "jsx-a11y/label-has-associated-control": [
- "error"
- ],
- "jsx-a11y/mouse-events-have-key-events": [
- "error"
- ],
- "jsx-a11y/no-access-key": [
- "error"
- ],
- "jsx-a11y/no-autofocus": [
- "error"
- ],
- "jsx-a11y/no-distracting-elements": [
- "error"
- ],
- "jsx-a11y/no-interactive-element-to-noninteractive-role": [
- "error",
- {
- "tr": [
- "none",
- "presentation"
- ]
- }
- ],
- "jsx-a11y/no-noninteractive-element-interactions": [
- "error",
- {
- "handlers": [
- "onClick",
- "onError",
- "onLoad",
- "onMouseDown",
- "onMouseUp",
- "onKeyPress",
- "onKeyDown",
- "onKeyUp"
- ],
- "alert": [
- "onKeyUp",
- "onKeyDown",
- "onKeyPress"
- ],
- "body": [
- "onError",
- "onLoad"
- ],
- "dialog": [
- "onKeyUp",
- "onKeyDown",
- "onKeyPress"
- ],
- "iframe": [
- "onError",
- "onLoad"
- ],
- "img": [
- "onError",
- "onLoad"
- ]
- }
- ],
- "jsx-a11y/no-noninteractive-element-to-interactive-role": [
- "error",
- {
- "ul": [
- "listbox",
- "menu",
- "menubar",
- "radiogroup",
- "tablist",
- "tree",
- "treegrid"
- ],
- "ol": [
- "listbox",
- "menu",
- "menubar",
- "radiogroup",
- "tablist",
- "tree",
- "treegrid"
- ],
- "li": [
- "menuitem",
- "option",
- "row",
- "tab",
- "treeitem"
- ],
- "table": [
- "grid"
- ],
- "td": [
- "gridcell"
- ]
- }
- ],
- "jsx-a11y/no-onchange": [
- "error"
- ],
- "jsx-a11y/no-redundant-roles": [
- "error"
- ],
- "jsx-a11y/no-static-element-interactions": [
- "error",
- {
- "allowExpressionValues": true,
- "handlers": [
- "onClick",
- "onMouseDown",
- "onMouseUp",
- "onKeyPress",
- "onKeyDown",
- "onKeyUp"
- ]
- }
- ],
- "jsx-a11y/role-supports-aria-props": [
- "error"
- ],
- "jsx-a11y/scope": [
- "error"
- ],
- "jsx-a11y/tabindex-no-positive": [
- "error"
- ]
- },
- "settings": {
- "jsdoc": {
- "preferredTypes": {
- "object": "Object"
- },
- "tagNamePreference": {
- "returns": "return",
- "yields": "yield"
- }
- },
- "react": {
- "version": "16.6"
- }
- },
- "ignorePatterns": []
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement