2019-06-19 23:32:09 +02:00
|
|
|
{
|
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"sourceType": "module",
|
|
|
|
"ecmaFeatures": {
|
|
|
|
"jsx": false
|
|
|
|
},
|
2019-08-15 14:13:21 +02:00
|
|
|
"project": [
|
|
|
|
"./tsconfig.json",
|
2020-01-30 22:08:18 +01:00
|
|
|
"./test/unit/tsconfig.json",
|
|
|
|
"./test/integration/tsconfig.json"
|
2019-08-15 14:13:21 +02:00
|
|
|
]
|
2019-06-19 23:32:09 +02:00
|
|
|
},
|
|
|
|
"extends": [
|
|
|
|
"oceanprotocol",
|
|
|
|
"prettier/standard",
|
|
|
|
"plugin:prettier/recommended",
|
|
|
|
"plugin:@typescript-eslint/recommended",
|
|
|
|
"prettier/@typescript-eslint"
|
|
|
|
],
|
|
|
|
"plugins": ["@typescript-eslint", "prettier"],
|
|
|
|
"rules": {
|
|
|
|
"@typescript-eslint/member-delimiter-style": [
|
|
|
|
"error",
|
|
|
|
{ "multiline": { "delimiter": "none" } }
|
|
|
|
],
|
2019-08-15 14:13:21 +02:00
|
|
|
"@typescript-eslint/ban-ts-ignore": "off",
|
2019-06-19 23:32:09 +02:00
|
|
|
"@typescript-eslint/indent": "off",
|
|
|
|
"@typescript-eslint/no-explicit-any": "off",
|
2019-08-15 14:13:21 +02:00
|
|
|
"@typescript-eslint/no-inferrable-types": "off",
|
2019-06-19 23:32:09 +02:00
|
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
|
|
"@typescript-eslint/explicit-function-return-type": "off",
|
|
|
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
|
|
"@typescript-eslint/no-var-requires": "off",
|
|
|
|
"@typescript-eslint/no-use-before-define": "off",
|
|
|
|
"@typescript-eslint/no-object-literal-type-assertion": "off",
|
2019-06-24 13:06:38 +02:00
|
|
|
"@typescript-eslint/no-parameter-properties": "off",
|
2019-08-15 14:13:21 +02:00
|
|
|
"no-empty": ["error", { "allowEmptyCatch": true }],
|
2019-06-24 13:06:38 +02:00
|
|
|
"prefer-destructuring": ["warn"],
|
|
|
|
"no-dupe-class-members": ["warn"],
|
|
|
|
"no-useless-constructor": ["warn"]
|
2019-06-19 23:32:09 +02:00
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"es6": true,
|
|
|
|
"browser": true,
|
|
|
|
"mocha": true
|
|
|
|
}
|
|
|
|
}
|