Skip to content

Commit

Permalink
chore: update eslint
Browse files Browse the repository at this point in the history
chore: eslint ignore 'vite.config.ts'
  • Loading branch information
hamed-musallam committed Aug 13, 2024
1 parent ded63b3 commit 1cae0de
Show file tree
Hide file tree
Showing 6 changed files with 2,547 additions and 2,164 deletions.
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.yml

This file was deleted.

47 changes: 47 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
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',
'coverage',
'lib',
'lib-cjs',
'node_modules',
'playwright-report',
'public',
'vite.config.ts'
],
},
...ts,
...unicorn,
...react,
{
rules: {
'import/default': 'off',
'import/no-unresolved': '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',
'no-restricted-imports': [
'error',
{
name: 'lodash',
message: "Use a deep import instead, like for example 'lodash/get'",
},
{
name: '@simbathesailor/use-what-changed',
message: 'Remove use-what-changed before committing the code',
}
],
'react/no-unknown-property': ['error', { ignore: ['css'] }],
},
},
];
Loading

0 comments on commit 1cae0de

Please sign in to comment.