Skip to content

Commit

Permalink
update to getFlatConfigs
Browse files Browse the repository at this point in the history
  • Loading branch information
gracepark committed Nov 18, 2024
1 parent f179dc0 commit 88a304a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ module.exports = {
typescript: require('./configs/typescript'),
react: require('./configs/react'),
},
flatConfigs: getFlatConfig,
getFlatConfigs: getFlatConfig,
}
8 changes: 4 additions & 4 deletions test-examples/flat/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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'],
Expand Down
2 changes: 1 addition & 1 deletion test-examples/legacy/src/thisTypescriptTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ class Safe {
var foo = function() {
this.a = 0;
baz(() => this);
};
};

0 comments on commit 88a304a

Please sign in to comment.