0.23.5 • Published 7 months ago

@locker/eslint-plugin-locker v0.23.5

Weekly downloads
115
License
SEE LICENSE IN LI...
Repository
github
Last release
7 months ago

@locker/eslint-plugin-locker

Lightning Web Security ESLint rules

Installation

$ yarn add --dev eslint @locker/eslint-plugin-locker

Usage

Add @locker/eslint-plugin-locker to the plugins section of your configuration. Then configure the desired rules in the rules section.

Example of .eslintrc:

{
    "plugins": ["@locker/eslint-plugin-locker"],
    "rules": {
        "@locker/locker/blocked-document-properties": "error",
        "@locker/locker/distorted-document-cookie": "warn"
    }
}

For more details about configuration please refer to the dedicated section in the ESLint documentation: https://eslint.org/docs/user-guide/configuring

Configurations

To choose configuration settings, install the @locker/eslint-config-locker sharable configuration package.

Rules

Lightning Web Security

Rule IDDescriptionFixable Using
@locker/locker/distorted-cachestorage-propertiesdistorted CacheStorage properties
@locker/locker/distorted-cookie-store-blocked-propertiesdisallowed CookieStore properties
@locker/locker/distorted-cookie-store-propertiesdistorted CookieStore properties
@locker/locker/distorted-data-transfer-blocked-propertiesdisallow blocked DataTransfer properties
@locker/locker/distorted-document-blocked-propertiesdisallow blocked Document properties
@locker/locker/distorted-document-cookiedistorted document.cookie
@locker/locker/distorted-document-domain-setterdistort Document#domain setter
@locker/locker/distorted-document-element-replacechildrendistort {DocumentElement}.prototype.replaceChildren
@locker/locker/distorted-document-exec-commanddistorted document.execCommand
@locker/locker/distorted-element-attach-shadowdistorted Element.prototype.attachShadow
@locker/locker/distorted-element-blocked-propertiesdisallow blocked Element properties
@locker/locker/distorted-element-get-inner-htmldistort Element.prototype.getInnerHTML
@locker/locker/distorted-element-inner-html-setterdistort Element.prototype.innerHTML setter
@locker/locker/distorted-element-insert-adjacent-htmldistort Element.prototype.insertAdjacentHTML
@locker/locker/distorted-element-outer-html-setterdistort Element.prototype.outerHTML setter
@locker/locker/distorted-element-set-attributedistort Element.prototype.setAttribute APIs
@locker/locker/distorted-element-set-htmldistort Element.prototype.setHTML
@locker/locker/distorted-element-sethtmlunsafedistort ElementShadowRooot.prototype.setHTMLUnsafe
@locker/locker/distorted-element-shadow-root-getterdistort Element.prototype.shadowRoot getter
@locker/locker/distorted-element-toggle-attributedistort Element.prototype.toggleAttribute
@locker/locker/distorted-html-element-blocked-propertiesdisallow blocked HTMLElement properties
@locker/locker/distorted-html-element-inner-text-setterdistort HTMLElement.prototype.innerText setter
@locker/locker/distorted-html-element-outer-text-setterdistort HTMLElement.prototype.outerText setter
@locker/locker/distorted-html-embed-object-element-blocked-propertiesdisallow blocked HTML{EmbedObject}Element properties
@locker/locker/distorted-html-iframe-element-blocked-propertiesdisallow blocked HTMLIFrameElement properties
@locker/locker/distorted-html-iframe-script-element-src-setterdistort HTML{IFrameScript}Element.prototype.src setter
@locker/locker/distorted-html-link-element-rel-list-setterdistort HTMLLinkElement.prototype.relList setter
@locker/locker/distorted-html-link-element-rel-setterdistort HTMLLinkElement.prototype.rel setter
@locker/locker/distorted-named-node-map-set-named-itemdistorted NamedNodeMap.prototype.setNamedItem
@locker/locker/distorted-navigator-sendbeacondistorted navigator.sendBeacon
@locker/locker/distorted-navigator-service-worker-getterdistorted navigator.serviceWorker getter
@locker/locker/distorted-node-insertbeforedistort Node.prototype.insertBefore
@locker/locker/distorted-node-removechilddistort Node.prototype.removeChild
@locker/locker/distorted-node-replacechilddistort Node.prototype.replaceChild
@locker/locker/distorted-node-text-content-setterdistort Node.prototype.textContent setter
@locker/locker/distorted-range-create-contextual-fragmentdistorted Range.prototype.createContextualFragment
@locker/locker/distorted-range-delete-contentsdistorted Range.prototype.deleteContents
@locker/locker/distorted-range-extract-contentsdistorted Range.prototype.extractContents
@locker/locker/distorted-range-insertnodedistorted Range.prototype.insertNode
@locker/locker/distorted-shared-worker-constructordistorted SharedWorker constructor
@locker/locker/distorted-storage-constructordistorted Storage constructor
@locker/locker/distorted-trusted-type-policy-factory-create-policydistort TrustedTypePolicyFactory.prototype.createPolicy
@locker/locker/distorted-url-create-object-urldistorted URL.createObjectURL
@locker/locker/distorted-window-blocked-propertiesdisallow blocked Window properties
@locker/locker/distorted-window-fetchdistorted window.fetch
@locker/locker/distorted-window-frames-getterdistorted window.frames getter
@locker/locker/distorted-window-length-getterdistorted window.length getter
@locker/locker/distorted-window-onstorage-setterdistorted window.onstorage setter
@locker/locker/distorted-window-set-intervaldistorted window.setInterval
@locker/locker/distorted-window-set-timeoutdistorted window.setTimeout
@locker/locker/distorted-worker-constructordistorted Worker constructor
@locker/locker/distorted-xml-http-request-window-opendistorted {XMLHttpRequestWindow}.prototype.open
@locker/locker/distorted-xsltprocessor-transformtodocumentdistorted XSLTProcessor.prototype.transformToDocument
@locker/locker/distorted-xsltprocessor-transformtofragmentdistorted XSLTProcessor.prototype.transformToFragment
@locker/locker/undefined-document-alldocument.all is undefined
0.23.5

7 months ago

0.23.4

7 months ago

0.23.3

8 months ago

0.22.6

8 months ago

0.23.2

8 months ago

0.23.1

8 months ago

0.21.8

11 months ago

0.21.7

12 months ago

0.21.9

11 months ago

0.22.5

10 months ago

0.22.4

10 months ago

0.22.3

11 months ago

0.21.10

11 months ago

0.21.6

1 year ago

0.22.2

1 year ago

0.22.1

1 year ago

0.21.5

1 year ago

0.21.4

1 year ago

0.20.17

1 year ago

0.20.16

1 year ago

0.21.3

1 year ago

0.20.15

1 year ago

0.21.2

1 year ago

0.21.2-test.0

1 year ago

0.21.1

1 year ago

0.20.13

1 year ago

0.20.12

1 year ago

0.20.11

1 year ago

0.21.0

1 year ago

0.19.17

1 year ago

0.20.10

1 year ago

0.20.9

1 year ago

0.20.1

2 years ago

0.20.0

2 years ago

0.18.24

2 years ago

0.19.11

2 years ago

0.19.12

2 years ago

0.19.13

2 years ago

0.19.14

2 years ago

0.19.15

2 years ago

0.19.16

2 years ago

0.20.8

1 year ago

0.20.7

1 year ago

0.20.6

2 years ago

0.20.5

2 years ago

0.20.4

2 years ago

0.20.3

2 years ago

0.20.2

2 years ago

0.18.23

2 years ago

0.19.9

2 years ago

0.18.22

2 years ago

0.19.10

2 years ago

0.19.8

2 years ago

0.19.3

2 years ago

0.19.4

2 years ago

0.19.5

2 years ago

0.19.6

2 years ago

0.19.7

2 years ago

0.18.21

2 years ago

0.18.20

2 years ago

0.17.23

2 years ago

0.17.25

2 years ago

0.17.24

2 years ago

0.17.27

2 years ago

0.17.26

2 years ago

0.18.9

2 years ago

0.18.4

2 years ago

0.18.5

2 years ago

0.18.6

2 years ago

0.18.7

2 years ago

0.18.8

2 years ago

0.17.29

2 years ago

0.17.28

2 years ago

0.17.30

2 years ago

0.18.11

2 years ago

0.18.10

2 years ago

0.18.13

2 years ago

0.18.12

2 years ago

0.18.15

2 years ago

0.18.14

2 years ago

0.18.17

2 years ago

0.18.16

2 years ago

0.19.0

2 years ago

0.19.1

2 years ago

0.19.2

2 years ago

0.18.19

2 years ago

0.18.18

2 years ago

0.17.18

2 years ago

0.17.17

3 years ago

0.17.19

2 years ago

0.17.21

2 years ago

0.17.20

2 years ago

0.17.22

2 years ago

0.18.1

2 years ago

0.18.2

2 years ago

0.18.3

2 years ago

0.18.0

2 years ago

0.16.30

3 years ago

0.17.7

3 years ago

0.17.8

3 years ago

0.17.9

3 years ago

0.17.10

3 years ago

0.17.12

3 years ago

0.17.11

3 years ago

0.17.14

3 years ago

0.17.13

3 years ago

0.17.16

3 years ago

0.17.15

3 years ago

0.17.9-test.4

3 years ago

0.17.9-test.3

3 years ago

0.17.9-test.0

3 years ago

0.17.9-test.1

3 years ago

0.16.29

3 years ago

0.16.28

3 years ago

0.17.4

3 years ago

0.17.5

3 years ago

0.17.6

3 years ago

0.16.25

3 years ago

0.16.26

3 years ago

0.16.27

3 years ago

0.17.2

3 years ago

0.17.3

3 years ago

0.17.0

3 years ago

0.17.1

3 years ago

0.16.21-test.2

3 years ago

0.16.21-test.1

3 years ago

0.17.1-test.0

3 years ago

0.16.19

3 years ago

0.16.21

3 years ago

0.16.22

3 years ago

0.16.20

3 years ago

0.16.23

3 years ago

0.16.24

3 years ago

0.16.10

3 years ago

0.16.11

3 years ago

0.16.14

3 years ago

0.16.15

3 years ago

0.16.12

3 years ago

0.16.13

3 years ago

0.16.18

3 years ago

0.16.16

3 years ago

0.16.17

3 years ago

0.15.17

3 years ago

0.16.3

3 years ago

0.16.4

3 years ago

0.16.5

3 years ago

0.16.6

3 years ago

0.16.7

3 years ago

0.16.8

3 years ago

0.16.9

3 years ago

0.16.1

3 years ago

0.16.2

3 years ago

0.15.13

3 years ago

0.15.14

3 years ago

0.15.12

3 years ago

0.15.15

3 years ago

0.15.16

3 years ago

0.14.28

3 years ago

0.15.11

3 years ago

0.15.4

3 years ago

0.15.5

3 years ago

0.15.6

3 years ago

0.15.7

3 years ago

0.15.8

3 years ago

0.15.9

3 years ago

0.15.3

3 years ago

0.14.24

3 years ago

0.14.23

3 years ago

0.14.22

3 years ago

0.14.27

3 years ago

0.14.26

3 years ago

0.14.25

3 years ago

0.15.10

3 years ago

0.15.0

3 years ago

0.15.2

3 years ago

0.14.20

3 years ago

0.14.21

3 years ago

0.14.17

4 years ago

0.14.16

4 years ago

0.14.15

4 years ago

0.14.14

4 years ago

0.14.19

4 years ago

0.14.18

4 years ago

0.14.13

4 years ago

0.14.12

4 years ago

0.14.11

4 years ago

0.14.6

4 years ago

0.14.7

4 years ago

0.13.10

4 years ago

0.14.5

4 years ago

0.13.9

4 years ago

0.14.2

4 years ago

0.14.3

4 years ago

0.14.4

4 years ago

0.14.1

4 years ago

0.14.0

4 years ago

0.13.7

4 years ago

0.13.8

4 years ago

0.13.6

4 years ago

0.13.5

4 years ago

0.13.4

4 years ago

0.13.3

4 years ago

0.13.2

4 years ago

0.13.1

4 years ago

0.12.14

4 years ago

0.12.13

4 years ago

0.12.12

4 years ago

0.12.10

4 years ago

0.12.9

4 years ago

0.12.8

4 years ago

0.12.7

4 years ago

0.12.6

4 years ago

0.12.4

4 years ago

0.12.3

4 years ago

0.12.2

4 years ago

0.12.1

4 years ago

0.11.16

5 years ago

0.11.15

5 years ago

0.11.11

5 years ago

0.11.9

5 years ago