@spscommerce/eslint-config-typescript 0.0.13 → 0.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2012 Airbnb
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1590,8 +1590,6 @@ foo.init();
1590
1590
 
1591
1591
  <img src="../prettier.svg" height="18" align="center"/> **Enforced by Prettier**
1592
1592
 
1593
- <img src="../eslint.svg" height="18" align="center"/> [`object-curly-newline`](https://eslint.org/docs/rules/object-curly-newline)
1594
-
1595
1593
  > Why? The curly braces follow the same indentation rules as every other curly brace block in the style guide, as do the trailing commas.
1596
1594
 
1597
1595
  ```typescript
@@ -1609,6 +1607,8 @@ import {
1609
1607
  } from 'path';
1610
1608
  ```
1611
1609
 
1610
+ 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.
1611
+
1612
1612
  ---
1613
1613
 
1614
1614
  <a name="modules--no-webpack-loader-syntax"></a>
@@ -361,14 +361,7 @@ exports.stylisticIssues = {
361
361
  * enforce line breaks between braces 🔧
362
362
  * https://eslint.org/docs/rules/object-curly-newline
363
363
  */
364
- "object-curly-newline": [
365
- "error",
366
- {
367
- minProperties: 4,
368
- multiline: true,
369
- consistent: true,
370
- },
371
- ],
364
+ "object-curly-newline": "off",
372
365
  /**
373
366
  * require padding inside curly braces 🔧
374
367
  * https://eslint.style/rules/ts/object-curly-spacing#ts-object-curly-spacing
package/package.json CHANGED
@@ -1,11 +1,8 @@
1
1
  {
2
2
  "name": "@spscommerce/eslint-config-typescript",
3
- "version": "0.0.13",
3
+ "version": "0.0.15",
4
4
  "description": "SPS official linter configuration for TypeScript.",
5
5
  "main": "lib/index.js",
6
- "scripts": {
7
- "build": "tsc -p tsconfig.json"
8
- },
9
6
  "repository": {
10
7
  "type": "git",
11
8
  "url": "https://github.com/SPSCommerce/typescript.git"
@@ -45,5 +42,8 @@
45
42
  "@typescript-eslint/parser": "^8.24.1",
46
43
  "eslint-import-resolver-typescript": "^3.8.2",
47
44
  "eslint-plugin-import": "^2.31.0"
45
+ },
46
+ "scripts": {
47
+ "build": "tsc -p tsconfig.json"
48
48
  }
49
- }
49
+ }