Skip to content
This repository was archived by the owner on Mar 29, 2020. It is now read-only.

Commit 2e4840e

Browse files
committed
feat(base): add new eslint-plugin-babel rules
1 parent 463c614 commit 2e4840e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/eslint-config/babel.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
plugins: ['babel'],
33
parser: 'babel-eslint',
44
rules: {
5+
'no-unused-expressions': 'off', // disabled in favor of `babel/no-unused-expressions`
56
// https://github.com/babel/eslint-plugin-babel
67
'babel/array-bracket-spacing': 'off',
78
'babel/arrow-parens': 'off',
@@ -11,8 +12,10 @@ module.exports = {
1112
'babel/new-cap': 'off',
1213
'babel/no-await-in-loop': 'off',
1314
'babel/no-invalid-this': 'error',
15+
'babel/no-unused-expressions': ['error', {allowShortCircuit: true}],
1416
'babel/object-curly-spacing': 'off',
1517
'babel/object-shorthand': 'off',
18+
'babel/quotes': 'off',
1619
'babel/semi': 'off',
1720
},
1821
};

0 commit comments

Comments
 (0)