@@ -4,6 +4,10 @@ import type { Linter } from 'eslint';
44export const eslintConfigCore : Linter . BaseConfig = {
55 extends : [ require . resolve ( '@azimutlabs/eslint-config-env' ) ] ,
66 rules : {
7+ // Require constructor names to begin with a capital letter.
8+ 'new-cap' : 'off' ,
9+ // Disallow async functions which have no await expression.
10+ 'require-await' : 'off' ,
711 // Enforces getter/setter pairs in objects and classes.
812 'accessor-pairs' : 'off' ,
913 // Limit Cyclomatic Complexity.
@@ -91,7 +95,13 @@ export const eslintConfigCore: Linter.BaseConfig = {
9195 // Disallow unnecessary boolean casts.
9296 'no-extra-boolean-cast' : 'warn' ,
9397 // Disallow unnecessary parentheses.
94- 'no-extra-parens' : 'warn' ,
98+ 'no-extra-parens' : [
99+ 'warn' ,
100+ 'all' ,
101+ {
102+ ignoreJSX : 'multi-line' ,
103+ } ,
104+ ] ,
95105 // Disallow unnecessary semicolons.
96106 'no-extra-semi' : 'warn' ,
97107 // Disallow multiple spaces in regular expression literals.
@@ -172,8 +182,6 @@ export const eslintConfigCore: Linter.BaseConfig = {
172182 ] ,
173183 // Require Radix Parameter.
174184 'radix' : [ 'warn' , 'as-needed' ] ,
175- // Disallow async functions which have no await expression.
176- 'require-await' : 'warn' ,
177185 // Enforce the use of u flag on RegExp.
178186 'require-unicode-regexp' : 'warn' ,
179187 // Require IIFEs to be Wrapped.
@@ -301,13 +309,6 @@ export const eslintConfigCore: Linter.BaseConfig = {
301309 'multiline-comment-style' : 'warn' ,
302310 // Enforce or disallow newlines between operands of ternary expressions.
303311 'multiline-ternary' : [ 'warn' , 'always-multiline' ] ,
304- // Require constructor names to begin with a capital letter.
305- 'new-cap' : [
306- 'warn' ,
307- {
308- capIsNew : false ,
309- } ,
310- ] ,
311312 // Require parentheses when invoking a constructor with no arguments.
312313 'new-parens' : 'warn' ,
313314 // Require a newline after each call in a method chain.
0 commit comments