Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions .ncurc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Do not update to React 19 because some packages not compatible with React 19
reject:
- react
- react-dom
- '@types/react'
- '@types/react-dom'
- eslint
# remove this when typescript-eslint supports the current TypeScript version 7.
-typescript
10 changes: 0 additions & 10 deletions babel.config.js

This file was deleted.

85 changes: 61 additions & 24 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,52 +1,89 @@
import { defineConfig, globalIgnores } from 'eslint/config';
import react from 'eslint-config-cheminfo-react/base';
import ts from 'eslint-config-cheminfo-typescript/base';
import unicorn from 'eslint-config-cheminfo-typescript/unicorn';

export default [
{
ignores: [
'dist',
'build',
'releases',
'node_modules',
'playwright-report',
'public',
'vite.config.ts',
],
},
...ts,
...unicorn,
...react,
export default defineConfig(
globalIgnores([
'dist',
'lib',
'releases',
'node_modules',
'playwright-report',
'test-results',
'public',
'vite.config.ts'
]),
ts,
unicorn,
react,
{
files: ['**/*.{ts,tsx,cts,mts}'],
rules: {
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-deprecated': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/no-useless-default-assignment': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'@typescript-eslint/switch-exhaustiveness-check': 'off',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
},
},
{
rules: {
'@eslint-react/dom-no-missing-iframe-sandbox': 'off',
'@eslint-react/naming-convention-ref-name': 'off',
'@eslint-react/no-children-count': 'off',
'@eslint-react/no-children-map': 'off',
'@eslint-react/no-children-to-array': 'off',
'@eslint-react/no-clone-element': 'off',
'@eslint-react/no-unstable-default-props': 'off',
'@eslint-react/purity': 'off',
'@eslint-react/refs': 'off',
'@eslint-react/set-state-in-effect': 'off',
'@eslint-react/static-components': 'off',
'@eslint-react/use-state': 'off',
'import/default': 'off',
'import/no-unresolved': 'off',
'react-you-might-not-need-an-effect/no-adjust-state-on-prop-change':
'off',
'react-you-might-not-need-an-effect/no-chain-state-updates': 'off',
'react-you-might-not-need-an-effect/no-derived-state': 'off',
'react-you-might-not-need-an-effect/no-event-handler': 'off',
'react-you-might-not-need-an-effect/no-external-store-subscription':
'off',
'react-you-might-not-need-an-effect/no-pass-data-to-parent': 'off',
'prefer-named-capture-group': 'off',
'react-hooks/preserve-manual-memoization': 'off',
'react-refresh/only-export-components': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/naming-convention': 'off',
'@typescript-eslint/no-implied-eval': 'off',
'@typescript-eslint/no-misused-promises': 'off',
'@typescript-eslint/restrict-plus-operands': 'off',
'react/no-unstable-nested-components': 'off',
'unicorn/consistent-boolean-name': 'off',
'unicorn/max-nested-calls': 'off',
'unicorn/name-replacements': 'off',
'unicorn/no-computed-property-existence-check': 'off',
'unicorn/no-non-function-verb-prefix': 'off',
'unicorn/no-unreadable-for-of-expression': 'off',
'unicorn/no-unreadable-object-destructuring': 'off',
'unicorn/no-unsafe-string-replacement': 'off',
'unicorn/no-useless-else': 'off',
'unicorn/prefer-await': 'off',
'unicorn/prefer-combined-guards': 'off',
'unicorn/prefer-continue': 'off',
'unicorn/prefer-early-return': 'off',
'no-restricted-imports': [
'error',
{
name: 'lodash',
message: "Use a deep import instead, like for example 'lodash/get'",
message:
"Use a deep import instead, like for example 'lodash/merge.js'",
},
{
name: '@simbathesailor/use-what-changed',
message: 'Remove use-what-changed before committing the code',
}
],
'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
},
];
);
Loading
Loading