Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
c22903b
chore: update eslint and related deps, dedupe
mainframev Dec 27, 2024
cdb21b7
chore(nx): set ESLINT_USE_FLAT_CONFIG=false
mainframev Dec 30, 2024
b25627e
chore(workspace-plugin): use legacy type until flat config migration
mainframev Dec 30, 2024
ae93730
chore: update playwright eslint config
mainframev Dec 30, 2024
7f616ff
chore(web-components): remove eslint errors after upgrading playwrigh…
mainframev Dec 31, 2024
3e63f32
chore(react-calendar-compat): suppress react-hooks eslint errors
mainframev Dec 31, 2024
e90d229
chore(react): suppress react-hooks errors in CalendarYear
mainframev Dec 31, 2024
c027903
chore: suppress and remove eslint errors for deprecated errors and re…
mainframev Dec 31, 2024
41dc393
chore: update packages .eslintrc files
mainframev Dec 31, 2024
fa282ab
chore(pr-deploy-site): migrate to flat config
mainframev Dec 31, 2024
ab2a63b
chore(public-docsite-setup): migrate to flat config
mainframev Dec 31, 2024
bdd994d
chore: fix format
mainframev Dec 31, 2024
fd009e9
chore(eslint-plugin-react): update eslint deps
mainframev Jan 2, 2025
38d8f73
chore(gulp): use LegacyESLint
mainframev Jan 2, 2025
dd98652
chore(lint-staged): use legacy eslint
mainframev Dec 30, 2024
8a915b1
chore(chart-utilities): add USE_ESLINT_FLAT_CONFIG var
mainframev Mar 24, 2025
eb677c0
chore: remove ESLINT_USE_FLAT_CONFIG from package.json scripts in fav…
mainframev Mar 28, 2025
aa69d8f
chore: update change files
mainframev Mar 28, 2025
677be34
chore(tasks): add eslint env variable
mainframev Mar 28, 2025
2532692
chore(public-docsite-setup): revert scripts change
mainframev Mar 31, 2025
62f9791
chore(public-docsite-setup): adjust config to work with old eslint-pl…
mainframev Mar 31, 2025
6258a79
chore: dedupe
mainframev Apr 2, 2025
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
21 changes: 0 additions & 21 deletions apps/pr-deploy-site/.eslintrc.json

This file was deleted.

29 changes: 29 additions & 0 deletions apps/pr-deploy-site/eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
const js = require('@eslint/js');
const sdl = require('@microsoft/eslint-plugin-sdl');
const es = require('eslint-plugin-es');
const { FlatCompat } = require('@eslint/eslintrc');

const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});

module.exports = [
...compat.extends('plugin:@fluentui/eslint-plugin/node'),
...sdl.configs.recommended,
{
files: ['**/pr-deploy-site.js'],
plugins: {
es,
},

rules: {
curly: 'off',
'no-var': 'off',
'vars-on-top': 'off',
'prefer-arrow-callback': 'off',
'no-restricted-globals': 'off',
},
},
];
2 changes: 1 addition & 1 deletion apps/pr-deploy-site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"clean": "just-scripts clean",
"generate:site": "just-scripts generate:site",
"lint": "eslint --ext .js,.ts --cache .",
"lint": "eslint --cache .",
"type-check": "tsc -p . --noEmit"
},
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion apps/public-docsite-resources/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"build": "just-scripts build",
"prebundle": "yarn build",
"bundle": "just-scripts bundle",
"lint": "eslint --ext .js,.ts,.tsx ./src",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts,.tsx ./src",
"just": "just-scripts",
"clean": "just-scripts clean",
"code-style": "just-scripts code-style",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export const AutoSizeForSmallViewport = () => {
<MenuPopover>
<MenuList>
{Array.from({ length: menuItemCount }, (_, i) => (
<MenuItem>Item {i}</MenuItem>
<MenuItem key={i}>Item {i}</MenuItem>
))}
</MenuList>
</MenuPopover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export const CoverTargetForSmallViewport = () => {
<MenuPopover>
<MenuList>
{Array.from({ length: menuItemCount }, (_, i) => (
<MenuItem>Item {i}</MenuItem>
<MenuItem key={i}>Item {i}</MenuItem>
))}
</MenuList>
</MenuPopover>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export const FabricIconsPage: React.FunctionComponent<IStylesPageProps> = props
};

function _otherSections(platform: Platforms): IPageSectionProps<Platforms>[] {
// eslint-disable-next-line react-hooks/rules-of-hooks
const [selectedItem, setSelectedItem] = React.useState('react-font');
switch (platform) {
case 'web':
Expand Down
2 changes: 1 addition & 1 deletion apps/react-18-tests-v8/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"format:check": "yarn format -c",
"e2e": "cypress run --component",
"e2e:local": "cypress open --component",
"lint": "eslint --ext .js,.ts,.tsx ./src",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts,.tsx ./src",
"test": "jest --passWithNoTests",
"start": "webpack-dev-server --mode=development"
},
Expand Down
2 changes: 1 addition & 1 deletion apps/react-18-tests-v9/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"private": true,
"scripts": {
"type-check": "just-scripts type-check",
"lint": "eslint --ext .js,.ts,.tsx ./src",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts,.tsx ./src",
"test": "jest --passWithNoTests",
"format": "prettier -w . --ignore-path ../.prettierignore",
"format:check": "yarn format -c",
Expand Down
2 changes: 1 addition & 1 deletion apps/vr-tests-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"scripts": {
"build-storybook": "storybook build -o dist/storybook",
"format": "prettier . -w --ignore-path ../../.prettierignore",
"lint": "eslint src --ext .ts,.tsx",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src --ext .ts,.tsx",
"start": "storybook dev",
"type-check": "tsc -p . --baseUrl . --noEmit",
"test-vr": "storywright --browsers chromium --url dist/storybook --destpath dist/screenshots --waitTimeScreenshot 500 --concurrency 4 --headless true"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/chart-web-components",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/cra-template",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/eslint-plugin",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/eslint-plugin-react-components",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/public-docsite-setup",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/react",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/react-calendar-compat",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/react-experiments",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/react-monaco-editor",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/react-motion",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/utilities",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "chore: add ESLINT_USE_FLAT_CONFIG env variable",
"packageName": "@fluentui/web-components",
"email": "vgenaev@gmail.com",
"dependentChangeType": "none"
}
2 changes: 1 addition & 1 deletion nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"{workspaceRoot}/eslint.config.js"
],
"options": {
"command": "eslint src"
"command": "cross-env ESLINT_USE_FLAT_CONFIG=false eslint src"
}
},
"format": {
Expand Down
37 changes: 18 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,12 @@
"@dnd-kit/core": "^6.0.8",
"@dnd-kit/sortable": "^7.0.2",
"@dnd-kit/utilities": "^3.2.1",
"@eslint/compat": "1.1.1",
"@eslint/js": "9.17.0",
"@floating-ui/dom": "1.6.12",
"@fluentui/react-icons": "^2.0.245",
"@griffel/babel-preset": "1.5.8",
"@griffel/eslint-plugin": "^1.6.4",
"@griffel/eslint-plugin": "^2.0.0",
"@griffel/jest-serializer": "1.1.24",
"@griffel/react": "^1.5.22",
"@griffel/shadow-dom": "0.2.2",
Expand All @@ -71,7 +73,7 @@
"@mdx-js/loader": "2.3.0",
"@microsoft/api-extractor": "7.49.1",
"@microsoft/api-extractor-model": "7.30.2",
"@microsoft/eslint-plugin-sdl": "0.1.9",
"@microsoft/eslint-plugin-sdl": "1.0.1",
"@microsoft/load-themed-styles": "1.10.26",
"@microsoft/loader-load-themed-styles": "2.0.17",
"@microsoft/tsdoc": "0.15.1",
Expand All @@ -88,7 +90,7 @@
"@phenomnomnominal/tsquery": "6.1.3",
"@playwright/test": "1.49.1",
"@react-native/babel-preset": "0.73.21",
"@rnx-kit/eslint-plugin": "0.8.2",
"@rnx-kit/eslint-plugin": "0.8.4",
"@rollup/plugin-node-resolve": "13.3.0",
"@storybook/addon-a11y": "7.6.20",
"@storybook/addon-actions": "7.6.20",
Expand Down Expand Up @@ -134,7 +136,7 @@
"@types/doctrine": "0.0.5",
"@types/ejs": "3.1.5",
"@types/enzyme": "3.10.7",
"@types/eslint": "8.56.10",
"@types/eslint": "9.6.1",
"@types/express": "4.17.21",
"@types/fs-extra": "8.0.1",
"@types/glob": "7.1.1",
Expand Down Expand Up @@ -174,10 +176,7 @@
"@types/webpack-hot-middleware": "2.25.9",
"@types/yargs": "13.0.11",
"@types/yargs-unparser": "2.0.1",
"@typescript-eslint/eslint-plugin": "8.8.1",
"@typescript-eslint/parser": "8.8.1",
"@typescript-eslint/rule-tester": "8.8.1",
"@typescript-eslint/utils": "8.8.1",
"@typescript-eslint/rule-tester": "8.19.1",
"@wojtekmaj/enzyme-adapter-react-17": "0.6.7",
"ajv": "8.4.0",
"autoprefixer": "10.2.1",
Expand Down Expand Up @@ -227,20 +226,20 @@
"enzyme-to-json": "3.6.2",
"esbuild": "0.25.0",
"esbuild-loader": "4.1.0",
"eslint": "8.57.0",
"eslint": "9.17.0",
"eslint-config-airbnb": "18.2.1",
"eslint-config-prettier": "8.3.0",
"eslint-import-resolver-typescript": "3.6.1",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.7.0",
"eslint-plugin-compat": "6.0.2",
"eslint-plugin-es": "4.1.0",
"eslint-plugin-import": "2.29.1",
"eslint-plugin-jest": "28.8.0",
"eslint-plugin-jsdoc": "48.7.0",
"eslint-plugin-jsx-a11y": "6.9.0",
"eslint-plugin-playwright": "0.15.3",
"eslint-plugin-react": "7.26.0",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-jest": "28.10.0",
"eslint-plugin-jsdoc": "50.6.1",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-playwright": "2.1.0",
"eslint-plugin-react": "7.37.3",
"eslint-plugin-react-compiler": "0.0.0-experimental-a97cca1-20240529",
"eslint-plugin-react-hooks": "4.6.2",
"eslint-plugin-react-hooks": "5.1.0",
"express": "4.20.0",
"extract-comments": "1.1.0",
"file-loader": "6.2.0",
Expand Down Expand Up @@ -342,6 +341,7 @@
"tsconfig-paths-webpack-plugin": "4.1.0",
"tslib": "2.6.3",
"typescript": "5.3.3",
"typescript-eslint": "8.19.1",
"vinyl": "2.2.0",
"vite": "6.0.9",
"webpack": "5.94.0",
Expand Down Expand Up @@ -378,7 +378,6 @@
"resolutions": {
"@types/jest-axe/axe-core": "4.7.2",
"esbuild": "0.25.0",
"eslint": "8.57.0",
"@microsoft/api-extractor/typescript": "5.3.3",
"swc-loader": "^0.2.6",
"prettier": "2.8.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/chart-web-components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"clean": "node ./scripts/clean dist",
"generate-api": "api-extractor run --local",
"build": "yarn compile && yarn rollup -c && yarn generate-api",
"lint": "eslint . --ext .ts",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint . --ext .ts",
"lint:fix": "eslint . --ext .ts --fix",
"format": "prettier -w src/**/*.{ts,html} --ignore-path ../../.prettierignore",
"format:check": "yarn format -c",
Expand Down
2 changes: 1 addition & 1 deletion packages/charts/react-charts/stories/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"start": "yarn storybook",
"storybook": "storybook dev",
"type-check": "just-scripts type-check",
"lint": "eslint src/",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint src/",
"format": "just-scripts prettier",
"test-ssr": "test-ssr \"./src/**/*.stories.ssr.tsx\""
},
Expand Down
2 changes: 1 addition & 1 deletion packages/cra-template/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"directory": "packages/cra-template"
},
"scripts": {
"lint": "eslint --ext .js,.ts,.tsx .",
"lint": "ESLINT_USE_FLAT_CONFIG=false eslint --ext .js,.ts,.tsx .",
"test-integration": "node -r @fluentui/scripts-babel/register scripts/test.ts",
"type-check": "tsc -p ."
},
Expand Down
31 changes: 15 additions & 16 deletions packages/eslint-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,22 @@
},
"license": "MIT",
"dependencies": {
"@griffel/eslint-plugin": "^1.6.4",
"@rnx-kit/eslint-plugin": "^0.8.2",
"@typescript-eslint/eslint-plugin": "^8.8.1",
"@typescript-eslint/utils": "^8.8.1",
"@typescript-eslint/rule-tester": "8.8.1",
"@typescript-eslint/parser": "^8.8.1",
"@typescript-eslint/type-utils": "^8.8.1",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-typescript": "^3.6.1",
"@griffel/eslint-plugin": "^2.0.0",
"@rnx-kit/eslint-plugin": "^0.8.4",
"typescript-eslint": "8.19.1",
"@typescript-eslint/utils": "^8.19.1",
"@typescript-eslint/rule-tester": "8.19.1",
"@typescript-eslint/type-utils": "^8.19.1",
"eslint-plugin-compat": "^6.0.2",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jest": "^28.6.0",
"eslint-plugin-jsdoc": "^48.7.0",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.7.0",
"eslint-plugin-import": "^2.31.0",
"eslint-plugin-jest": "^28.10.0",
"eslint-plugin-jsdoc": "^50.6.1",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react": "^7.37.3",
"eslint-plugin-react-hooks": "^5.1.0",
"fs-extra": "^8.1.0",
"minimatch": "^3.1.2",
"jju": "^1.4.0"
Expand Down
Loading