Skip to content

Commit

Permalink
Disabled chatgpt global in **/chatgpt.js, replacing `no-redeclare…
Browse files Browse the repository at this point in the history
  • Loading branch information
adamlui committed Nov 17, 2024
1 parent 319d311 commit 53afc5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,10 @@ export default [
'no-empty': 'off', // allow empty blocks
'no-inner-declarations': 'off', // allow function declarations anywhere
'no-useless-escape': 'off', // allow all escape chars cause ESLint sucks at detecting truly useless ones
'no-unused-vars': ['error', { 'caughtErrors': 'none' }], // allow unused named args in catch blocks
'no-redeclare': ['error', { 'builtinGlobals': false }] // allow redeclaration of `chatgpt` in chatgpt.js
// ...due to languageOptions.globals declaration for starter refs
'no-unused-vars': ['error', { 'caughtErrors': 'none' }] // allow unused named args in catch blocks
}
},
{ files: ['**/chatgpt.js'], languageOptions: { globals: { chatgpt: 'off' }}},
{ files: ['**/*.mjs', '**/lib*/*.js'], languageOptions: { sourceType: 'module' }},
{ files: ['**/*.json'], ignores: ['**/package-lock.json'], language: 'json/json', ...json.configs.recommended },
{
Expand Down

0 comments on commit 53afc5b

Please sign in to comment.