Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 0 additions & 1 deletion apps/fluent-tester/src/TestComponents/Chip/ChipDefault.tsx
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
1 change: 1 addition & 0 deletions apps/fluent-tester/src/TestComponents/Svg/SvgTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ const RemoteSvgTest: React.FunctionComponent = () => {
style={styles.svg}
width="100"
height="100"
// eslint-disable-next-line @microsoft/sdl/no-insecure-url
uri="http://10.122.222.112:8080/accessible-icon-brands.svg"
accessible={true}
accessibilityLabel="SVG Uri Test"
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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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": "jasonmo@microsoft.com",
"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/stack",
"email": "jasonmo@microsoft.com",
"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/tablist",
"email": "jasonmo@microsoft.com",
"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/tester",
"email": "jasonmo@microsoft.com",
"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/theme-tokens",
"email": "jasonmo@microsoft.com",
"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/theme-types",
"email": "jasonmo@microsoft.com",
"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/themed-stylesheet",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch"
}
Loading
Loading