Skip to content

Commit

Permalink
fix: overrides block of generated eslintrc.json
Browse files Browse the repository at this point in the history
  • Loading branch information
aMarCruz committed Apr 30, 2021
1 parent 0d5b26a commit ebf0768
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

ESLint preset for QuITS apps

## \[0.5.2] - unreleased

### Fixed

- The `overrides` block of the .eslintrc.json generated by `quits-eslint-init` was wrong.

## \[0.5.1] - unreleased

### Added
Expand Down
3 changes: 2 additions & 1 deletion bin/quits-eslint-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@ const prettier = require('prettierx')
const eslintConf = {
root: true,
extends: ['@quitsmx', '@quitsmx/eslint-config/react'],
ignorePatterns: ['/dist', '/patches'],
overrides: [
{
files: ['/bin', '/scripts'],
files: ['bin/**/*', 'scripts/**/*'],
parserOptions: { sourceType: 'script' },
extends: ['@quitsmx/eslint-config/node'],
},
Expand Down
2 changes: 1 addition & 1 deletion 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.5.1",
"version": "0.5.2",
"main": "index.js",
"author": "aMarCruz <amarcruzbox-git@yahoo.com>",
"license": "MIT",
Expand Down

0 comments on commit ebf0768

Please sign in to comment.