This commit is contained in:
Alex
2024-05-04 20:44:31 -04:00
parent 003a43512c
commit c175f87441
8 changed files with 2737 additions and 2142 deletions

View File

@ -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,
{