Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const base = require('@umijs/fabric/dist/eslint');
module.exports = {
...base,
rules: {
...base.rules,
'react/no-did-update-set-state': 0,
'react/no-find-dom-node': 0,
},
};
const base = require('@umijs/fabric/dist/eslint');
module.exports = {
...base,
rules: {
...base.rules,
'react/no-array-index-key': 0,
'react/sort-comp': 0,
'@typescript-eslint/no-explicit-any': 1,
'@typescript-eslint/no-empty-interface': 1,
'@typescript-eslint/no-inferrable-types': 0,
'react/no-find-dom-node': 1,
'react/require-default-props': 0,
'no-confusing-arrow': 0,
'import/no-named-as-default-member': 0,
'jsx-a11y/label-has-for': 0,
'jsx-a11y/label-has-associated-control': 0,
},
};
const base = require('@umijs/fabric/dist/eslint');
module.exports = {
...base,
rules: {
...base.rules,
'no-confusing-arrow': 0,
'no-template-curly-in-string': 0,
'prefer-promise-reject-errors': 0,
'react/no-array-index-key': 0,
'react/sort-comp': 0,
},
};
const base = require('@umijs/fabric/dist/eslint');
const path = require('path');
module.exports = {
...base,
rules: {
...base.rules,
'default-case': 0,
'react/sort-comp': 0,
'jsx-a11y/interactive-supports-focus': 0,
'jsx-a11y/no-autofocus': 0,
'import/no-extraneous-dependencies': ['error', { devDependencies: true }],
},
};
const base = require("@umijs/fabric/dist/eslint");
module.exports = {
...base,
rules: {
...base.rules,
"arrow-parens": 0,
"dot-notation": 0,
"import/no-unresolved": 1,
"@typescript-eslint/no-object-literal-type-assertion": 0,
"react-hooks/exhaustive-deps": 0,
"no-underscore-dangle": 0,
"@typescript-eslint/no-explicit-any": 0,
"arrow-body-style": 0,
"consistent-return": 1
}
};