Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Mar 5, 2021
1 parent 0ad6f09 commit 0cc0931
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 10 deletions.
12 changes: 10 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
{
"root": true,

"plugins": ["@typescript-eslint", "compat", "jsx-a11y", "prettierx", "promise", "simple-import-sort", "unicorn"],
"plugins": [
"@typescript-eslint",
"compat",
"jsx-a11y",
"prettierx",
"promise",
"simple-import-sort",
"unicorn"
],

"env": {
"node": true,
"es2017": true
"es2018": true
},

"parserOptions": {
Expand Down
10 changes: 9 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@
"semi": false,
"singleQuote": true,
"spaceBeforeFunctionParen": true,
"yieldStarSpacing": true
"yieldStarSpacing": true,
"overrides": [
{
"files": [".eslintrc.json"],
"options": {
"printWidth": 80
}
}
]
}
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,21 @@

ESLint preset for QuITS apps

## \[0.4.1] - 2021-03-05

### Added

- `curly` as warn, only for multi-line (PrettierX doesn't force braces).
- react package to `devDependencies` to allow test the "react" config.

### Changed

- Update dependencies.

### Fixed

- `@typescript-eslint/no-for-in-array` must be in 'ts-runtime' only.

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

### Added
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@quitsmx/eslint-config",
"description": "Customized ESLint config for TypeScript + React or Preact + PrettierX",
"version": "0.4.0",
"version": "0.4.1",
"main": "index.js",
"author": "aMarCruz <amarcruzbox-git@yahoo.com>",
"license": "MIT",
Expand Down Expand Up @@ -44,8 +44,8 @@
"test": "eslint test && node test/deprecated"
},
"dependencies": {
"@typescript-eslint/eslint-plugin": "~4.15.1",
"@typescript-eslint/parser": "~4.15.1",
"@typescript-eslint/eslint-plugin": "~4.16.1",
"@typescript-eslint/parser": "~4.16.1",
"confusing-browser-globals": "*",
"eslint-plugin-compat": "~3.9.0",
"eslint-plugin-jsx-a11y": "~6.4.1",
Expand All @@ -64,10 +64,11 @@
},
"devDependencies": {
"@types/eslint": "~7.2.6",
"@types/node": "~14.14.30",
"@types/node": "~14.14.31",
"@types/react": "~17.0.2",
"eslint": "~7.20.0",
"eslint": "~7.21.0",
"preact": "~10.5.12",
"typescript": "~4.1.5"
"react": "~17.0.1",
"typescript": "~4.2.3"
}
}
2 changes: 1 addition & 1 deletion preset/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ module.exports = {
'complexity': [WARN, { max: 12 }],
'consistent-return': WARN,
'constructor-super': ON,
'curly': [WARN, 'multi-line'],
'default-case-last': ON,
'default-case': [WARN, { commentPattern: '^no default$' }],
'default-param-last': ON,
Expand Down Expand Up @@ -310,7 +311,6 @@ module.exports = {
'@typescript-eslint/no-confusing-non-null-assertion': ON,
'@typescript-eslint/no-extra-non-null-assertion': ON,
'@typescript-eslint/no-extraneous-class': WARN,
'@typescript-eslint/no-for-in-array': ON,
'@typescript-eslint/no-inferrable-types': ON,
'@typescript-eslint/no-loss-of-precision': ON,
'@typescript-eslint/no-misused-new': ON,
Expand Down

0 comments on commit 0cc0931

Please sign in to comment.