forked from twentyhq/twenty
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: extend root eslint config in twenty-server (twentyhq#5101)
Reopening @thaisguigon work from twentyhq#4781 --------- Co-authored-by: Thaïs Guigon <guigon.thais@gmail.com>
- Loading branch information
1 parent
b9a7eb5
commit fa4670b
Showing
66 changed files
with
646 additions
and
629 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
module.exports = { | ||
plugins: ['@stylistic'], | ||
extends: ['../../.eslintrc.cjs'], | ||
ignorePatterns: ['src/engine/workspace-manager/demo-objects-prefill-data/**'], | ||
overrides: [ | ||
{ | ||
files: ['*.ts'], | ||
parserOptions: { | ||
project: ['packages/twenty-server/tsconfig.json'], | ||
}, | ||
rules: { | ||
'no-restricted-imports': [ | ||
'error', | ||
{ | ||
patterns: [ | ||
{ | ||
group: ['**../'], | ||
message: 'Relative imports are not allowed.', | ||
}, | ||
], | ||
}, | ||
], | ||
|
||
'@stylistic/linebreak-style': ['error', 'unix'], | ||
'@stylistic/lines-between-class-members': [ | ||
'error', | ||
{ | ||
enforce: [{ blankLine: 'always', prev: 'method', next: 'method' }], | ||
}, | ||
], | ||
'@stylistic/padding-line-between-statements': [ | ||
'error', | ||
{ blankLine: 'always', prev: '*', next: 'return' }, | ||
{ blankLine: 'always', prev: ['const', 'let', 'var'], next: '*' }, | ||
{ | ||
blankLine: 'any', | ||
prev: ['const', 'let', 'var'], | ||
next: ['const', 'let', 'var'], | ||
}, | ||
{ blankLine: 'always', prev: '*', next: ['interface', 'type'] }, | ||
], | ||
|
||
'import/order': [ | ||
'error', | ||
{ | ||
'newlines-between': 'always', | ||
groups: [ | ||
'builtin', | ||
'external', | ||
'internal', | ||
'type', | ||
'parent', | ||
'sibling', | ||
'object', | ||
'index', | ||
], | ||
pathGroups: [ | ||
{ | ||
pattern: '@nestjs/**', | ||
group: 'builtin', | ||
position: 'before', | ||
}, | ||
{ | ||
pattern: '**/interfaces/**', | ||
group: 'type', | ||
position: 'before', | ||
}, | ||
{ | ||
pattern: 'src/**', | ||
group: 'parent', | ||
position: 'before', | ||
}, | ||
{ | ||
pattern: './*', | ||
group: 'sibling', | ||
position: 'before', | ||
}, | ||
], | ||
distinctGroup: true, | ||
warnOnUnassignedImports: true, | ||
pathGroupsExcludedImportTypes: ['@nestjs/**'], | ||
}, | ||
], | ||
'simple-import-sort/imports': 'off', | ||
'unicorn/filename-case': 'off', | ||
'prefer-arrow/prefer-arrow-functions': 'off', | ||
'@nx/workspace-max-consts-per-file': 'off', | ||
}, | ||
}, | ||
], | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...wenty-server/src/engine/api/graphql/workspace-schema-builder/graphql-types/input/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
export * from './big-float-filter.input-type'; | ||
export * from './big-int-filter.input-type'; | ||
export * from './boolean-filter.input-type'; | ||
export * from './date-filter.input-type'; | ||
export * from './date-time-filter.input-type'; | ||
export * from './float-filter.input-type'; | ||
export * from './int-filter.input-type'; | ||
export * from './raw-json-filter.input-type'; | ||
export * from './string-filter.input-type'; | ||
export * from './time-filter.input-type'; | ||
export * from './uuid-filter.input-type'; | ||
export * from './boolean-filter.input-type'; | ||
export * from './raw-json-filter.input-type'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.