Skip to content

Commit

Permalink
improve eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Aug 29, 2024
1 parent 12981b4 commit b5f4360
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 6 deletions.
13 changes: 7 additions & 6 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ import stylistic from '@stylistic/eslint-plugin'
import vitest from '@vitest/eslint-plugin'
import eslintConfigPrettier from 'eslint-config-prettier'
import eslintPluginPrettier from 'eslint-plugin-prettier/recommended'
import globals from 'globals'

export default eslintTs.config(
eslint.configs.recommended,
...eslintTs.configs.recommendedTypeChecked,
export default [
{
files: ['src/**/*.ts']
},
Expand All @@ -19,14 +18,17 @@ export default eslintTs.config(
sourceType: 'module',
parserOptions: {
project: ['./tsconfig.json', './tsconfig.eslint.json'],
tsconfigRootDir: import.meta.dirname
tsconfigRootDir: import.meta.dirname,
globals: { ...globals.node }
}
},
plugins: {
'@stylistic': stylistic,
vitest
}
},
eslint.configs.recommended,
...eslintTs.configs.recommendedTypeChecked,
{
rules: {
...vitest.configs.recommended.rules,
Expand Down Expand Up @@ -114,7 +116,6 @@ export default eslintTs.config(
}
},
eslintPluginPrettier,
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument
eslintConfigPrettier,
{
rules: {
Expand All @@ -126,4 +127,4 @@ export default eslintTs.config(
]
}
}
)
]
14 changes: 14 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 @@ -57,6 +57,7 @@
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"glob": "^11.0.0",
"globals": "^15.9.0",
"husky": "^9.1.5",
"lint-staged": "^15.2.9",
"markdownlint-cli": "^0.41.0",
Expand Down
1 change: 1 addition & 0 deletions src/tools/gitreleasemanager/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export class GitReleaseManagerSettingsProvider extends SettingsProvider implemen
...commonSettings
}
}

getPublishSettings(): PublishSettings {
const commonSettings = this.getCommonSettings()
return {
Expand Down

0 comments on commit b5f4360

Please sign in to comment.