mirror of
https://dev.azure.com/hugendubel/ISA/_git/ISA-Frontend
synced 2025-12-28 22:42:11 +01:00
43 lines
1.1 KiB
JavaScript
43 lines
1.1 KiB
JavaScript
import nx from '@nx/eslint-plugin'
|
|
import prettierConfig from 'eslint-config-prettier'
|
|
import prettierPlugin from 'eslint-plugin-prettier'
|
|
|
|
export default [
|
|
...nx.configs['flat/base'],
|
|
...nx.configs['flat/typescript'],
|
|
...nx.configs['flat/javascript'],
|
|
{
|
|
ignores: ['**/dist'],
|
|
},
|
|
// 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
|
|
plugins: {
|
|
prettier: prettierPlugin,
|
|
},
|
|
rules: {
|
|
'prettier/prettier': 'error',
|
|
},
|
|
...prettierConfig,
|
|
},
|
|
]
|