twenty/packages/twenty-front/.eslintrc.cjs

35 lines
826 B
JavaScript

module.exports = {
extends: ['../../.eslintrc.cjs', '../../.eslintrc.react.cjs'],
ignorePatterns: [
'!**/*',
'node_modules',
'mockServiceWorker.js',
'**/generated*/*',
'**/generated/standard-metadata-query-result.ts',
'tsup.config.ts',
'build',
'coverage',
'storybook-static',
'**/*config.js',
'codegen*',
'tsup.ui.index.tsx',
'__mocks__',
],
overrides: [
{
files: ['*.ts', '*.tsx'],
parserOptions: {
project: ['packages/twenty-front/tsconfig.{json,*.json}'],
},
plugins: ['project-structure'],
settings: {
'project-structure/folder-structure-config-path':
'packages/twenty-front/folderStructure.json',
},
rules: {
'project-structure/folder-structure': 'error',
},
},
],
};