Skip to content

Commit

Permalink
feat: update package versions and switch to esm build
Browse files Browse the repository at this point in the history
BREAKING CHANGE: You may need to adapt your imports. Also the
location of the browser build has changed.
  • Loading branch information
hwbllmnn committed Jun 25, 2024
1 parent 299b6c3 commit 42e6a2c
Show file tree
Hide file tree
Showing 12 changed files with 7,174 additions and 19,476 deletions.
File renamed without changes.
130 changes: 130 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,130 @@
module.exports = {
env: {
browser: true
},
parser: '@typescript-eslint/parser',
parserOptions: {
sourceType: 'module'
},
plugins: [
'@typescript-eslint'
],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/eslint-recommended',
'plugin:@typescript-eslint/recommended',
],
rules: {
'quote-props': [
1,
'as-needed'
],
'@typescript-eslint/indent': [
'error',
2
],
'@typescript-eslint/no-empty-interface': 0,
'@typescript-eslint/no-inferrable-types': 0,
'@typescript-eslint/no-var-requires': 0,
'@typescript-eslint/member-delimiter-style': [
'error',
{
multiline: {
delimiter: 'semi',
requireLast: true
},
singleline: {
delimiter: 'semi',
requireLast: false
}
}
],
'@typescript-eslint/no-empty-function': 'error',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-use-before-define': 'error',
'@typescript-eslint/quotes': [
'error',
'single'
],
'@typescript-eslint/semi': [
'error',
'always'
],
'@typescript-eslint/type-annotation-spacing': 'error',
camelcase: 'error',
'comma-dangle': 'off',
curly: 'error',
'default-case': 'error',
'dot-notation': 'error',
'eol-last': 'error',
eqeqeq: [
'error',
'smart'
],
'guard-for-in': 'error',
'id-blacklist': [
'error',
'any',
'Number',
'number',
'String',
'string',
'Boolean',
'boolean',
'Undefined',
'undefined'
],
'id-match': 'error',
'max-len': [
'error',
{
code: 120
}
],
'no-bitwise': 'error',
'no-caller': 'error',
'no-console': [
'error',
{
allow: [
'warn',
'dir',
'timeLog',
'assert',
'clear',
'count',
'countReset',
'group',
'groupEnd',
'table',
'dirxml',
'groupCollapsed',
'Console',
'profile',
'profileEnd',
'timeStamp',
'context'
]
}
],
'no-debugger': 'error',
'no-empty': 'error',
'no-eval': 'error',
'no-fallthrough': 'error',
'no-multiple-empty-lines': 'error',
'no-new-wrappers': 'error',
'no-redeclare': 'error',
'no-shadow': [
'error',
{
hoist: 'all'
}
],
'no-case-declarations': 0,
'no-unused-expressions': 'error',
'no-unused-labels': 'error',
radix: 'error',
'spaced-comment': 'error'
}
};
130 changes: 0 additions & 130 deletions .eslintrc.js

This file was deleted.

3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Release

on:
workflow_dispatch:
push:
branches:
- next

jobs:
release:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# production
/build
/browser
/dist

# history
/.history
Expand Down
8 changes: 7 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
{
"branches": ["master"],
"branches": [
"master",
{
"name": "next",
"prerelease": true
}
],
"plugins": [
[
"@semantic-release/commit-analyzer",
Expand Down
Loading

0 comments on commit 42e6a2c

Please sign in to comment.