* chore: 🤖 Upgrade eslint config for admin ui * chore: 🤖 Fix eslint issues for admin * chore: 🤖 Upgrade eslint config for desktop * chore: 🤖 Fix linting errors in desktop * chore: 🤖 Upgrade eslint for api addon * chore: 🤖 Fix eslint issues in api addon * chore: 🤖 Upgrade eslint for auth addon * chore: 🤖 Fix eslint issues in auth addon * chore: 🤖 Upgrade core eslint config * chore: 🤖 Fix eslint issue for core addon * chore: 🤖 Upgrade eslint config for rose addon * chore: 🤖 Fix eslint issue for rose addon * chore: 🤖 Upgrade e2e eslint config * chore: 🤖 Fix eslint issues in e2e * chore: 🤖 Fix CI linting issues * chore: 🤖 Add back linting server files for the future * chore: 🤖 Update qunit rules to use extends
47 lines
1.2 KiB
JavaScript
47 lines
1.2 KiB
JavaScript
/**
|
|
* Copyright IBM Corp. 2021, 2026
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import { defineConfig, globalIgnores } from 'eslint/config';
|
|
import babelParser from '@babel/eslint-parser';
|
|
import js from '@eslint/js';
|
|
import playwright from 'eslint-plugin-playwright';
|
|
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
|
import globals from 'globals';
|
|
|
|
export default defineConfig([
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
parser: babelParser,
|
|
parserOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
// This is specific babel-config. If grows consider creating a babel config file
|
|
requireConfigFile: false,
|
|
// end of babel-config
|
|
},
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
...globals.es2021,
|
|
},
|
|
},
|
|
rules: {
|
|
curly: ['error', 'multi-line', 'consistent'],
|
|
'no-empty-pattern': ['error', { allowObjectPatternsAsParameters: true }],
|
|
},
|
|
},
|
|
|
|
// Playwright test files
|
|
{
|
|
files: ['admin/tests/**', 'desktop/tests/**'],
|
|
extends: [playwright.configs['flat/recommended']],
|
|
},
|
|
|
|
// Prettier should be last
|
|
eslintConfigPrettier,
|
|
globalIgnores(['admin/artifacts', 'desktop/artifacts', 'playwright-report']),
|
|
]);
|