Skip to content

Commit

Permalink
Merge pull request #23 from terrestris/add-eslint-stylistic
Browse files Browse the repository at this point in the history
@stylistic/eslint-plugin migration
  • Loading branch information
LukasLohoff authored Sep 25, 2024
2 parents 1250f13 + 760d49c commit 20ea18f
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ npm i -D @terrestris/eslint-config-typescript

Can be omitted for already existing dependencies.
```bash
npm i -D eslint@^8
npm i -D @typescript-eslint/eslint-plugin@^6
npm i -D eslint@^9
npm i -D @typescript-eslint/eslint-plugin@^8
npm i -D @stylistic/eslint-plugin@^2
npm i -D typescript@^5
```

Expand Down
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ module.exports = {
'sourceType': 'module'
},
'plugins': [
'@typescript-eslint/eslint-plugin'
'@typescript-eslint/eslint-plugin',
'@stylistic'
],
'rules': {
'quote-props': [
Expand Down Expand Up @@ -41,7 +42,7 @@ module.exports = {
}
}
],
'@typescript-eslint/member-delimiter-style': [
'@stylistic/member-delimiter-style': [
'warn',
{
'multiline': {
Expand All @@ -56,15 +57,15 @@ module.exports = {
],
'@typescript-eslint/member-ordering': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/quotes': [
'@stylistic/quotes': [
'warn',
'single'
],
'@typescript-eslint/semi': [
'@stylistic/semi': [
'warn',
'always'
],
'@typescript-eslint/type-annotation-spacing': 'warn',
'@stylistic/type-annotation-spacing': 'warn',
'camelcase': 'warn',
'comma-dangle': 'off',
'curly': 'warn',
Expand Down
47 changes: 47 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"release": "np --no-yarn --no-tests"
},
"peerDependencies": {
"@stylistic/eslint-plugin": ">= ~2",
"@typescript-eslint/eslint-plugin": ">= ~8",
"@typescript-eslint/parser": ">= ~8",
"eslint": ">= ~9",
Expand Down

0 comments on commit 20ea18f

Please sign in to comment.