68 lines
1.5 KiB
JavaScript
68 lines
1.5 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: [
|
|
'@rspack/core',
|
|
'@angular/core',
|
|
'jsonc-eslint-parser',
|
|
'vitest',
|
|
'memfs',
|
|
'sass',
|
|
'tailwindcss',
|
|
'@babel/core',
|
|
'autoprefixer',
|
|
'css-loader',
|
|
'jsonc-parser',
|
|
'less-loader',
|
|
'loader-utils',
|
|
'open',
|
|
'ora',
|
|
'parse5-html-rewriting-stream',
|
|
'piscina',
|
|
'postcss',
|
|
'postcss-loader',
|
|
'rxjs',
|
|
'sass-loader',
|
|
'sass-embedded',
|
|
'webpack-merge',
|
|
'ws',
|
|
],
|
|
},
|
|
],
|
|
},
|
|
languageOptions: {
|
|
parser: jsoncEslintParser,
|
|
},
|
|
},
|
|
{
|
|
ignores: ['dist'],
|
|
},
|
|
];
|