Skip to content

Commit

Permalink
feat: add new ESLint rules
Browse files Browse the repository at this point in the history
Add new rules for @typescript-eslint/no-explicit-any, prefer-const, no-else-return, no-extra-semi,
curly, eqeqeq, default-case-last

BREAKING CHANGE: Add new rules for @typescript-eslint/no-explicit-any, prefer-const, no-else-return,
no-extra-semi, curly, eqeqeq, default-case-last
  • Loading branch information
mfeltscher committed Oct 18, 2023
1 parent ce4e600 commit e2c9855
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,19 @@ module.exports = {
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/no-unused-vars': ['error'],
'@typescript-eslint/no-floating-promises': ['error'],
'@typescript-eslint/no-explicit-any': ['error', { fixToUnknown: true }],
'no-constant-binary-expression': 'error',
'array-callback-return': 'error',
'no-debugger': 'error',
'no-alert': 'error',
'no-console': ['error', { allow: ['info', 'warn', 'error', 'trace', 'time', 'timeEnd'] }],
'newline-before-return': 'error',
'prefer-const': 'error',
'no-else-return': 'error',
'no-extra-semi': 'error',
curly: 'error',
eqeqeq: 'error',
'default-case-last': 'error',
'prettier/prettier': [
'error',
{
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- next

jobs:
release:
Expand Down
26 changes: 15 additions & 11 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
}
"branches": [
"main",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
"@semantic-release/github"
]
}

0 comments on commit e2c9855

Please sign in to comment.