Skip to content

Commit

Permalink
Remove indent and object-curly-newline rules, see phetsims/phet-info#156
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid authored and zepumph committed Oct 22, 2024
1 parent b11e61f commit 9521d0b
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions eslint/format_eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,35 +102,6 @@ module.exports = {
// https://eslint.org/docs/rules/implicit-arrow-linebreak
// 'implicit-arrow-linebreak': [ 'error', 'beside' ],

// this option sets a specific tab width for your code
// https://eslint.org/docs/rules/indent
indent: [ 'error', 2, {
SwitchCase: 1,
VariableDeclarator: 'first',
outerIIFEBody: 1,

// MemberExpression: null,
FunctionDeclaration: {
parameters: 'first',
body: 1
},
FunctionExpression: {
parameters: 'first',
body: 1
},
CallExpression: {
arguments: 1
},
ArrayExpression: 'first',
ObjectExpression: 'first',
ImportDeclaration: 'first',
flatTernaryExpressions: true,

// list derived from https://github.com/benjamn/ast-types/blob/HEAD/def/jsx.js
ignoredNodes: [ 'ConditionalExpression' ],
ignoreComments: false
} ],

// specify whether double or single quotes should be used in JSX attributes
// https://eslint.org/docs/rules/jsx-quotes
'jsx-quotes': [ 'off', 'prefer-double' ],
Expand Down Expand Up @@ -295,15 +266,6 @@ module.exports = {
// https://eslint.org/docs/rules/no-multi-spaces
'no-multi-spaces': 'error',

// enforce line breaks between braces
// https://eslint.org/docs/rules/object-curly-newline
'object-curly-newline': [ 'error', {
ObjectExpression: { minProperties: 4, multiline: true, consistent: true },
ObjectPattern: { minProperties: 4, multiline: true, consistent: true },
ImportDeclaration: { minProperties: 4, multiline: true, consistent: true },
ExportDeclaration: { minProperties: 4, multiline: true, consistent: true }
} ],

// enforce "same line" or "multiple line" on object properties.
// https://eslint.org/docs/rules/object-property-newline
// 'object-property-newline': [ 'error', {
Expand Down

0 comments on commit 9521d0b

Please sign in to comment.