123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- module.exports = {
- extends: [require.resolve('@umijs/fabric/dist/eslint')],
- globals: {
- page: true,
- abp: true,
- APP_ABP_SIGNALR_CLIENT_JS_URL: true,
- REMOTE_SERVICE_BASE_URL: true,
- APP_API_MATERIAL_UPLOAD_URL: true,
- APP_API_MATERIAL_UPLOAD_PANORAMA_URL: true,
- APP_API_MATERIAL_UPLOAD_TOPIC_URL: true,
- APP_API_MATERIAL_UPLOAD_VIDEO_URL: true,
- APP_AVATAR_IMAGE_URL: true,
- APP_BASE_URL: true,
- APP_TYPE: true,
- BAIDU_MAP_AK: true,
- BMap: true,
- QQ_MAP_AK: true,
- qq: true
- },
- rules: {
- 'no-plusplus': 0,
- 'class-methods-use-this': 0,
- 'prefer-destructuring': 0,
- 'react/require-default-props': 0,
- 'no-restricted-syntax': 0, //http://88xml.com/2018/03/16/visual-studio-code%E6%8F%92%E4%BB%B6%E6%8E%A8%E8%8D%90/
- 'global-require': 0,
- 'no-param-reassign': 0,
- 'no-underscore-dangle': 0,
- 'no-nested-ternary': 0,
- 'no-script-url': 0,
- 'no-unused-expressions': 0,
- 'no-return-assign': 0,
- 'no-multi-assign': 0,
- 'react/jsx-props-no-spreading': 0,
- 'react/static-property-placement': 0,
- 'react/state-in-constructor': 0,
- 'eslint-comments/no-unlimited-disable': 0,
- 'no-shadow': 0,
- 'react/no-danger': 0,
- '@typescript-eslint/camelcase': 0,
- 'jsx-a11y/label-has-associated-control': 'off',
- 'jsx-a11y/label-has-for': 'off',
- '@typescript-eslint/no-use-before-define': 0,
- 'jsx-quotes': ['error', 'prefer-double']
- }
- }
- // module.exports = {
- // parser: 'babel-eslint',
- // extends: ['airbnb', 'prettier', 'plugin:compat/recommended'],
- // env: {
- // browser: true,
- // node: true,
- // es6: true,
- // mocha: true,
- // jest: true,
- // jasmine: true,
- // },
- // globals: {
- // APP_TYPE: true,
- // page: true,
- // abp: true,
- // APP_ABP_SIGNALR_CLIENT_JS_URL: true,
- // REMOTE_SERVICE_BASE_URL: true,
- // APP_API_MATERIAL_UPLOAD_URL: true,
- // APP_BASE_URL: true,
- // APP_TYPE: true,
- // },
- // rules: {
- // 'react/jsx-filename-extension': [1, { extensions: ['.js'] }],
- // 'react/jsx-wrap-multilines': 0,
- // 'react/prop-types': 0,
- // 'react/forbid-prop-types': 0,
- // 'react/jsx-one-expression-per-line': 0,
- // 'import/no-unresolved': [2, { ignore: ['^@/', '^umi/'] }],
- // 'import/no-extraneous-dependencies': [
- // 2,
- // {
- // optionalDependencies: true,
- // devDependencies: ['**/tests/**.js', '/mock/**.js', '**/**.test.js'],
- // },
- // ],
- // 'jsx-a11y/no-noninteractive-element-interactions': 0,
- // 'jsx-a11y/click-events-have-key-events': 0,
- // 'jsx-a11y/no-static-element-interactions': 0,
- // 'jsx-a11y/anchor-is-valid': 0,
- // 'linebreak-style': 0,
- // 'no-plusplus': 0,
- // 'class-methods-use-this': 0,
- // 'prefer-destructuring': 0,
- // 'react/require-default-props': 0,
- // 'no-restricted-syntax': 0, //http://88xml.com/2018/03/16/visual-studio-code%E6%8F%92%E4%BB%B6%E6%8E%A8%E8%8D%90/
- // 'global-require': 0,
- // 'no-param-reassign': 0,
- // 'no-underscore-dangle': 0,
- // 'no-nested-ternary': 0,
- // 'no-script-url': 0,
- // 'no-unused-expressions': 0,
- // 'no-return-assign': 0,
- // 'no-multi-assign': 0,
- // },
- // settings: {
- // polyfills: ['fetch', 'promises', 'url'],
- // },
- // };
|