Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
mfeltscher committed Dec 8, 2023
2 parents ce4e600 + 425d294 commit ed38563
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 12 deletions.
13 changes: 12 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,17 +1,26 @@
/** @type {import('eslint').Linter.Config} */
module.exports = {
rules: {
'@typescript-eslint/no-unsafe-enum-comparison': 'off',
'@typescript-eslint/consistent-type-definitions': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@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 All @@ -35,11 +44,13 @@ module.exports = {
'plugin:import/errors',
'plugin:import/warnings',
'plugin:import/typescript',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly',
},
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint', 'prettier'],
};
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"
]
}
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ Create a `.eslintrc` file in the root of your project's directory (it should liv
}
```

### NPM scripts

To use eslint add the following to your package.json:

```json
Expand All @@ -40,3 +42,7 @@ To use eslint add the following to your package.json:
"lint:fix": "eslint . --fix"
}
```

### TypeScript configuration

Since there are some rules which require type information please make sure to set up a `tsconfig.json` configuration file in the root directory of your project. If your TypeScript configuration file is placed in another location you have to configure it using `parserOptions.project` in your ESLint configuration file. For more information have a look at the [typescript-eslint documentation](https://typescript-eslint.io/packages/parser/#project).

0 comments on commit ed38563

Please sign in to comment.