53 lines
1.3 KiB
JavaScript
53 lines
1.3 KiB
JavaScript
import { baseConfig } from '../../eslint.config.mjs';
|
|
import * as jsoncEslintParser from 'jsonc-eslint-parser';
|
|
|
|
export default [
|
|
...baseConfig,
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
|
rules: {
|
|
'no-restricted-imports': [
|
|
'error',
|
|
{
|
|
name: 'chalk',
|
|
message:
|
|
'Please use `picocolors` in place of `chalk` for rendering terminal colors',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['./package.json'],
|
|
rules: {
|
|
'@nx/nx-plugin-checks': 'error',
|
|
'@nx/dependency-checks': [
|
|
'error',
|
|
{
|
|
buildTargets: ['build-base'],
|
|
ignoredFiles: [
|
|
'{projectRoot}/eslint.config.mjs',
|
|
'{projectRoot}/vite.config.{js,ts,mjs,mts}',
|
|
],
|
|
ignoredDependencies: [
|
|
'@angular/core',
|
|
// Loaded via a dynamic runtime import in load-compiler-cli.ts (its
|
|
// nodenext-incompatible types are shimmed locally), so static
|
|
// analysis can't see the usage.
|
|
'@angular/compiler-cli',
|
|
'jsonc-eslint-parser',
|
|
'semver',
|
|
'vitest',
|
|
'memfs',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
languageOptions: {
|
|
parser: jsoncEslintParser,
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist'],
|
|
},
|
|
];
|