How to use the @umijs/fabric.default 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 umijs / umi / packages / umi-build-dev / src / plugins / commands / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'global-require': [0],
    'arrow-parens': [0],
    'react/button-has-type': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'class-methods-use-this': [0],
    'no-underscore-dangle': [0],
    'import/no-extraneous-dependencies': [0],
    'constructor-super': [0],
    'no-confusing-arrow': [0],
    '@typescript-eslint/no-object-literal-type-assertion': [0],
    'eslint-comments/no-unlimited-disable': [0],
github umijs / umi / packages / umi-ui / client / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'global-require': [0],
    'arrow-parens': [0],
    'react/button-has-type': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'class-methods-use-this': [0],
    'no-underscore-dangle': [0],
    'import/no-extraneous-dependencies': [0],
    'constructor-super': [0],
    'no-confusing-arrow': [0],
    '@typescript-eslint/no-object-literal-type-assertion': [0],
    'eslint-comments/no-unlimited-disable': [0],
  },
};
github umijs / umi / packages / umi-build-dev / src / plugins / commands / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'global-require': [0],
    'arrow-parens': [0],
    'react/button-has-type': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'class-methods-use-this': [0],
    'no-underscore-dangle': [0],
    'import/no-extraneous-dependencies': [0],
    'constructor-super': [0],
    'no-confusing-arrow': [0],
    '@typescript-eslint/no-object-literal-type-assertion': [0],
    'eslint-comments/no-unlimited-disable': [0],
    'no-case-declarations': 0,
    'no-restricted-syntax': [0],
github umijs / hooks / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    "no-restricted-syntax": "off",
    "no-plusplus": "off",
    "no-underscore-dangle": "off",
    "consistent-return": "off",
    "@typescript-eslint/ban-ts-ignore": "off",
    "@typescript-eslint/no-object-literal-type-assertion": "off",
  }
};
github umijs / hooks / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    "no-restricted-syntax": "off",
    "no-plusplus": "off",
    "no-underscore-dangle": "off",
    "consistent-return": "off",
    "@typescript-eslint/ban-ts-ignore": "off",
    "@typescript-eslint/no-object-literal-type-assertion": "off",
  }
};
github umijs / umi / packages / umi-ui / client / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'global-require': [0],
    'arrow-parens': [0],
    'react/button-has-type': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'class-methods-use-this': [0],
    'no-underscore-dangle': [0],
    'import/no-extraneous-dependencies': [0],
    'constructor-super': [0],
    'no-confusing-arrow': [0],
    '@typescript-eslint/no-object-literal-type-assertion': [0],
    'eslint-comments/no-unlimited-disable': [0],
github umijs / umi-example-ssr-with-egg / app / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'arrow-parens': [0],
    'no-underscore-dangle': [0],
    'global-require': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'eslint-comments/no-unlimited-disable': [0],
    'operator-assignment': [0]
  },
  globals: {
    IS_PRERENDER: true
  }
};
github umijs / umi-example-ssr-with-egg / app / .eslintrc.js View on Github external
const fabric = require('@umijs/fabric');

module.exports = {
  ...fabric.default,
  rules: {
    ...fabric.default.rules,
    '@typescript-eslint/interface-name-prefix': [0],
    'jsx-a11y/alt-text': [0],
    'arrow-parens': [0],
    'no-underscore-dangle': [0],
    'global-require': [0],
    'lines-between-class-members': [0],
    'no-param-reassign': [0],
    'eslint-comments/no-unlimited-disable': [0],
    'operator-assignment': [0]
  },
  globals: {
    IS_PRERENDER: true
  }
};

@umijs/fabric

A collection of configuration files containing prettier, eslint, stylelint

ISC
Latest version published 2 years ago

Package Health Score

51 / 100
Full package analysis