Skip to content

Commit

Permalink
Disable catch-error-name and consistent-function-scoping rules
Browse files Browse the repository at this point in the history
  • Loading branch information
iansu committed Nov 28, 2019
1 parent bcba399 commit fa0e944
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"printWidth": 120,
"singleQuote": true
}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 0.5.1 (November 27, 2019)

- Disable `unicorn/catch-error-name` rule
- Disable `unicorn/consistent-function-scoping` rule

## 0.5.0 (November 24, 2019)

- Update `@typescript-eslint` and other dependencies to support optional chaining
Expand Down
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ module.exports = {
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/no-array-constructor': 'warn',
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_+' }],
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_+' }]
// enable this once typescript-eslint 2.9.0 is released
// '@typescript-eslint/prefer-optional-chain': 'warn'

Expand Down Expand Up @@ -110,6 +110,8 @@ module.exports = {
}
],

'unicorn/catch-error-name': 'off',
'unicorn/consistent-function-scoping': 'off',
'unicorn/no-abusive-eslint-disable': 'off',
'unicorn/no-nested-ternary': 'warn',
'unicorn/no-process-exit': 'off',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-neo",
"version": "0.5.0",
"version": "0.5.1",
"description": "Official Neo Financial ESLint configuration",
"main": "index.js",
"author": "Neo Financial Engineering <[email protected]>",
Expand Down

0 comments on commit fa0e944

Please sign in to comment.