How to use the @umijs/fabric/dist/eslint.rules function in @umijs/fabric

To help you get started, we’ve selected a few @umijs/fabric examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github react-component / util / .eslintrc.js View on Github external
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,
  },
};
github react-component / table / .eslintrc.js View on Github external
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,
  },
};
github react-component / field-form / .eslintrc.js View on Github external
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,
  },
};
github react-component / select / .eslintrc.js View on Github external
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 }],
  },
};
github ant-design / sunflower / .eslintrc.js View on Github external
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
  }
};

@umijs/fabric

A collection of configuration files containing prettier, eslint, stylelint

ISC
Latest version published 11 months ago

Package Health Score

61 / 100
Full package analysis