mirror of
https://github.com/VisActor/VChart
synced 2024-11-23 01:29:13 +00:00
Merge remote-tracking branch 'origin/main' into release/1.5.4
This commit is contained in:
commit
57f4a3e172
@ -23,4 +23,5 @@ shrinkwrap.json
|
||||
|
||||
# Build outputs
|
||||
dist
|
||||
lib
|
||||
lib
|
||||
vchart/index.js
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -151,7 +151,7 @@ Mon, 25 Sep 2023 10:49:42 GMT
|
||||
- feat: support `label.confine` for markLine and markPoint to auto adjust label's position, relate https://github.com/VisActor/VChart/issues/699
|
||||
- fix: `offsetX` and `offsetY` can not work in mark component
|
||||
- feat: support `minAngle` for pie chart, relate #738
|
||||
- feat: disable label animation as default in map series
|
||||
- feat: disable label animation as default in map series
|
||||
- fix: sankey chart support color config'
|
||||
- feat: increase chart stacking capabilities, provide stackValue to support independent stacking of multiple series
|
||||
|
||||
@ -268,7 +268,7 @@ Tue, 05 Sep 2023 11:24:47 GMT
|
||||
|
||||
### Patches
|
||||
|
||||
- fix: fix the issue of `seriesIndex` not work in discrete legend, see #732
|
||||
- fix: fix the issue of `seriesIndex` not work in discrete legend, see #732
|
||||
|
||||
### Updates
|
||||
|
||||
@ -428,7 +428,7 @@ Thu, 10 Aug 2023 05:23:25 GMT
|
||||
- feat: dimension tooltip supports linear axis
|
||||
|
||||
|
||||
- feat: filling full data to map mark data in #420
|
||||
- feat: filling full data to map mark data in #420
|
||||
- feat(background): support background of chart & series
|
||||
- feat(onError): support configuration of onerror in chart instance initoption
|
||||
- feat: supplement sync methods in vchart instance
|
||||
@ -602,11 +602,11 @@ Wed, 26 Jul 2023 03:18:52 GMT
|
||||
- fix(label): pickable shoule be false if label component is configured `interactive: false`
|
||||
- fix the layoutOffsetX|Y not work in normal items
|
||||
- fix: line mark has a different easing in update animation causes strange animation effect
|
||||
- fix: `channel` config not work in animation
|
||||
- fix: `channel` config not work in animation
|
||||
- No longer requires to hold down the Ctrl key for zoom interaction & fix zoomLimit bug
|
||||
- fix: default tooltip handler needs to adapt to the scale property
|
||||
- fix(vchart): export IRegionSpec from VChart
|
||||
- fix(waterfall-position): fix the mistake of compute totalPosition in waterfall-series
|
||||
- fix(waterfall-position): fix the mistake of compute totalPosition in waterfall-series
|
||||
- fix: compact window variable for non-browser env
|
||||
- fix: compact window variable for non-browser env
|
||||
|
||||
|
@ -1,15 +1,11 @@
|
||||
var baseFiles = ["*.ts"];
|
||||
var baseExtends = [
|
||||
"plugin:@typescript-eslint/recommended",
|
||||
"plugin:promise/recommended",
|
||||
"prettier",
|
||||
];
|
||||
var baseFiles = ['*.ts'];
|
||||
var baseExtends = ['plugin:@typescript-eslint/recommended', 'plugin:promise/recommended', 'prettier'];
|
||||
|
||||
var reactExtends = [
|
||||
"plugin:react/recommended",
|
||||
'plugin:react/recommended',
|
||||
// https://github.com/jsx-eslint/eslint-plugin-react/blob/HEAD/docs/rules/react-in-jsx-scope.md
|
||||
'plugin:react/jsx-runtime',
|
||||
"plugin:react-hooks/recommended",
|
||||
'plugin:react-hooks/recommended'
|
||||
];
|
||||
|
||||
/**
|
||||
@ -24,74 +20,74 @@ module.exports = function buildConfig(type) {
|
||||
|
||||
var _extends = baseExtends;
|
||||
|
||||
if (type === "react") {
|
||||
baseFiles.push("*.tsx");
|
||||
if (type === 'react') {
|
||||
baseFiles.push('*.tsx');
|
||||
|
||||
_extends = baseExtends.concat(reactExtends);
|
||||
|
||||
isJsx = true;
|
||||
|
||||
settings.react = {
|
||||
createClass: "createReactClass",
|
||||
pragma: "React",
|
||||
version: "detect",
|
||||
flowVersion: "0.53",
|
||||
createClass: 'createReactClass',
|
||||
pragma: 'React',
|
||||
version: 'detect',
|
||||
flowVersion: '0.53'
|
||||
};
|
||||
|
||||
reactRules = {
|
||||
"react/prop-types": "off",
|
||||
"react-hooks/rules-of-hooks": "warn",
|
||||
"react/react-in-jsx-scope": "off"
|
||||
'react/prop-types': 'off',
|
||||
'react-hooks/rules-of-hooks': 'warn',
|
||||
'react/react-in-jsx-scope': 'off'
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
root: true,
|
||||
// Disable the parser by default
|
||||
parser: "",
|
||||
parser: '',
|
||||
|
||||
// Manually authored .d.ts files are generally used to describe external APIs that are not expected
|
||||
// to follow our coding conventions. Linting those files tends to produce a lot of spurious suppressions,
|
||||
// so we simply ignore them.
|
||||
ignorePatterns: ["*.d.ts", "dist/**"],
|
||||
ignorePatterns: ['*.d.ts', 'dist/**', 'vchart/index.js'],
|
||||
|
||||
overrides: [
|
||||
{
|
||||
// Declare an override that applies to TypeScript files only
|
||||
files: baseFiles,
|
||||
parser: "@typescript-eslint/parser",
|
||||
parser: '@typescript-eslint/parser',
|
||||
extends: _extends,
|
||||
parserOptions: {
|
||||
// The "project" path is resolved relative to parserOptions.tsconfigRootDir.
|
||||
// Your local .eslintrc.js must specify that parserOptions.tsconfigRootDir=__dirname.
|
||||
project: "./tsconfig.json",
|
||||
project: './tsconfig.json',
|
||||
|
||||
// Allow parsing of newer ECMAScript constructs used in TypeScript source code. Although tsconfig.json
|
||||
// may allow only a small subset of ES2018 features, this liberal setting ensures that ESLint will correctly
|
||||
// parse whatever is encountered.
|
||||
ecmaVersion: 2018,
|
||||
|
||||
sourceType: "module",
|
||||
sourceType: 'module',
|
||||
|
||||
ecmaFeatures: {
|
||||
jsx: isJsx,
|
||||
},
|
||||
jsx: isJsx
|
||||
}
|
||||
},
|
||||
|
||||
settings: settings,
|
||||
rules: {
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-empty-function": "warn",
|
||||
"@typescript-eslint/ban-types": "warn",
|
||||
"@typescript-eslint/no-var-requires": "warn",
|
||||
"no-console": "error",
|
||||
"no-debugger": "error",
|
||||
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
|
||||
"promise/always-return": "off",
|
||||
"promise/no-callback-in-promise": "off",
|
||||
...reactRules,
|
||||
},
|
||||
},
|
||||
],
|
||||
'@typescript-eslint/ban-ts-comment': 'off',
|
||||
'@typescript-eslint/no-empty-function': 'warn',
|
||||
'@typescript-eslint/ban-types': 'warn',
|
||||
'@typescript-eslint/no-var-requires': 'warn',
|
||||
'no-console': 'error',
|
||||
'no-debugger': 'error',
|
||||
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
||||
'promise/always-return': 'off',
|
||||
'promise/no-callback-in-promise': 'off',
|
||||
...reactRules
|
||||
}
|
||||
}
|
||||
]
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user