mirror of
https://github.com/status-im/sourcecred.git
synced 2025-02-19 16:04:15 +00:00
This commit upgrades the flow-type eslint plugin to latest, and writes new rules into the eslintrc. To keep the diff clean, the rules are disabled: I will turn them on individually (fixing errors) in followon commits. Test plan: `yarn test`. Uncommenting the lines produces many lint errors (but the linter still operates as expected).
23 lines
592 B
JavaScript
23 lines
592 B
JavaScript
// @flow
|
|
module.exports = {
|
|
parser: "babel-eslint",
|
|
plugins: ["flowtype"],
|
|
extends: "react-app",
|
|
rules: {
|
|
"no-unused-vars": [
|
|
"warn",
|
|
{
|
|
argsIgnorePattern: "^_$|^_unused_",
|
|
varsIgnorePattern: "^_$|^_unused_",
|
|
caughtErrorsIgnorePattern: "^_$|^_unused_",
|
|
},
|
|
],
|
|
"no-use-before-define": ["off"],
|
|
"no-useless-constructor": ["off"],
|
|
// TODO(@decentralion): Enable this rule.
|
|
// "flowtype/no-mutable-array": [2],
|
|
// TODO(@decentralion): Enable this rule.
|
|
// "flowtype/require-exact-type": [2, "always"],
|
|
},
|
|
};
|