fix(tools): ignore files that should not be linted (#65594)

This commit is contained in:
Oliver Eyton-Williams
2026-01-30 15:19:55 +01:00
committed by GitHub
parent 15f9844270
commit d61ecc789d
2 changed files with 32 additions and 25 deletions
+24 -16
View File
@@ -1,5 +1,5 @@
import { config } from '@freecodecamp/eslint-config/base';
import { defineConfig } from 'eslint/config';
import { defineConfig, globalIgnores } from 'eslint/config';
import globals from 'globals';
/**
@@ -7,20 +7,28 @@ import globals from 'globals';
*
* @type {import("eslint").Linter.Config[]}
* */
export default defineConfig({
extends: [config],
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
...globals.node,
Promise: true,
window: true,
$: true,
ga: true,
jQuery: true,
router: true,
globalThis: true
export default defineConfig(
globalIgnores([
'./src/test/stubs/js',
'./src/test/blocks-generated',
'./challenges',
'./structure'
]),
{
extends: [config],
languageOptions: {
globals: {
...globals.browser,
...globals.mocha,
...globals.node,
Promise: true,
window: true,
$: true,
ga: true,
jQuery: true,
router: true,
globalThis: true
}
}
}
});
);
+8 -9
View File
@@ -1,12 +1,11 @@
import { configTypeChecked } from '@freecodecamp/eslint-config/base';
import { defineConfig, globalIgnores } from 'eslint/config';
export default [
...configTypeChecked,
{
rules: {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
}
export default defineConfig(globalIgnores(['./playwright']), {
extends: [configTypeChecked],
rules: {
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off'
}
];
});