项目文件夹

文件
2026-07-13 12:38:36 +08:00

56 行
1.1 KiB
JavaScript

import { baseConfig } from '../../eslint.config.mjs';
import * as jsoncEslintParser from 'jsonc-eslint-parser';
export default [
...baseConfig,
{
files: [
'./package.json',
'./generators.json',
'./executors.json',
'./migrations.json',
],
rules: {
'@nx/nx-plugin-checks': 'error',
},
languageOptions: {
parser: jsoncEslintParser,
},
},
{
files: ['./package.json'],
rules: {
'@nx/dependency-checks': [
'error',
{
buildTargets: ['build-base'],
ignoredDependencies: ['nx'],
},
],
},
languageOptions: {
parser: jsoncEslintParser,
},
},
{
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: 'fs-extra',
message: 'Please use equivalent utilities from `node:fs` instead.',
},
],
},
},
{
ignores: ['dist', 'analyzer', 'analyzer.Tests'],
},
];