2020-05-07 08:03:30 +02:00
|
|
|
{
|
|
|
|
"extends": ["eslint:recommended", "prettier"],
|
2021-05-19 12:35:05 +02:00
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
2021-12-21 14:54:39 +01:00
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": true
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"node": true,
|
|
|
|
"es2020": true,
|
|
|
|
"jest": true
|
2021-05-19 12:35:05 +02:00
|
|
|
},
|
2020-05-07 08:03:30 +02:00
|
|
|
"settings": {
|
2021-12-21 14:54:39 +01:00
|
|
|
"react": {
|
|
|
|
"version": "detect"
|
|
|
|
}
|
2020-05-07 08:03:30 +02:00
|
|
|
},
|
|
|
|
"overrides": [
|
|
|
|
{
|
|
|
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"project": ["./tsconfig.json"]
|
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"oceanprotocol",
|
|
|
|
"oceanprotocol/react",
|
|
|
|
"plugin:@typescript-eslint/eslint-recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"plugin:prettier/recommended",
|
2022-05-12 12:35:07 +02:00
|
|
|
"plugin:react-hooks/recommended",
|
|
|
|
"plugin:testing-library/react",
|
|
|
|
"plugin:jest-dom/recommended"
|
|
|
|
],
|
|
|
|
"plugins": [
|
|
|
|
"@typescript-eslint",
|
|
|
|
"prettier",
|
|
|
|
"testing-library",
|
|
|
|
"jest-dom"
|
2020-05-07 08:03:30 +02:00
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"react/prop-types": "off",
|
2020-06-30 12:56:50 +02:00
|
|
|
"react/no-unused-prop-types": "off",
|
2021-10-27 12:27:14 +02:00
|
|
|
"react/jsx-no-bind": "off",
|
2020-09-08 13:55:04 +02:00
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"no-use-before-define": "off",
|
2021-12-21 14:54:39 +01:00
|
|
|
"@typescript-eslint/no-use-before-define": "error",
|
|
|
|
"prefer-destructuring": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"object": true,
|
|
|
|
"array": false
|
|
|
|
}
|
|
|
|
]
|
2020-05-07 08:03:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|