Skip to content

Commit

Permalink
feat: add object-curly-newline rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Talent30 authored Nov 4, 2023
1 parent 7d89a3d commit 7a9caee
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,8 +420,31 @@ module.exports = {
'error',
'never',
],
// Disabled because of https://github.com/xojs/eslint-config-xo/issues/27
// 'object-property-newline': 'error',
'object-curly-newline': [
'error',
{
ObjectExpression: {

Check failure on line 426 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Mixed spaces and tabs

Check failure on line 426 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Mixed spaces and tabs

Check failure on line 426 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Mixed spaces and tabs
multiline: true,

Check failure on line 427 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 427 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 427 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
minProperties: 2,

Check failure on line 428 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 428 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 428 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
consistent: true,

Check failure on line 429 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 429 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 429 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
},

Check failure on line 430 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Mixed spaces and tabs

Check failure on line 430 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Mixed spaces and tabs

Check failure on line 430 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Mixed spaces and tabs
ObjectPattern: {

Check failure on line 431 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Mixed spaces and tabs

Check failure on line 431 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Mixed spaces and tabs

Check failure on line 431 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Mixed spaces and tabs
multiline: true,

Check failure on line 432 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 432 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 432 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
minProperties: 4,

Check failure on line 433 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 433 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 433 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
consistent: true,

Check failure on line 434 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Expected indentation of 5 tabs but found 4

Check failure on line 434 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Expected indentation of 5 tabs but found 4

Check failure on line 434 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Expected indentation of 5 tabs but found 4
},

Check failure on line 435 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 16

Mixed spaces and tabs

Check failure on line 435 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 14

Mixed spaces and tabs

Check failure on line 435 in index.js

View workflow job for this annotation

GitHub Actions / Node.js 12

Mixed spaces and tabs
ImportDeclaration: {
multiline: true,
minProperties: 4,
consistent: true,
},
ExportDeclaration: {
multiline: true,
minProperties: 2,
consistent: true,
},
},
],
'one-var': [
'error',
'never',
Expand Down

0 comments on commit 7a9caee

Please sign in to comment.