Skip to content

Commit dd0277a

Browse files
committed
Add lint rule for function definition
1 parent f559829 commit dd0277a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

index.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
module.exports = {
44
extends: 'airbnb-base',
55
env: {
6-
browser: true,
7-
es6: true,
8-
jasmine: true,
9-
mocha: true,
10-
node: true
6+
browser: true,
7+
es6: true,
8+
jasmine: true,
9+
mocha: true,
10+
node: true
1111
},
1212
parserOptions: {
1313
sourceType: 'script'
@@ -16,6 +16,7 @@ module.exports = {
1616
'comma-dangle': ['error', 'never'],
1717
'no-plusplus': 'off',
1818
'no-underscore-dangle': ['error', {allowAfterThis: true}],
19+
'no-use-before-define': ['error', {functions: false}],
1920
'object-curly-spacing': ['error', 'never']
2021
}
2122
};

0 commit comments

Comments
 (0)