Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/collaboration-manager/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/core/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be simplified to '@stylistic/object-curly-newline': ['error', { multiline: true, consistent: true }] when considering all other issues.

ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting 'never' breaks lint and deforms multiline imports into malformed syntax during autofix.

Perhaps it should be { multiline: true, consistent: true } (or omitted) to allow multiline imports?

ExportDeclaration: {
multiline: true,
minProperties: 3,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like example copy-paste. And it's breaking existing code.

Should we really break 3+ items even when it fits inline?

consistent: true,
},
TSTypeLiteral: {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if it matters, parameter TSInterfaceBody is missing, so TypeScript types are not fully covered.

multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/dom-adapters/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/model-types/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/model/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/ot-server/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/playground/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/sdk/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/tools/bold/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/tools/inline-link/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/tools/italic/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/tools/paragraph/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
20 changes: 20 additions & 0 deletions packages/ui/eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,26 @@ export default [
},
},
rules: {
'@stylistic/object-curly-newline': ['error', {
ObjectExpression: {
multiline: true,
consistent: true,
},
ObjectPattern: {
multiline: true,
consistent: true,
},
ImportDeclaration: 'never',
ExportDeclaration: {
multiline: true,
minProperties: 3,
consistent: true,
},
TSTypeLiteral: {
multiline: true,
consistent: true,
},
}],
'n/no-unpublished-import': ['error', {
allowModules: [
'eslint-config-codex',
Expand Down
Loading