Skip to content

Commit

Permalink
chore: Upgrade deps and migrate prettier to eslint stylistic
Browse files Browse the repository at this point in the history
  • Loading branch information
mathix420 committed Nov 3, 2024
1 parent 4f25356 commit eeb567e
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 35 deletions.
13 changes: 0 additions & 13 deletions .eslintrc.cjs

This file was deleted.

6 changes: 0 additions & 6 deletions .prettierrc.json

This file was deleted.

Binary file modified bun.lockb
Binary file not shown.
11 changes: 6 additions & 5 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,20 @@
import prettierConfig from "eslint-config-prettier";
import prettier from "eslint-plugin-prettier";
import stylistic from '@stylistic/eslint-plugin'
import tseslint from "typescript-eslint";
import eslint from "@eslint/js";

export default [
eslint.configs.recommended,
...tseslint.configs.recommended,
prettierConfig,
{
files: ["**/*.ts"],
plugins: {
prettier,
'@stylistic': stylistic,
},
rules: {
"prettier/prettier": "error",
'@stylistic/indent': ['error', 4],
'@stylistic/semi': ['error', "always"],
'@stylistic/quotes': ['error', "double"],
'@stylistic/function-paren-newline': ['error', { "minItems": 3 }],
},
},
];
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"description": "_description_",
"author": "Arnaud Gissinger <[email protected]>",
"license": "MIT",
"packageManager": "[email protected]",
"homepage": "https://github.com/mathix420/starter-ts#readme",
"repository": {
"type": "git",
Expand Down Expand Up @@ -46,20 +47,18 @@
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"devDependencies": {
"@eslint/js": "^9.0.0",
"@eslint/js": "^9.14.0",
"@ryansonshine/commitizen": "^4.2.8",
"@ryansonshine/cz-conventional-changelog": "^3.3.4",
"@semantic-release/github": "^10.0.3",
"@semantic-release/npm": "^12.0.0",
"@semantic-release/github": "^11.0.0",
"@semantic-release/npm": "^12.0.1",
"@stylistic/eslint-plugin": "^2.10.1",
"bun-types": "latest",
"conventional-changelog-conventionalcommits": "^8.0.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"husky": "^9.0.11",
"prettier": "^3.2.5",
"semantic-release": "^24.0.0",
"typescript-eslint": "^7.5.0"
"eslint": "^9.14.0",
"husky": "^9.1.6",
"semantic-release": "^24.2.0",
"typescript-eslint": "^8.12.2"
},
"peerDependencies": {
"typescript": "^5.0.0"
Expand Down Expand Up @@ -120,4 +119,4 @@
"publishConfig": {
"access": "public"
}
}
}

0 comments on commit eeb567e

Please sign in to comment.