Skip to content

Commit 53a31a0

Browse files
authored
0.10.0 (xpring-eng#92)
- Change `max-statements` restriction from `10` to `15`. - Turns out that you can write totally reasonable functions with more than 10 statements. - Allow `.json` file extension when `import`ing a JSON file - Turns out TypeScript needs the `.json` file extension to do the import. - Upgrade peer dependencies - ESLint 7.5.0 - Better optional chaining - `@typescript-eslint` - Support short-circuiting assignment operators - Support type annotations on catch clauses
1 parent ecc708b commit 53a31a0

File tree

5 files changed

+105
-77
lines changed

5 files changed

+105
-77
lines changed

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
99

1010
## [Unreleased]
1111

12+
## 0.10.0 - July 21, 2020
13+
14+
- Change `max-statements` restriction from `10` to `15`.
15+
- Turns out that you can write totally reasonable functions with more than 10 statements.
16+
- Allow `.json` file extension when `import`ing a JSON file
17+
- Turns out TypeScript needs the `.json` file extension to do the import.
18+
- Upgrade peer dependencies
19+
- ESLint 7.5.0
20+
- Better optional chaining
21+
- `@typescript-eslint`
22+
- Support short-circuiting assignment operators
23+
- Support type annotations on catch clauses
24+
1225
## 0.9.2 - July 9, 2020
1326

1427
- Allow `was` as a prefix for boolean variables

package-lock.json

Lines changed: 81 additions & 66 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xpring-eng/eslint-config-base",
3-
"version": "0.9.2",
3+
"version": "0.10.0",
44
"description": "Xpring's base TS ESLint config, following our styleguide",
55
"keywords": [
66
"eslint",
@@ -28,9 +28,9 @@
2828
},
2929
"devDependencies": {
3030
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
31-
"@typescript-eslint/eslint-plugin": "^3.6.0",
32-
"@typescript-eslint/parser": "^3.6.0",
33-
"eslint": "^7.3.1",
31+
"@typescript-eslint/eslint-plugin": "^3.7.0",
32+
"@typescript-eslint/parser": "^3.7.0",
33+
"eslint": "^7.5.0",
3434
"eslint-find-rules": "^3.4.0",
3535
"eslint-plugin-array-func": "^3.1.6",
3636
"eslint-plugin-eslint-comments": "^3.2.0",
@@ -45,9 +45,9 @@
4545
},
4646
"peerDependencies": {
4747
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
48-
"@typescript-eslint/eslint-plugin": "^3.6.0",
49-
"@typescript-eslint/parser": "^3.6.0",
50-
"eslint": "^7.3.1",
48+
"@typescript-eslint/eslint-plugin": "^3.7.0",
49+
"@typescript-eslint/parser": "^3.7.0",
50+
"eslint": "^7.5.0",
5151
"eslint-plugin-array-func": "^3.1.6",
5252
"eslint-plugin-eslint-comments": "^3.2.0",
5353
"eslint-plugin-import": "^2.22.0",

rules/eslint-core/style.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ module.exports = {
8888

8989
// specify the maximum number of statement allowed in a function
9090
// https://eslint.org/docs/rules/max-statements
91-
'max-statements': ['warn', 10, { ignoreTopLevelFunctions: true }],
91+
'max-statements': ['warn', 15, { ignoreTopLevelFunctions: true }],
9292

9393
// restrict the number of statements per line
9494
// https://eslint.org/docs/rules/max-statements-per-line

rules/node.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,9 @@ module.exports = {
133133
'node/file-extension-in-import': [
134134
'error',
135135
'never',
136-
// {
137-
// ".json": "always",
138-
// },
136+
{
137+
'.json': 'always',
138+
},
139139
],
140140

141141
// Require require() calls to be placed at top-level module scope

0 commit comments

Comments
 (0)