Skip to content

Commit

Permalink
feat: new-line enforcement rules
Browse files Browse the repository at this point in the history
  • Loading branch information
ThisIsManta committed Sep 9, 2024
1 parent 3717196 commit f791e61
Show file tree
Hide file tree
Showing 5 changed files with 1,722 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ Note that 🔧 indicates the rule is [auto-fixable](https://eslint.org/docs/late
|Rule|Description|
|---|---|
|`comment`|enforce starting a single-line comment with either `TODO:`, `HACK:`, `See {url}`, or a first-capitalized word|
|`consecutive-block-new-line` 🔧|enforce having a new line at the end of a non-last block and the other way around|
|`export-name-after-file-name`|enforce naming a default exported identifier after the file name|
|`import-convention`|enforce naming imported identifiers after the user-defined list|
|`import-name-after-file-name`|enforce naming a default imported identifier after the file or the directory name (for an index file)|
|`import-path-from-closest-index`|enforce writing an import path pointing to the closest index file|
|`import-path-without-mentioning-index` 🔧|enforce writing an import path to an index file without mentioning "index.js"|
|`no-shortened-identifier`|enforce naming an identifier without the user-defined abbreviations|
|`no-top-level-require`|enforce writing no top-level `require`|
|`parameter-new-line` 🔧|enforce having consistent new lines between parameters|
|`promise-all-with-static-array`|enforce passing a static array to `Promise.all()`|
|`react-export-default` 🔧|enforce writing React components consistently|
|`react-new-line` 🔧|enforce having an additional empty line between React elements if one of them spreads multiple lines|
|`react-prop-type`|enforce writing type definition for React props|
|`react-sort-props` 🔧|enforce consistent React props sorting|
|`require-name-after-file-name`|enforce naming an identifier after the file name of its `require` statement|
Expand Down
Loading

0 comments on commit f791e61

Please sign in to comment.