diff --git a/.eslintrc.cjs b/.eslintrc.cjs deleted file mode 100644 index 30d6fad..0000000 --- a/.eslintrc.cjs +++ /dev/null @@ -1,13 +0,0 @@ -/** @type {import('eslint').ESLint.ConfigData} */ -module.exports = { - root: true, - env: { - node: true, - }, - extends: ["eslint:recommended", "plugin:@typescript-eslint/recommended", "prettier"], - plugins: ["@typescript-eslint", "prettier"], - parser: "@typescript-eslint/parser", - rules: { - "prettier/prettier": "error", - }, -}; diff --git a/.prettierrc.json b/.prettierrc.json deleted file mode 100644 index 7e3ddda..0000000 --- a/.prettierrc.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "semi": true, - "tabWidth": 4, - "singleQuote": false, - "printWidth": 80 -} \ No newline at end of file diff --git a/bun.lockb b/bun.lockb index 5bc3a98..883e5d7 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eslint.config.js b/eslint.config.js index 1eb9adf..ceba43b 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -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 }], }, }, ]; diff --git a/package.json b/package.json index d5adeda..97b14b1 100644 --- a/package.json +++ b/package.json @@ -6,6 +6,7 @@ "description": "_description_", "author": "Arnaud Gissinger ", "license": "MIT", + "packageManager": "bun@1.1.33", "homepage": "https://github.com/mathix420/starter-ts#readme", "repository": { "type": "git", @@ -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" @@ -120,4 +119,4 @@ "publishConfig": { "access": "public" } -} \ No newline at end of file +}