mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-12 17:14:52 -07:00
more integration tests
This commit is contained in:
parent
4b5f66d497
commit
decebc25c7
192 changed files with 3090 additions and 1657 deletions
|
|
@ -19,9 +19,9 @@ const types = (...types) => types.map((type) => ({ to: { type } }));
|
|||
|
||||
const rules = [
|
||||
{ from: { type: 'generated' }, allow: [] },
|
||||
{ from: { type: 'types' }, allow: types('generated') },
|
||||
{ from: { type: 'types' }, allow: types('generated', 'websocket') },
|
||||
|
||||
{ from: { type: 'websocket' }, allow: types('types') },
|
||||
{ from: { type: 'websocket' }, allow: types('generated') },
|
||||
{ from: { type: 'store' }, allow: types('types') },
|
||||
{ from: { type: 'api' }, allow: types('types', 'store', 'websocket') },
|
||||
|
||||
|
|
@ -35,21 +35,27 @@ const rules = [
|
|||
{ from: { type: 'forms' }, allow: types('components', 'hooks', 'types', 'services', 'store') },
|
||||
];
|
||||
|
||||
export const boundariesConfig = {
|
||||
plugins: { boundaries },
|
||||
settings: {
|
||||
'boundaries/elements': elements,
|
||||
'import/resolver': {
|
||||
export const boundariesConfig = [
|
||||
{
|
||||
plugins: { boundaries },
|
||||
settings: {
|
||||
'boundaries/elements': elements,
|
||||
'import/resolver': {
|
||||
typescript: {
|
||||
alwaysTryTypes: true,
|
||||
project: './tsconfig.json',
|
||||
alwaysTryTypes: true,
|
||||
project: './tsconfig.json',
|
||||
},
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'boundaries/dependencies': ['error', {
|
||||
default: 'disallow',
|
||||
rules,
|
||||
}],
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'boundaries/dependencies': ['error', {
|
||||
default: 'disallow',
|
||||
rules,
|
||||
}],
|
||||
{
|
||||
files: ['**/*.spec.*'],
|
||||
rules: { 'boundaries/dependencies': 'off' },
|
||||
},
|
||||
};
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue