mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
fix(tools): ignore files that should not be linted (#65594)
This commit is contained in:
committed by
GitHub
parent
15f9844270
commit
d61ecc789d
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
);
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user