79365830

Date: 2025-01-17 18:52:07
Score: 0.5
Natty:
Report link

I found the answer here: https://stackoverflow.com/a/78887005/5338948

The problem was that the ESLint docs don't specifically state that the ignores should be it's own object. I changed my eslint as below and it worked

import eslint from '@eslint/js';
import stylistic from '@stylistic/eslint-plugin';
import tseslint from 'typescript-eslint';

/** @type { import('@typescript-eslint/utils').TSESLint.FlatConfig.ConfigFile } */
export default [
  eslint.configs.recommended,
  ...tseslint.configs.recommendedTypeChecked,
  ...tseslint.configs.stylisticTypeChecked,

  stylistic.configs.customize({
    'indent': 2,
    'brace-style': '1tbs',
    'semi': true,
    'arrow-parens': true,
  }),
  {
    ignores: [
      '**/*.js',
      '**/tests-examples/**',
      '**/pw-report/**',
      'assets',
    ]
  },
  {
    plugins: {
      '@typescript-eslint': tseslint.plugin,
      '@stylistic': stylistic,
    },
...
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: iam_malc