|
5 | 5 | - 💭 - Requires Type Information |
6 | 6 | - 🔍 - Diagnostic |
7 | 7 | - 🔧 - Fixable |
| 8 | +- ⚙️ - Configurable |
| 9 | +- 🐞 - Debug |
8 | 10 | - 🗑️ - Deprecated |
9 | 11 |
|
10 | 12 | ## Core Rules |
|
53 | 55 | | [`no-unstable-default-props`](no-unstable-default-props) | `🔍` | Prevents using referential-type values as default props in object destructuring. | |
54 | 56 | | [`no-unused-class-component-members`](no-unused-class-component-members) | `🔍` | Warns unused class component methods and properties. | |
55 | 57 | | [`no-unused-state`](no-unused-state) | `🔍` | Warns unused class component state. | |
56 | | -| [`no-useless-fragment`](no-useless-fragment) | `🔍` | Prevents using useless `fragment` components or `<>` syntax. | |
| 58 | +| [`no-useless-fragment`](no-useless-fragment) | `🔍` `⚙️` | Prevents using useless `fragment` components or `<>` syntax. | |
57 | 59 | | [`prefer-destructuring-assignment`](prefer-destructuring-assignment) | `🔍` | Enforces using destructuring assignment over property assignment. | |
58 | 60 | | [`prefer-react-namespace-import`](prefer-react-namespace-import) | `🔍` `🔧` | Enforce React is imported via a namespace import | |
59 | 61 | | [`prefer-read-only-props`](prefer-read-only-props) | `🔍` `💭` | Enforces read-only props in components. | |
|
62 | 64 |
|
63 | 65 | ## DOM Rules |
64 | 66 |
|
65 | | -| Rule | Features | Description | |
66 | | -| :--------------------------------------------------------------------------------------------- | :-------- | :-------------------------------------------------------------------------------------- | |
67 | | -| [`no-children-in-void-dom-elements`](dom-no-children-in-void-dom-elements) | `🔍` | Prevents using `children` in void `DOM elements`. | |
68 | | -| [`no-dangerously-set-innerhtml-with-children`](dom-no-dangerously-set-innerhtml-with-children) | `🔍` | Prevents `DOM element` using `dangerouslySetInnerHTML` and `children` at the same time. | |
69 | | -| [`no-dangerously-set-innerhtml`](dom-no-dangerously-set-innerhtml) | `🔍` | Prevents `DOM element` using `dangerouslySetInnerHTML`. | |
70 | | -| [`no-find-dom-node`](dom-no-find-dom-node) | `🔍` | Prevents using `findDOMNode`. | |
71 | | -| [`no-missing-button-type`](dom-no-missing-button-type) | `🔍` | Enforces explicit `type` attribute for `<button>` elements. | |
72 | | -| [`no-missing-iframe-sandbox`](dom-no-missing-iframe-sandbox) | `🔍` | Enforces explicit `sandbox` attribute for `iframe` elements. | |
73 | | -| [`no-namespace`](dom-no-namespace) | `🔍` | Enforces the absence of a `namespace` in React elements. | |
74 | | -| [`no-render-return-value`](dom-no-render-return-value) | `🔍` | Prevents using the return value of `ReactDOM.render`. | |
75 | | -| [`no-script-url`](dom-no-script-url) | `🔍` | Prevents using `javascript:` URLs as the value of certain attributes. | |
76 | | -| [`no-unknown-property`](dom-no-unknown-property) | `🔍` `🔧` | Prevents using unknown `DOM` property | |
77 | | -| [`no-unsafe-iframe-sandbox`](dom-no-unsafe-iframe-sandbox) | `🔍` | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations. | |
78 | | -| [`no-unsafe-target-blank`](dom-no-unsafe-target-blank) | `🔍` | Prevents using `target="_blank"` without `rel="noreferrer noopener"`. | |
| 67 | +| Rule | Features | Description | |
| 68 | +| :--------------------------------------------------------------------------------------------- | :------------ | :-------------------------------------------------------------------------------------- | |
| 69 | +| [`no-children-in-void-dom-elements`](dom-no-children-in-void-dom-elements) | `🔍` | Prevents using `children` in void `DOM elements`. | |
| 70 | +| [`no-dangerously-set-innerhtml-with-children`](dom-no-dangerously-set-innerhtml-with-children) | `🔍` | Prevents `DOM element` using `dangerouslySetInnerHTML` and `children` at the same time. | |
| 71 | +| [`no-dangerously-set-innerhtml`](dom-no-dangerously-set-innerhtml) | `🔍` | Prevents `DOM element` using `dangerouslySetInnerHTML`. | |
| 72 | +| [`no-find-dom-node`](dom-no-find-dom-node) | `🔍` | Prevents using `findDOMNode`. | |
| 73 | +| [`no-missing-button-type`](dom-no-missing-button-type) | `🔍` | Enforces explicit `type` attribute for `<button>` elements. | |
| 74 | +| [`no-missing-iframe-sandbox`](dom-no-missing-iframe-sandbox) | `🔍` | Enforces explicit `sandbox` attribute for `iframe` elements. | |
| 75 | +| [`no-namespace`](dom-no-namespace) | `🔍` | Enforces the absence of a `namespace` in React elements. | |
| 76 | +| [`no-render-return-value`](dom-no-render-return-value) | `🔍` | Prevents using the return value of `ReactDOM.render`. | |
| 77 | +| [`no-script-url`](dom-no-script-url) | `🔍` | Prevents using `javascript:` URLs as the value of certain attributes. | |
| 78 | +| [`no-unknown-property`](dom-no-unknown-property) | `🔍` `🔧` `⚙️` | Prevents using unknown `DOM` property | |
| 79 | +| [`no-unsafe-iframe-sandbox`](dom-no-unsafe-iframe-sandbox) | `🔍` | Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations. | |
| 80 | +| [`no-unsafe-target-blank`](dom-no-unsafe-target-blank) | `🔍` | Prevents using `target="_blank"` without `rel="noreferrer noopener"`. | |
79 | 81 |
|
80 | 82 | ## Web API Rules |
81 | 83 |
|
|
101 | 103 |
|
102 | 104 | | Rule | Features | Description | |
103 | 105 | | :----------------------------------------------------------- | :------- | :----------------------------------------------------------------------------------------- | |
104 | | -| [`component-name`](naming-convention-component-name) | `🔍` | Enforces naming conventions for components. | |
105 | | -| [`filename`](naming-convention-filename) | `🔍` | Enforces naming convention for JSX files. | |
106 | | -| [`filename-extension`](naming-convention-filename-extension) | `🔍` | Enforces consistent use of the JSX file extension. | |
| 106 | +| [`component-name`](naming-convention-component-name) | `🔍` `⚙️` | Enforces naming conventions for components. | |
| 107 | +| [`filename`](naming-convention-filename) | `🔍` `⚙️` | Enforces naming convention for JSX files. | |
| 108 | +| [`filename-extension`](naming-convention-filename-extension) | `🔍` `⚙️` | Enforces consistent use of the JSX file extension. | |
107 | 109 | | [`use-state`](naming-convention-use-state) | `🔍` | Enforces destructuring and symmetric naming of `useState` hook value and setter variables. | |
108 | 110 |
|
109 | 111 | ## Debug Rules |
|
0 commit comments