mirror of https://github.com/ghostfolio/ghostfolio
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
832 B
43 lines
832 B
const baseConfig = require('../../eslint.config.cjs');
|
|
|
|
module.exports = [
|
|
{
|
|
ignores: ['**/dist']
|
|
},
|
|
...baseConfig,
|
|
{
|
|
rules: {}
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx', '**/*.js', '**/*.jsx'],
|
|
// Override or add rules here
|
|
rules: {},
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: ['apps/api/tsconfig.*?.json']
|
|
}
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
// Override or add rules here
|
|
rules: {
|
|
'@typescript-eslint/no-restricted-imports': [
|
|
'error',
|
|
{
|
|
paths: [
|
|
{
|
|
message: 'Import from @ghostfolio/prisma/client instead.',
|
|
name: '@prisma/client'
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
files: ['**/*.js', '**/*.jsx'],
|
|
// Override or add rules here
|
|
rules: {}
|
|
}
|
|
];
|
|
|