Skip to content

Commit 8609d48

Browse files
committed
fixup! chore: migrate v9 packages to eslint flat configs
1 parent 6abd22b commit 8609d48

File tree

7 files changed

+24
-4
lines changed

7 files changed

+24
-4
lines changed

packages/react-components/babel-preset-storybook-full-source/.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

packages/react-components/babel-preset-storybook-full-source/eslint.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@
22

33
const fluentPlugin = require('@fluentui/eslint-plugin');
44

5-
module.exports = [...fluentPlugin.configs['flat/node']];
5+
module.exports = [
6+
...fluentPlugin.configs['flat/node'],
7+
{
8+
ignores: ['src/__fixtures__/**'],
9+
},
10+
];

packages/react-components/priority-overflow/src/debounce.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { debounce } from './debounce';
22

33
describe('debounce', () => {
4+
// eslint-disable-next-line no-promise-executor-return
45
const tick = () => new Promise(res => setTimeout(res, 0));
56

67
beforeAll(() => {

packages/react-components/react-conformance-griffel/eslint.config.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,12 @@
22

33
const fluentPlugin = require('@fluentui/eslint-plugin');
44

5-
module.exports = [...fluentPlugin.configs['flat/node']];
5+
module.exports = [
6+
...fluentPlugin.configs['flat/node'],
7+
{
8+
files: ['**/*.ts'],
9+
rules: {
10+
'import/no-extraneous-dependencies': 'off',
11+
},
12+
},
13+
];

packages/react-components/react-jsx-runtime/eslint.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,10 @@ module.exports = [
1010
'@nx/workspace-no-missing-jsx-pragma': ['error', { runtime: 'classic' }],
1111
},
1212
},
13+
{
14+
files: ['**/jsx-runtime.test.tsx'],
15+
rules: {
16+
'@nx/workspace-no-missing-jsx-pragma': 'off',
17+
},
18+
},
1319
];

packages/react-components/react-storybook-addon/eslint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const fluentPlugin = require('@fluentui/eslint-plugin');
55
module.exports = [
66
...fluentPlugin.configs['flat/react'],
77
{
8-
files: ['*.ts', '*.tsx'],
8+
files: ['**/*.ts', '**/*.tsx'],
99
rules: {
1010
'@griffel/styles-file': 'off',
1111
'@nx/workspace-enforce-use-client': 'off',

packages/react-components/theme-designer/eslint.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = [
99
'@griffel/styles-file': 'off',
1010
'@nx/workspace-no-restricted-globals': 'off',
1111
'@nx/workspace-enforce-use-client': 'off',
12+
'prefer-exponentiation-operator': 'off',
1213
},
1314
},
1415
];

0 commit comments

Comments
 (0)