Skip to content
This repository was archived by the owner on Oct 2, 2025. It is now read-only.
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spscommerce/typescript",
"version": "0.0.12",
"version": "0.0.15",
"description": "SPS official style guides and lint configs for frontend development, forked from airbnb/javascript",
"private": true,
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions typescript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1590,8 +1590,6 @@ foo.init();

<img src="../prettier.svg" height="18" align="center"/> **Enforced by Prettier**

<img src="../eslint.svg" height="18" align="center"/> [`object-curly-newline`](https://eslint.org/docs/rules/object-curly-newline)

> Why? The curly braces follow the same indentation rules as every other curly brace block in the style guide, as do the trailing commas.

```typescript
Expand All @@ -1609,6 +1607,8 @@ import {
} from 'path';
```

Note: formerly we used [`object-curly-newline`](https://eslint.org/docs/rules/object-curly-newline) but have turned it off due to conflicts with how Prettier handles this.

---

<a name="modules--no-webpack-loader-syntax"></a>
Expand Down
2 changes: 1 addition & 1 deletion typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spscommerce/eslint-config-typescript",
"version": "0.0.13",
"version": "0.0.15",
"description": "SPS official linter configuration for TypeScript.",
"main": "lib/index.js",
"scripts": {
Expand Down
9 changes: 1 addition & 8 deletions typescript/rules/stylisticIssues.ts
Original file line number Diff line number Diff line change
Expand Up @@ -427,14 +427,7 @@ export const stylisticIssues: Linter.RulesRecord = {
* enforce line breaks between braces 🔧
* https://eslint.org/docs/rules/object-curly-newline
*/
"object-curly-newline": [
"error",
{
minProperties: 4,
multiline: true,
consistent: true,
},
],
"object-curly-newline": "off",

/**
* require padding inside curly braces 🔧
Expand Down