Skip to content

Commit

Permalink
update lint rules and yarn lock
Browse files Browse the repository at this point in the history
  • Loading branch information
ecraig12345 committed Apr 9, 2022
1 parent 9f2dd73 commit ece793e
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 9 deletions.
1 change: 1 addition & 0 deletions apps/perf-test-react-components/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": ["plugin:@fluentui/eslint-plugin/react"],
"root": true,
"rules": {
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"no-console": "off"
}
}
1 change: 1 addition & 0 deletions apps/perf-test/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"extends": ["plugin:@fluentui/eslint-plugin/react"],
"root": true,
"rules": {
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"no-console": "off"
}
}
1 change: 1 addition & 0 deletions apps/public-docsite-resources/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-member-accessibility": "off",
"@typescript-eslint/member-ordering": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"deprecation/deprecation": "off"
}
}
1 change: 1 addition & 0 deletions apps/public-docsite/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"import/no-webpack-loader-syntax": "off", // ok in this project
"prefer-const": "off",
"react/jsx-no-bind": "off"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const baseUrl =
'https://github.com/microsoft/fluentui/tree/master/apps/public-docsite/src/pages/Styles/OfficeBrandIconsPage/docs';
const fabricCDN = 'https://static2.sharepointonline.com/files/fabric-cdn-prod_20200430.002/assets';

// eslint-disable-next-line import/no-extraneous-dependencies
const productIcons = require<
{ icon: string; name: string }[]
// eslint-disable-next-line import/no-extraneous-dependencies
>('@fluentui/public-docsite/lib/data/brand-icons-products.json');

export const OfficeBrandIconsPage: React.FunctionComponent<IStylesPageProps> = props => {
Expand Down
1 change: 1 addition & 0 deletions apps/theming-designer/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"rules": {
"@typescript-eslint/no-explicit-any": "off",
"deprecation/deprecation": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"prefer-const": "off"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Update eslint-disables",
"packageName": "@fluentui/react-utilities",
"email": "[email protected]",
"dependentChangeType": "none"
}
3 changes: 2 additions & 1 deletion packages/fluentui/docs/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
],
"rules": {
"no-alert": "off",
"import/no-default-export": "off"
"import/no-default-export": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../../.."] }]
},
"root": true
}
3 changes: 2 additions & 1 deletion packages/react-examples/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"extends": ["plugin:@fluentui/eslint-plugin/react--legacy"],
"root": true,
"rules": {
"import/no-webpack-loader-syntax": "off",
"@typescript-eslint/no-explicit-any": "off",
"import/no-extraneous-dependencies": ["error", { "devDependencies": true, "packageDir": [".", "../.."] }],
"import/no-webpack-loader-syntax": "off",
"no-alert": "off"
}
}
1 change: 1 addition & 0 deletions packages/react-utilities/src/compose/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export type SlotPropsRecord = Record<string, UnknownSlotProps | SlotShorthandVal
/**
* The shorthand value of a slot allows specifying its child
*/
// eslint-disable-next-line deprecation/deprecation
export type SlotShorthandValue = React.ReactChild | React.ReactNodeArray | React.ReactPortal;

/**
Expand Down
12 changes: 6 additions & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5520,7 +5520,7 @@
dependencies:
"@types/react" "*"

"@types/react-is@^16.7.1":
"@types/[email protected]":
version "16.7.1"
resolved "https://registry.yarnpkg.com/@types/react-is/-/react-is-16.7.1.tgz#d3f1c68c358c00ce116b55ef5410cf486dd08539"
integrity sha512-dMLFD2cCsxtDgMkTydQCM0PxDq8vwc6uN5M/jRktDfYvH3nQj6pjC9OrCXS2lKlYoYTNJorI/dI8x9dpLshexQ==
Expand Down Expand Up @@ -21652,16 +21652,16 @@ react-inspector@^5.1.0:
is-dom "^1.0.0"
prop-types "^15.0.0"

[email protected], react-is@^16.12.0, react-is@^16.6.0, react-is@^16.6.3, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0:
version "16.12.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==

[email protected], react-is@^17.0.1, react-is@^17.0.2:
version "17.0.2"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0"
integrity sha512-w2GsyukL62IJnlaff/nRegPQR94C/XXamvMWmSHRJ4y7Ts/4ocGRmTHvOs8PSE6pB3dWOrD/nueuU5sduBsQ4w==

react-is@^16.12.0, react-is@^16.6.0, react-is@^16.6.3, react-is@^16.7.0, react-is@^16.8.1, react-is@^16.8.6, react-is@^16.9.0:
version "16.12.0"
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.12.0.tgz#2cc0fe0fba742d97fd527c42a13bec4eeb06241c"
integrity sha512-rPCkf/mWBtKc97aLL9/txD8DZdemK0vkA3JMLShjlJB3Pj3s+lpf1KaBzMfQrAmhMQB0n1cU/SUGgKKBCe837Q==

react-lifecycles-compat@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz#4f1a273afdfc8f3488a8c516bfda78f872352362"
Expand Down

0 comments on commit ece793e

Please sign in to comment.