Tldraw/config/eslint-preset.js

29 wiersze
641 B
JavaScript

/* eslint-disable */
module.exports = {
extends: ['prettier'],
settings: {
next: {
rootDir: ['apps/*/', 'packages/*/'],
},
},
ignorePatterns: ['**/*.js'],
rules: {
'no-non-null-assertion': 'off',
'no-fallthrough': 'off',
'@typescript-eslint/no-fallthrough': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': [
'warn',
{
argsIgnorePattern: '^_',
varsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
caughtErrorsIgnorePattern: '^_',
},
],
},
}