diff --git a/lib/index.js b/lib/index.js index 90a2afef..aa677a2d 100644 --- a/lib/index.js +++ b/lib/index.js @@ -17,5 +17,5 @@ module.exports = { typescript: require('./configs/typescript'), react: require('./configs/react'), }, - flatConfigs: getFlatConfig, + getFlatConfigs: getFlatConfig, } diff --git a/test-examples/flat/eslint.config.mjs b/test-examples/flat/eslint.config.mjs index 7dbf8e41..db132c02 100644 --- a/test-examples/flat/eslint.config.mjs +++ b/test-examples/flat/eslint.config.mjs @@ -1,10 +1,10 @@ import github from 'eslint-plugin-github' export default [ - github.flatConfigs().browser, - github.flatConfigs().recommended, - github.flatConfigs().react, - ...github.flatConfigs().typescript, + github.getFlatConfigs().browser, + github.getFlatConfigs().recommended, + github.getFlatConfigs().react, + ...github.getFlatConfigs().typescript, { files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'], ignores: ['eslint.config.mjs'], diff --git a/test-examples/legacy/src/thisTypescriptTest.ts b/test-examples/legacy/src/thisTypescriptTest.ts index c3d9ca2c..a6813cbd 100644 --- a/test-examples/legacy/src/thisTypescriptTest.ts +++ b/test-examples/legacy/src/thisTypescriptTest.ts @@ -13,4 +13,4 @@ class Safe { var foo = function() { this.a = 0; baz(() => this); -}; +}; \ No newline at end of file