82 lines
1.7 KiB
JavaScript
82 lines
1.7 KiB
JavaScript
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',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'no-restricted-imports': ['error', '@nx/workspace'],
|
|
},
|
|
ignores: ['./src/migrations/**'],
|
|
},
|
|
{
|
|
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: [
|
|
'@angular-devkit/architect',
|
|
'@angular-devkit/core',
|
|
'@angular-devkit/schematics',
|
|
'@nx/cypress',
|
|
'@nx/jest',
|
|
'@nx/playwright',
|
|
'@nx/storybook',
|
|
'@nx/vite',
|
|
'@nx/vitest',
|
|
'@schematics/angular',
|
|
'browserslist',
|
|
'cypress',
|
|
'eslint',
|
|
'injection-js',
|
|
'nx',
|
|
'piscina',
|
|
'typescript',
|
|
'vite',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
languageOptions: {
|
|
parser: jsoncEslintParser,
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.ts'],
|
|
rules: {
|
|
'@angular-eslint/prefer-standalone': 'off',
|
|
},
|
|
},
|
|
];
|