Skip to content

Commit 88a304a

Browse files
committed
update to getFlatConfigs
1 parent f179dc0 commit 88a304a

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ module.exports = {
1717
typescript: require('./configs/typescript'),
1818
react: require('./configs/react'),
1919
},
20-
flatConfigs: getFlatConfig,
20+
getFlatConfigs: getFlatConfig,
2121
}

test-examples/flat/eslint.config.mjs

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import github from 'eslint-plugin-github'
22

33
export default [
4-
github.flatConfigs().browser,
5-
github.flatConfigs().recommended,
6-
github.flatConfigs().react,
7-
...github.flatConfigs().typescript,
4+
github.getFlatConfigs().browser,
5+
github.getFlatConfigs().recommended,
6+
github.getFlatConfigs().react,
7+
...github.getFlatConfigs().typescript,
88
{
99
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
1010
ignores: ['eslint.config.mjs'],

test-examples/legacy/src/thisTypescriptTest.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ class Safe {
1313
var foo = function() {
1414
this.a = 0;
1515
baz(() => this);
16-
};
16+
};

0 commit comments

Comments
 (0)