eslint-plugin-wyze
Version:
My personal ESLint rules.
36 lines (23 loc) • 749 B
Markdown
by a newline.
> The `--fix` option on the command line can automatically fix some of the problems reported by this rule.
The following patterns are not considered problems:
```js
/* eslint wyze/newline-after-export: 'error' */
const num = 42
export { num }
```
```js
/* eslint wyze/newline-after-export: 'error' */
export const num = 42
const message = 'Okay.'
```
The following patterns are considered problems:
```js
/* eslint wyze/newline-after-export: 'error' */
export const num = 42;
const message = 'Okay'
```
You can turn this rule off if you are not concerned with the consistency of export statements.
Ensures `export` statements are followed