mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
59 lines
1.3 KiB
JavaScript
59 lines
1.3 KiB
JavaScript
import nx from '@nx/eslint-plugin';
|
|
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
|
import jsoncEslintParser from 'jsonc-eslint-parser';
|
|
|
|
export default [
|
|
...nx.configs['flat/base'],
|
|
...nx.configs['flat/typescript'],
|
|
...nx.configs['flat/javascript'],
|
|
{
|
|
ignores: ['**/dist', '**/generated'],
|
|
},
|
|
// Bis Module Boundaries gelöst sind, wird das Plugin nicht verwendet
|
|
// {
|
|
// files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
|
// rules: {
|
|
// '@nx/enforce-module-boundaries': [
|
|
// 'error',
|
|
// {
|
|
// enforceBuildableLibDependency: true,
|
|
// allow: ['^.*/eslint(\\.base)?\\.config\\.[cm]?js$'],
|
|
// depConstraints: [
|
|
// {
|
|
// sourceTag: '*',
|
|
// onlyDependOnLibsWithTags: ['*'],
|
|
// },
|
|
// ],
|
|
// },
|
|
// ],
|
|
// },
|
|
// },
|
|
{
|
|
files: [
|
|
'**/*.ts',
|
|
'**/*.tsx',
|
|
'**/*.js',
|
|
'**/*.jsx',
|
|
'**/*.cjs',
|
|
'**/*.mjs',
|
|
],
|
|
// Override or add rules here
|
|
rules: {},
|
|
},
|
|
{
|
|
files: ['**/*.json'],
|
|
rules: {
|
|
'@nx/dependency-checks': [
|
|
'error',
|
|
{
|
|
ignoredFiles: ['{projectRoot}/eslint.config.{js,cjs,mjs}'],
|
|
},
|
|
],
|
|
},
|
|
languageOptions: {
|
|
parser: jsoncEslintParser,
|
|
},
|
|
},
|
|
eslintConfigPrettier,
|
|
];
|