Update
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { error, warn, off } from '../constants';
|
||||
import { EslintRules } from 'eslint-define-config/src/rules/eslint';
|
||||
import restrictedGlobals from './_restrictedGlobals.json';
|
||||
|
||||
export const eslintRules: Partial<EslintRules> = {
|
||||
'arrow-body-style': [error, 'as-needed'],
|
||||
@ -14,7 +15,7 @@ export const eslintRules: Partial<EslintRules> = {
|
||||
'no-empty': [error, { allowEmptyCatch: true }],
|
||||
'no-inner-declarations': off,
|
||||
'no-lonely-if': error,
|
||||
'no-restricted-globals': [error, 'event', 'name', 'length'],
|
||||
'no-restricted-globals': [error, ...restrictedGlobals],
|
||||
'no-restricted-imports': [
|
||||
error,
|
||||
{
|
||||
|
Reference in New Issue
Block a user