2024-11-04 19:44:36 +03:00
|
|
|
const path = require('path');
|
|
|
|
|
2022-12-02 14:03:29 +03:00
|
|
|
module.exports = {
|
2024-04-04 13:05:26 +03:00
|
|
|
extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],
|
2024-01-04 01:07:25 +03:00
|
|
|
ignorePatterns: [
|
|
|
|
'!**/*',
|
|
|
|
'node_modules',
|
|
|
|
'mockServiceWorker.js',
|
|
|
|
'**/generated*/*',
|
2024-04-17 17:24:04 +03:00
|
|
|
'**/generated/standard-metadata-query-result.ts',
|
2024-01-10 19:42:11 +03:00
|
|
|
'tsup.config.ts',
|
|
|
|
'build',
|
|
|
|
'coverage',
|
|
|
|
'storybook-static',
|
2024-01-04 01:07:25 +03:00
|
|
|
'**/*config.js',
|
|
|
|
'codegen*',
|
|
|
|
'tsup.ui.index.tsx',
|
2024-03-09 12:48:19 +03:00
|
|
|
'__mocks__',
|
2024-01-04 01:07:25 +03:00
|
|
|
],
|
2023-06-04 12:23:09 +03:00
|
|
|
overrides: [
|
2023-10-05 22:16:02 +03:00
|
|
|
{
|
2024-04-04 13:05:26 +03:00
|
|
|
files: ['*.ts', '*.tsx'],
|
2024-01-04 01:07:25 +03:00
|
|
|
parserOptions: {
|
2024-03-09 12:48:19 +03:00
|
|
|
project: ['packages/twenty-front/tsconfig.{json,*.json}'],
|
2023-12-10 18:22:43 +03:00
|
|
|
},
|
2024-10-20 21:20:19 +03:00
|
|
|
plugins: ['project-structure'],
|
|
|
|
settings: {
|
2024-11-04 19:44:36 +03:00
|
|
|
'project-structure/folder-structure-config-path':path.resolve(
|
|
|
|
__dirname,
|
|
|
|
'folderStructure.json'
|
|
|
|
)
|
2024-10-20 21:20:19 +03:00
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'project-structure/folder-structure': 'error',
|
|
|
|
},
|
2023-10-05 22:16:02 +03:00
|
|
|
},
|
2023-12-10 18:22:43 +03:00
|
|
|
],
|
2023-04-20 12:44:47 +03:00
|
|
|
};
|