eslint-plugin-wyze
Version:
My personal ESLint rules.
69 lines (47 loc) • 1.05 kB
Markdown
is under the maximum length allowed.
The following patterns are not considered problems:
```js
/* eslint wyze/max-file-length: 'error' */
if ( true ) {
// Do something...
}
for ( var i = 0; i < 10; i++ ) {
// Do something...
}
while ( true ) {
// Do something...
}
do {
// Do something...
} while ( true )
switch ( true ) {
// Do something...
}
```
The following patterns are considered problems:
```js
/* eslint wyze/max-file-length: ['error', 15] */
if ( true ) {
// Do something...
}
for ( var i = 0; i < 10; i++ ) {
// Do something...
}
while ( true ) {
// Do something...
}
do {
// Do something...
} while ( true )
switch ( true ) {
// Do something...
}
```
Specify the number of lines you would like files to be under.
You can turn this rule off if you are not concerned with the length of your files.
Keep files to a maximum length.
Checks the line length of files to make sure it