diff --git a/CHANGELOG.md b/CHANGELOG.md index b105676..108b7da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/bin/quits-eslint-init.js b/bin/quits-eslint-init.js index b784ce2..94f9ba2 100644 --- a/bin/quits-eslint-init.js +++ b/bin/quits-eslint-init.js @@ -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'], }, diff --git a/package.json b/package.json index 5136e91..bec7b13 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "MIT",