Skip to content

Commit 4b5ee57

Browse files
committed
Conver the eslint config to cmj
1 parent b8412d9 commit 4b5ee57

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

eslint.config.js

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,12 @@
1-
import callstackConfigReact from '@callstack/eslint-config/react.flat.js';
1+
const callstackConfigReact = require('@callstack/eslint-config/react.flat.js');
22

3-
export default [
3+
module.exports = [
44
{
55
ignores: ['node_modules/', 'lib/'],
66
},
77
...callstackConfigReact,
88
{
9-
files: [
10-
'eslint.config.js',
11-
'example/**/*.{js,ts,tsx}',
12-
'example/*.{js,ts,tsx}',
13-
],
9+
files: ['eslint.config.js', 'example/**/*.{js,ts,tsx}'],
1410
rules: {
1511
'import/no-extraneous-dependencies': 'off',
1612
'import/no-unresolved': 'off',

0 commit comments

Comments
 (0)