Skip to content

Commit

Permalink
v0.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Feb 19, 2021
1 parent 487fd24 commit 0ad6f09
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 13 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,25 @@

ESLint preset for QuITS apps

## \[0.4.0] - 2021-02-19

### Added

- `publishConfig.access: 'public'` in package.json

### Changed

- Use `@typescript-eslint/no-shadow` instead `no-shadow` in TypeScript files.

The following `@typescript-eslint` runtime rules are disabled:

- `no-unnecessary-condition`
- `prefer-readonly-parameter-types`
- `prefer-readonly`
- `prefer-string-starts-ends-with`
- `strict-boolean-expressions`
- `unbound-method`

## \[0.3.1] - 2021-02-18

### Changed
Expand Down
22 changes: 11 additions & 11 deletions extras/ts-runtime/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@ const restrictTemplateExpressionsOpts = {
module.exports = {
rules: {
'require-await': 0,

// '@typescript-eslint/no-confusing-void-expression': 0,
// '@typescript-eslint/no-unnecessary-condition': 1,
// '@typescript-eslint/no-unsafe-assignment': 0,
// '@typescript-eslint/no-unsafe-member-access': 0,
// '@typescript-eslint/no-unused-vars': 0,
// '@typescript-eslint/prefer-nullish-coalescing': 0,
// '@typescript-eslint/prefer-readonly-parameter-types': 1,
// '@typescript-eslint/prefer-readonly': 1,
// '@typescript-eslint/prefer-string-starts-ends-with': 1,
// '@typescript-eslint/strict-boolean-expressions': 1,
// '@typescript-eslint/unbound-method': 1,
'@typescript-eslint/await-thenable': 1,
'@typescript-eslint/dot-notation': 1,
'@typescript-eslint/no-base-to-string': [2, noBaseToStringOpts],
Expand All @@ -25,31 +35,21 @@ module.exports = {
'@typescript-eslint/no-misused-promises': [2, { checksVoidReturn: false }],
'@typescript-eslint/no-throw-literal': 2,
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 2,
'@typescript-eslint/no-unnecessary-condition': 1,
'@typescript-eslint/no-unnecessary-qualifier': 2,
'@typescript-eslint/no-unnecessary-type-arguments': 2,
'@typescript-eslint/no-unnecessary-type-assertion': 2,
'@typescript-eslint/no-unsafe-assignment': 0,
'@typescript-eslint/no-unsafe-call': 1,
'@typescript-eslint/no-unsafe-member-access': 0,
'@typescript-eslint/no-unsafe-return': 1,
'@typescript-eslint/no-unused-vars': 0,
'@typescript-eslint/non-nullable-type-assertion-style': 1,
'@typescript-eslint/prefer-includes': 1,
'@typescript-eslint/prefer-nullish-coalescing': 0,
'@typescript-eslint/prefer-readonly-parameter-types': 1,
'@typescript-eslint/prefer-readonly': 1,
'@typescript-eslint/prefer-reduce-type-parameter': 1,
'@typescript-eslint/prefer-regexp-exec': 1,
'@typescript-eslint/prefer-string-starts-ends-with': 1,
'@typescript-eslint/promise-function-async': 1,
'@typescript-eslint/require-array-sort-compare': 2,
'@typescript-eslint/require-await': 1,
'@typescript-eslint/restrict-plus-operands': 1,
'@typescript-eslint/restrict-template-expressions': [0, restrictTemplateExpressionsOpts],
'@typescript-eslint/return-await': 2,
'@typescript-eslint/strict-boolean-expressions': 1,
'@typescript-eslint/switch-exhaustiveness-check': 1,
'@typescript-eslint/unbound-method': 1,
},
}
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"name": "@quitsmx/eslint-config",
"description": "Customized ESLint config for TypeScript + React or Preact + PrettierX",
"version": "0.3.1",
"version": "0.4.0",
"main": "index.js",
"author": "aMarCruz <amarcruzbox-git@yahoo.com>",
"license": "MIT",
"publishConfig": {
"access": "public"
},
"keywords": [
"eslint",
"eslint-plugin",
Expand Down Expand Up @@ -61,7 +64,7 @@
},
"devDependencies": {
"@types/eslint": "~7.2.6",
"@types/node": "~14.14.29",
"@types/node": "~14.14.30",
"@types/react": "~17.0.2",
"eslint": "~7.20.0",
"preact": "~10.5.12",
Expand Down
2 changes: 2 additions & 0 deletions preset/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ module.exports = {
'no-empty-function': OFF,
'no-redeclare': OFF,
'no-return-await': OFF,
'no-shadow': OFF,
'no-unused-vars': OFF,
'@typescript-eslint/default-param-last': ON,
'@typescript-eslint/no-array-constructor': ON,
Expand All @@ -433,6 +434,7 @@ module.exports = {
'@typescript-eslint/no-empty-function': WARN,
'@typescript-eslint/no-redeclare': ON,
'@typescript-eslint/no-require-imports': ON,
'@typescript-eslint/no-shadow': WARN,
'@typescript-eslint/prefer-optional-chain': WARN,
'unicorn/numeric-separators-style': [WARN, numericSeparatorsStyleOpts],
'unicorn/prefer-optional-catch-binding': ON,
Expand Down

0 comments on commit 0ad6f09

Please sign in to comment.