Skip to content

Commit

Permalink
4.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SrBrahma committed Jan 14, 2024
1 parent 7d1a8cb commit d762503
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npm run pre-commit
bun pre-commit
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
> Changes to the `ts` flavor are also applied to `react` and `react-native` flavors.

## 4.2.1

- Fixed `biome` not being in overrides

## 4.2.0

- Upgraded `eslint-config-biome`; removed internals no longer required due to this upgrade.
Expand Down
5 changes: 4 additions & 1 deletion js.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ module.exports = {
"eslint:recommended",
"plugin:jsdoc/recommended",
"plugin:require-extensions/recommended",
"biome",
],
overrides: [
{
Expand All @@ -38,6 +37,10 @@ module.exports = {
],
},
},
{
files: ["*.js", "*.jsx"],
extends: ["biome"],
},
],
rules: {
/** ignoreRestSiblings: Ignore {unusedProp, ...rest} */
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-gev",
"version": "4.2.0",
"version": "4.2.1",
"description": "Curated ESLint configs for TS, JS, Next, React, and React Native projects",
"author": "SrBrahma",
"main": "index.js",
Expand All @@ -10,7 +10,7 @@
"format:check": "biome check . && eslint . package.json",
"pre-commit": "bun format:check && bun test && bun start && git add -A",
"prepare": "husky install",
"start": "bun scripts/makeTsExtensions.ts",
"start": "bun scripts/makeTsExtensions.ts",
"test:watch": "bun test --watch",
"watch": "bun --watch scripts/makeTsExtensions.ts"
},
Expand Down
6 changes: 0 additions & 6 deletions ts-extensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,13 @@

module.exports = {
rules: {
"default-param-last": "off",
"@typescript-eslint/default-param-last": ["error"],

"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": [
"warn",
"always",
{ exceptAfterSingleLine: true },
],

"no-loss-of-precision": "off",
"@typescript-eslint/no-loss-of-precision": ["error"],

"no-throw-literal": "off",
"@typescript-eslint/no-throw-literal": ["warn"],

Expand Down
11 changes: 9 additions & 2 deletions ts.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,16 @@ module.exports = {
"plugin:@typescript-eslint/recommended", // After the others https://stackoverflow.com/a/61555310
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"./js.js",
"./ts-extensions.js", // Automatic JS to TS rules! I love doing smart stuff! :)
"biome",
"./ts-extensions.js",
],

overrides: [
{
files: ["*.ts", "*.tsx"],
extends: ["biome"],
},
],

rules: {
// Allows explicitating implicit types, like `const a: number = 10`
"@typescript-eslint/no-inferrable-types": "off",
Expand Down

0 comments on commit d762503

Please sign in to comment.