1 | const eqeqeqRule = require('./eqeqeq-rule');
|
2 | const noExtraParensRule = require('./no-extra-parens-rule');
|
3 |
|
4 | module.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 |
|
16 | '@internal/eqeqeq': ['error', 'always'],
|
17 |
|
18 |
|
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 | };
|