dappconnect-chat-sdk/apps/connector/eslint.config.mjs

38 lines
704 B
JavaScript

import configs, { tailwindcssConfigs } from '@status-im/eslint-config'
/** @type {import('eslint').Linter.Config[]} */
export default [
...configs,
...tailwindcssConfigs,
{
files: ['*.ts', '*.tsx'],
rules: {
'no-constant-binary-expression': 'error',
'no-restricted-globals': ['error', 'process'],
'jsx-a11y/alt-text': [
1,
{
img: [],
},
],
},
},
{
files: ['*.mjs'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
},
},
},
{
files: ['*.js'],
languageOptions: {
parserOptions: {
ecmaVersion: 'latest',
},
},
},
]