Skip to content

Commit

Permalink
Merge pull request #21 from toyokumo/develop
Browse files Browse the repository at this point in the history
release v2.1.1
  • Loading branch information
syunta authored Aug 5, 2024
2 parents dbeeb76 + 455f636 commit e2a7a6e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [2.1.1](https://github.com/toyokumo/eslint-config/compare/v2.1.0...v2.1.1) (2024-08-05)

## [2.1.0](https://github.com/toyokumo/eslint-config/compare/v2.0.14...v2.1.0) (2024-08-05)

### [2.0.14](https://github.com/toyokumo/eslint-config/compare/v2.0.13...v2.0.14) (2024-08-02)
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@toyokumo/eslint-config",
"version": "2.1.0",
"version": "2.1.1",
"engines": {
"node": ">=18"
},
Expand All @@ -9,7 +9,7 @@
"scripts": {
"test": "node --experimental-vm-modules node_modules/jest/bin/jest.js",
"lint": "eslint --max-warnings=0 \"**/*.{js,ts,tsx}\"",
"release": "standard-version --release-as minor",
"release": "standard-version",
"format": "run-s \"format:eslint -- {1}\" \"format:prettier -- {1}\" --",
"format:eslint": "eslint --fix",
"format:prettier": "prettier --write",
Expand Down
5 changes: 4 additions & 1 deletion rules/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ module.exports = [
},
rules: {
...jsLint.configs.recommended.rules,
'no-unused-vars': ['error', { argsIgnorePattern: '^_+$' }],
'no-unused-vars': [
'error',
{ argsIgnorePattern: '^_+$', caughtErrors: 'all', caughtErrorsIgnorePattern: '^_+$' },
],
'no-param-reassign': 'error',
'arrow-body-style': 'error',
'constructor-super': 'error',
Expand Down
1 change: 1 addition & 0 deletions rules/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ module.exports = [
'react/jsx-no-useless-fragment': ['error', { allowExpressions: true }],
'react/jsx-pascal-case': 'error',
'react/self-closing-comp': 'error',
'react/prop-types': 'off',
},
},
];
7 changes: 7 additions & 0 deletions tests/rules/javascript/sample.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ while (false) {
const f = (x, _) => x;
f(1, 2);

// for 'no-unused-vars': ['error', { caughtErrors: 'all', caughtErrorsIgnorePattern: '^_+$' }],
try {
f(2, 3);
} catch (_) {
doSomething(10);
}

// for 'arrow-body-style': 'error',
const g = () => {
return 10;
Expand Down

0 comments on commit e2a7a6e

Please sign in to comment.