Skip to content
This repository was archived by the owner on Oct 22, 2023. It is now read-only.

Commit 25dbcdf

Browse files
committed
Add special rules, extending the airbnb base coding style
1 parent 9c4f300 commit 25dbcdf

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

index.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
module.exports = {
2+
extends: 'airbnb-base',
3+
rules: {
4+
'consistent-return': ['error', { treatUndefinedAsUnspecified: true }],
5+
'max-len': [
6+
'error',
7+
120, // max line length
8+
2, // tab width
9+
{
10+
ignoreUrls: true,
11+
ignoreComments: false,
12+
ignoreRegExpLiterals: true,
13+
ignoreStrings: false,
14+
ignoreTemplateLiterals: false,
15+
},
16+
],
17+
'no-void': 'off'
18+
},
19+
};

0 commit comments

Comments
 (0)