mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
update ESLint config
* breaking eslint-config-prettier config merge, see https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-800-2021-02-21
This commit is contained in:
parent
6ac8837d6e
commit
a8a8b8fe41
20
.eslintrc
20
.eslintrc
@ -11,23 +11,23 @@
|
|||||||
"./test/integration/tsconfig.json"
|
"./test/integration/tsconfig.json"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"extends": [
|
"extends": ["oceanprotocol", "plugin:prettier/recommended"],
|
||||||
"oceanprotocol",
|
"plugins": ["@typescript-eslint"],
|
||||||
"prettier/standard",
|
|
||||||
"plugin:prettier/recommended",
|
|
||||||
"plugin:@typescript-eslint/recommended",
|
|
||||||
"prettier/@typescript-eslint"
|
|
||||||
],
|
|
||||||
"plugins": ["@typescript-eslint", "prettier"],
|
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-empty": ["error", { "allowEmptyCatch": true }],
|
"no-empty": ["error", { "allowEmptyCatch": true }],
|
||||||
"prefer-destructuring": ["warn", { "object": true, "array": false }],
|
"prefer-destructuring": ["warn", { "object": true, "array": false }],
|
||||||
"no-dupe-class-members": ["warn"],
|
"no-dupe-class-members": ["warn"],
|
||||||
"no-useless-constructor": ["warn"]
|
"no-useless-constructor": ["warn"],
|
||||||
|
"no-unused-vars": ["warn"],
|
||||||
|
"constructor-super": ["warn"]
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true,
|
"es6": true,
|
||||||
"browser": true,
|
"browser": true,
|
||||||
"mocha": true
|
"mocha": true,
|
||||||
|
"node": true
|
||||||
|
},
|
||||||
|
"globals": {
|
||||||
|
"NodeJS": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user