Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Commit

Permalink
0.10.0 (#92)
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
0xCLARITY authored Jul 21, 2020
1 parent ecc708b commit 53a31a0
Show file tree
Hide file tree
Showing 5 changed files with 105 additions and 77 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,19 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline

## [Unreleased]

## 0.10.0 - July 21, 2020

- 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

## 0.9.2 - July 9, 2020

- Allow `was` as a prefix for boolean variables
Expand Down
147 changes: 81 additions & 66 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xpring-eng/eslint-config-base",
"version": "0.9.2",
"version": "0.10.0",
"description": "Xpring's base TS ESLint config, following our styleguide",
"keywords": [
"eslint",
Expand Down Expand Up @@ -28,9 +28,9 @@
},
"devDependencies": {
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^3.6.0",
"@typescript-eslint/parser": "^3.6.0",
"eslint": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"eslint": "^7.5.0",
"eslint-find-rules": "^3.4.0",
"eslint-plugin-array-func": "^3.1.6",
"eslint-plugin-eslint-comments": "^3.2.0",
Expand All @@ -45,9 +45,9 @@
},
"peerDependencies": {
"@fintechstudios/eslint-plugin-chai-as-promised": "^3.0.2",
"@typescript-eslint/eslint-plugin": "^3.6.0",
"@typescript-eslint/parser": "^3.6.0",
"eslint": "^7.3.1",
"@typescript-eslint/eslint-plugin": "^3.7.0",
"@typescript-eslint/parser": "^3.7.0",
"eslint": "^7.5.0",
"eslint-plugin-array-func": "^3.1.6",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.22.0",
Expand Down
2 changes: 1 addition & 1 deletion rules/eslint-core/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ module.exports = {

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

// restrict the number of statements per line
// https://eslint.org/docs/rules/max-statements-per-line
Expand Down
6 changes: 3 additions & 3 deletions rules/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,9 @@ module.exports = {
'node/file-extension-in-import': [
'error',
'never',
// {
// ".json": "always",
// },
{
'.json': 'always',
},
],

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

0 comments on commit 53a31a0

Please sign in to comment.