Skip to content

Commit

Permalink
3.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBrahma committed Dec 20, 2023
1 parent 2a8d8de commit acb5cd1
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@
> Changes to the `js` flavor are also applied to all the other flavors.
> Changes to the `ts` flavor are also applied to `react` and `react-native` flavors.
## 3.10.4

- Add `prefer-template`.

## 3.10.0~3

- Improved the bin. Now the dependency is added with the command and we are using a lighter package for the CLI parsing.
Expand Down
4 changes: 2 additions & 2 deletions bin.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const fs = require('fs');
const pkgJson = require('./package.json');

const getFlavorPath = (flavor = '') =>
path.resolve(__dirname, 'examples', flavor ? flavor + `.eslintrc.js` : '');
path.resolve(__dirname, 'examples', flavor ? `${flavor}.eslintrc.js` : '');

const files = fs.readdirSync(getFlavorPath()).filter((s) => s.includes('.eslintrc.js'));

Expand All @@ -19,7 +19,7 @@ const addDependency = (packageName, version, dev = false) => {

const depKey = dev ? 'devDependencies' : 'dependencies';

(packageJsonObj[depKey] ??= {})[packageName] = version;
(packageJsonObj[depKey] ??= {})[packageName] = `^${version}`;

fs.writeFileSync(packageJsonPath, JSON.stringify(packageJsonObj, null, 2));
};
Expand Down
2 changes: 2 additions & 0 deletions js.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,5 +180,7 @@ module.exports = {
* https://eslint.org/docs/latest/rules/arrow-body-style
*/
'arrow-body-style': 'warn',
/** https://eslint.org/docs/latest/rules/prefer-template */
'prefer-template': 'warn',
},
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-gev",
"version": "3.10.3",
"version": "3.10.4",
"description": "Common ESLint configs for my JS/TS and React/RN projects",
"main": "index.js",
"bin": "bin.js",
Expand Down

0 comments on commit acb5cd1

Please sign in to comment.