Skip to content

Commit f877583

Browse files
committed
Small fixes
1 parent e24c27a commit f877583

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

playground/.eslintrc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,12 @@ module.exports = {
2727
semi: ['error', 'always']
2828
},
2929
overrides: [
30+
{
31+
files: ['*.ts', '*.tsx'],
32+
rules: {
33+
'@typescript-eslint/ban-types': 'off'
34+
}
35+
},
3036
{
3137
files: ['*.js'],
3238
rules: {

playground/src/components/AppProvider/AppProvider.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React, { PropsWithChildren, createContext, useContext, useState, useEffect } from 'react';
2-
import { PluginOptions, Mode, Source, Autorename } from 'postcss-rtlcss/options';
2+
import { PluginOptions, Mode, Source, Autorename } from 'postcss-rtlcss/@types';
33
import { useApi } from '@hooks/useApi';
44
import { breakpointSizes } from '@utilities/styles';
55

@@ -122,4 +122,4 @@ export const AppProvider = (props: PropsWithChildren<{}>): JSX.Element => {
122122
);
123123
};
124124

125-
export const useAppContext = () => useContext(AppContext);
125+
export const useAppContext = (): AppProviderContext => useContext<AppProviderContext>(AppContext);

src/@types/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export interface PluginOptions {
5252
processKeyFrames?: boolean;
5353
useCalc?: boolean;
5454
stringMap?: PluginStringMap[];
55-
autoRename?: Autorename;
55+
autoRename?: AutorenameValues;
5656
greedy?: boolean;
5757
}
5858

src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { PluginOptions, Mode, Source, Autorename } from '@types';
1+
import { Mode, Source, Autorename } from '@types';
22

33
export default {
44
Mode,

0 commit comments

Comments
 (0)