Skip to content
This repository was archived by the owner on Jun 20, 2019. It is now read-only.

Commit 1088c8c

Browse files
authored
feat: Add one-var and no-trailing-spaces rules (#14)
Fixes #13
1 parent b10ed23 commit 1088c8c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ module.exports = {
3838
// Disallow declaration of variables that are not used in the code
3939
'no-unused-vars': 'error',
4040
// Stylistic Issues
41+
// Disallow trailing whitespace at the end of lines
42+
'no-trailing-spaces': 'error',
43+
// Enforce variables to be declared either together or separately in functions
44+
'one-var': ['error', 'always'],
4145
// Specify whether backticks, double or single quotes should be used
4246
'quotes': ['error', 'single']
4347
// Legacy

0 commit comments

Comments
 (0)