lean-ui:我尝试使用Lerna + Yarn Workspaces构建现代ui库monorepo

  • d9_330979
    了解作者
  • 276.4KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-11 23:01
    上传日期
lean-ui:我尝试使用Lerna + Yarn Workspaces构建现代ui库monorepo
lean-ui-main.zip
内容介绍
module.exports = { parser: '@typescript-eslint/parser', // Interpret TS code parserOptions: { ecmaFeatures: { jsx: true, // Allows for the parsing of JSX }, ecmaVersion: 2020, // Allows for the parsing of modern ECMAScript features sourceType: 'module', // Allows for the use of imports }, settings: { react: { version: 'detect', // Tells eslint-plugin-react to automatically detect the version of React to use }, }, env: { browser: true, es6: true, jest: true, }, extends: [ 'plugin:react/recommended', // Uses the recommended rules from @eslint-plugin-react 'plugin:@typescript-eslint/recommended', // (@typescript-eslint/eslint-plugin) 'prettier/@typescript-eslint', // Uses eslint-config-prettier to disable ESLint rules from @typescript-eslint/eslint-plugin that would conflict with prettier 'plugin:prettier/recommended', // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array. ], plugins: ['react', '@typescript-eslint', 'react-hooks'], rules: { 'react/prop-types': 'off', 'react-hooks/rules-of-hooks': 'error', 'react-hooks/exhaustive-deps': 'warn', '@typescript-eslint/explicit-function-return-type': 'off', '@typescript-eslint/no-explicit-any': 'off', '@typescript-eslint/no-var-requires': 'off', '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }], 'import/prefer-default-export': 'off', '@typescript-eslint/explicit-module-boundary-types': 'off', '@typescript-eslint/no-empty-interface': 'off', }, };
评论
    相关推荐