UNPKG

1.05 kBJavaScriptView Raw
1const eqeqeqRule = require('./eqeqeq-rule');
2const noExtraParensRule = require('./no-extra-parens-rule');
3
4module.exports = {
5 rules: {
6 eqeqeq: eqeqeqRule,
7 'no-extra-parens': noExtraParensRule,
8 },
9 configs: {
10 recommended: {
11 plugins: [
12 '@internal/eslint-plugin',
13 ],
14 rules: {
15 // fixes only variable == (or !=) literal expression
16 '@internal/eqeqeq': ['error', 'always'],
17 // https://github.com/eslint/eslint/issues/16626
18 // https://github.com/airbnb/javascript/blob/eslint-config-airbnb-v19.0.4/packages/eslint-config-airbnb-base/rules/errors.js#L66
19 '@internal/no-extra-parens': ['error', 'all', {
20 conditionalAssign: true,
21 enforceForArrowConditionals: false,
22 ignoreJSX: 'all',
23 nestedBinaryExpressions: false,
24 returnAssign: false,
25 }],
26 },
27 },
28 },
29};