Skip to content

Commit 113566a

Browse files
Merge pull request #139 from NFDI4Chem/refactor-eslint-rules
refactor: apply the ESlint rules for ( react and typescript ) from ch…
2 parents 98837a4 + 10869fa commit 113566a

18 files changed

Lines changed: 802 additions & 1238 deletions

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
dist
22
node_modules
3-
public
3+
public
4+
src/*.json

.eslintrc.json

Lines changed: 0 additions & 93 deletions
This file was deleted.

.eslintrc.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
root: true
2+
extends:
3+
- cheminfo-react/base
4+
- cheminfo-typescript/base
5+
- cheminfo-typescript/unicorn
6+
rules:
7+
'import/default': off
8+
'import/no-unresolved': off
9+
'react-refresh/only-export-components': off
10+
'@typescript-eslint/naming-convention': off
11+
'@typescript-eslint/restrict-plus-operands': off
12+
'react/no-unstable-nested-components': off
13+
no-restricted-imports:
14+
- error
15+
- name: '@simbathesailor/use-what-changed'
16+
message: 'Remove use-what-changed before committing the code'
17+
react/no-unknown-property:
18+
- error
19+
- ignore:
20+
- 'css'
21+
parserOptions:
22+
sourceType: module

0 commit comments

Comments
 (0)