import { baseConfig } from '../../eslint.config.mjs'; import * as jsoncEslintParser from 'jsonc-eslint-parser'; export default [ ...baseConfig, { ignores: ['dist'] }, { files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'], rules: { 'no-restricted-imports': [ 'error', { name: 'chalk', message: 'Please use `picocolors` in place of `chalk` for rendering terminal colors', }, { name: 'minimatch', message: 'Please use `picomatch` instead.', }, ], }, }, { files: ['./package.json', './generators.json', './executors.json'], rules: { '@nx/nx-plugin-checks': 'error', }, languageOptions: { parser: jsoncEslintParser, }, }, { files: ['./package.json'], rules: { '@nx/dependency-checks': [ 'error', { buildTargets: ['build-base'], ignoredDependencies: [ 'nx', 'typescript', '@swc/core', 'postcss', 'postcss-modules', 'source-map-js', '@rollup/plugin-typescript', ], }, ], }, languageOptions: { parser: jsoncEslintParser, }, }, ];