mirror of
https://github.com/apache/superset.git
synced 2026-06-01 13:49:21 +00:00
feat(frontend): Replace ESLint with OXC hybrid linting architecture (#35506)
Co-authored-by: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
import { css, JsonValue, styled, t } from '@superset-ui/core';
|
||||
import { css, JsonValue, styled, t, useTheme } from '@superset-ui/core';
|
||||
// eslint-disable-next-line no-restricted-imports
|
||||
import { Button } from '@superset-ui/core/components/Button';
|
||||
import { Form } from '@superset-ui/core/components/Form';
|
||||
@@ -127,6 +127,7 @@ export const StyledSaveButton = styled(Button)`
|
||||
export const LayerConfigsPopoverContent: FC<
|
||||
LayerConfigsPopoverContentProps
|
||||
> = ({ onClose = () => {}, onSave = () => {}, layerConf }) => {
|
||||
const theme = useTheme();
|
||||
const [currentLayerConf, setCurrentLayerConf] =
|
||||
useState<LayerConf>(layerConf);
|
||||
const initialWmsVersion =
|
||||
@@ -179,20 +180,17 @@ export const LayerConfigsPopoverContent: FC<
|
||||
symbolizers: [
|
||||
{
|
||||
kind: 'Line',
|
||||
// eslint-disable-next-line theme-colors/no-literal-colors
|
||||
color: '#000000',
|
||||
color: theme.colorTextBase,
|
||||
width: 2,
|
||||
},
|
||||
{
|
||||
kind: 'Mark',
|
||||
wellKnownName: 'circle',
|
||||
// eslint-disable-next-line theme-colors/no-literal-colors
|
||||
color: '#000000',
|
||||
color: theme.colorTextBase,
|
||||
},
|
||||
{
|
||||
kind: 'Fill',
|
||||
// eslint-disable-next-line theme-colors/no-literal-colors
|
||||
color: '#000000',
|
||||
color: theme.colorTextBase,
|
||||
},
|
||||
],
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user