Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

73 changes: 0 additions & 73 deletions .eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
},

"eslint.enable": true,
"eslint.workingDirectories": [{ "mode": "auto" }], // infer working directory based on .eslintrc/package.json location
"eslint.workingDirectories": [{ "pattern": "./packages/framework/eslint-config-rules" }], // use the common eslint config file

"explorer.fileNesting.enabled": true,
"explorer.fileNesting.patterns": {
Expand Down
10 changes: 9 additions & 1 deletion apps/E2E/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
const baseConfig = require('@fluentui-react-native/eslint-config-rules');

module.exports = baseConfig;
module.exports = [
...baseConfig,
{
rules: {
'@typescript-eslint/no-duplicate-enum-values': 'off',
'@typescript-eslint/no-invalid-void-type': 'off',
},
},
];
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import React, { useState, useCallback, useMemo } from 'react';
import { View, Platform, Image } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import React from 'react';
import { View, Platform, Text } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import React, { useCallback, useState } from 'react';
import { View, StyleSheet, Text } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import React, { useState, useCallback } from 'react';
import { View, Platform, Text } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { View } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { Platform, View } from 'react-native';

Expand All @@ -14,8 +13,6 @@ const CustomizedIconButton = Button.customize({
});

export const ButtonIconTest_deprecated: React.FunctionComponent = () => {
/* eslint-disable @typescript-eslint/no-var-requires */

// SVG-based icons are not available on all platforms yet
const svgIconsEnabled = ['ios', 'macos', 'win32', 'android'].includes(Platform.OS as string);
const iconProps = { svgSource: svgProps, width: 20, height: 20 };
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { View } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import React, { useCallback } from 'react';
import { StyleSheet, View, ToastAndroid } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { Text, View, Switch } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { Text, View, Switch } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { View } from 'react-native';

Expand Down
1 change: 0 additions & 1 deletion apps/fluent-tester/src/TestComponents/Icon/IconTest.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { Platform, PlatformColor, View } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import * as React from 'react';
import { View } from 'react-native';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import type { MenuButtonItemProps } from '@fluentui/react-native';
import { MENU_ITEM_1_COMPONENT } from '@fluentui-react-native/e2e-testing';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable @typescript-eslint/no-var-requires */
import type { MenuButtonItemProps } from '@fluentui/react-native';

import { testImage, svgProps } from '../Common/iconExamples';
Expand Down
17 changes: 0 additions & 17 deletions apps/fluent-tester/src/TestComponents/Svg/SvgTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -225,9 +225,6 @@ const BundledSvgTest: React.FunctionComponent = () => {
};

const RemoteSvgTest: React.FunctionComponent = () => {
// GH#1596: Temporarily stop testing this case until it can be either more robust or removed
const shouldShowLocalNetwork = false;

return (
<View>
<SvgUri
Expand All @@ -240,20 +237,6 @@ const RemoteSvgTest: React.FunctionComponent = () => {
accessibilityLabel="SVG Uri Test"
accessibilityRole="image"
/>
{shouldShowLocalNetwork && (
<SvgUri
x="50"
y="50"
viewBox="0 0 500 500"
style={styles.svg}
width="100"
height="100"
uri="http://10.122.222.112:8080/accessible-icon-brands.svg"
accessible={true}
accessibilityLabel="SVG Uri Test"
accessibilityRole="image"
/>
)}
</View>
);
};
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/adapters",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/android-theme",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/apple-theme",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/badge",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/button",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/chip",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/codemods",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/default-theme",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/dropdown",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/e2e-testing",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/experimental-appearance-additions",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/focus-zone",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/framework",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/immutable-merge",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/interactive-hooks",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/link",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/memo-cache",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/menu",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/merge-props",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/popover",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/pressable",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "patch",
"comment": "fix repo linting with new configs and version, fixing linting errors as well",
"packageName": "@fluentui-react-native/radio-group",
"email": "[email protected]",
"dependentChangeType": "patch"
}
Loading