Files
valleXYZandGitHub c6e7f87670 chores(linter): add prettier to lint command (#6290)
* chores(linter): replace eslint-prettier with standalone prettier

* chores(linter): add prettier workflows

* chores(linter): lint files on web

* chores(linter): run prettier on mobile and packages
2025-09-04 17:40:31 +02:00

42 lines
1.2 KiB
JavaScript

import globals from 'globals'
import pluginJs from '@eslint/js'
import tseslint from 'typescript-eslint'
import pluginReact from 'eslint-plugin-react'
export default [
{ files: ['**/*.{js,mjs,cjs,ts,jsx,tsx}'] },
{ languageOptions: { globals: globals.browser } },
pluginJs.configs.recommended,
...tseslint.configs.strict,
...tseslint.configs.stylistic,
pluginReact.configs.flat.recommended,
{
settings: {
react: {
version: 'detect', // Automatically detect the react version
},
},
rules: {
'react/react-in-jsx-scope': 'off',
'react/no-unescaped-entities': 'off',
'@typescript-eslint/no-require-imports': 'off',
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-empty-object-type': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
curly: 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{
args: 'all',
argsIgnorePattern: '^_',
caughtErrors: 'all',
caughtErrorsIgnorePattern: '^_',
destructuredArrayIgnorePattern: '^_',
varsIgnorePattern: '^_',
ignoreRestSiblings: true,
},
],
},
},
]