-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Upgrade deps and migrate prettier to eslint stylistic
- Loading branch information
Showing
5 changed files
with
16 additions
and
35 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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", | ||
|
@@ -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" | ||
} | ||
} | ||
} |