Skip to content

Commit

Permalink
v0.6.0-beta.3 upgrade dependencies (#139)
Browse files Browse the repository at this point in the history
* [Snyk] Upgrade sass from 1.62.1 to 1.63.2 (#115)

Snyk has created this PR to upgrade sass from 1.62.1 to 1.63.2.

See this package in npm:
https://www.npmjs.com/package/sass

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade @typescript-eslint/parser from 5.59.8 to 5.59.9 (#112)

Snyk has created this PR to upgrade @typescript-eslint/parser from 5.59.8 to 5.59.9.

See this package in npm:
https://www.npmjs.com/package/@typescript-eslint/parser

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade typescript from 5.0.4 to 5.1.3 (#111)

Snyk has created this PR to upgrade typescript from 5.0.4 to 5.1.3.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade svelte-check from 3.1.4 to 3.4.3 (#114)

* fix: upgrade svelte-check from 3.1.4 to 3.4.3

Snyk has created this PR to upgrade svelte-check from 3.1.4 to 3.4.3.

See this package in npm:
https://www.npmjs.com/package/svelte-check

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch lock file

* ignore temp files

---------

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade better-typescript-lib from 2.3.1 to 2.4.0 (#118)

* fix: upgrade better-typescript-lib from 2.3.1 to 2.4.0

Snyk has created this PR to upgrade better-typescript-lib from 2.3.1 to 2.4.0.

See this package in npm:
https://www.npmjs.com/package/better-typescript-lib

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch lock file

---------

Co-authored-by: snyk-bot <[email protected]>

* Upgrade vitest to 0.32.2 (#119)

c8: coverage report provider, is deprecated.
v8 instead

* [Snyk] Upgrade @sveltejs/kit from 1.20.1 to 1.20.2 (#120)

* fix: upgrade @sveltejs/kit from 1.20.1 to 1.20.2

Snyk has created this PR to upgrade @sveltejs/kit from 1.20.1 to 1.20.2.

See this package in npm:
https://www.npmjs.com/package/@sveltejs/kit

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch to the latest version of @sveltejs

---------

Co-authored-by: snyk-bot <[email protected]>

* Bump word-wrap from 1.2.3 to 1.2.4 (#125)

Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.4.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](jonschlinkert/word-wrap@1.2.3...1.2.4)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* [Snyk] Upgrade @typescript-eslint/parser from 5.59.8 to 5.59.11 (#122)

* fix: upgrade @typescript-eslint/parser from 5.59.8 to 5.59.11

Snyk has created this PR to upgrade @typescript-eslint/parser from 5.59.8 to 5.59.11.

See this package in npm:
https://www.npmjs.com/package/@typescript-eslint/parser

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/32d59f42-5562-4a29-b831-2a10c347f617?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch package-lock.json

* fix: npm audit

---------

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade @typescript-eslint/eslint-plugin from 5.59.8 to 5.59.11 (#123)

* fix: upgrade @typescript-eslint/eslint-plugin from 5.59.8 to 5.59.11

Snyk has created this PR to upgrade @typescript-eslint/eslint-plugin from 5.59.8 to 5.59.11.

See this package in npm:
https://www.npmjs.com/package/@typescript-eslint/eslint-plugin

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/32d59f42-5562-4a29-b831-2a10c347f617?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch package-lock.json

---------

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade typescript from 5.0.4 to 5.1.6 (#126)

* fix: upgrade typescript from 5.0.4 to 5.1.6

Snyk has created this PR to upgrade typescript from 5.0.4 to 5.1.6.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/32d59f42-5562-4a29-b831-2a10c347f617?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch package-lock.json

---------

Co-authored-by: snyk-bot <[email protected]>

* [Snyk] Upgrade svelte-check from 3.1.4 to 3.4.6 (#127)

* fix: upgrade svelte-check from 3.1.4 to 3.4.6

Snyk has created this PR to upgrade svelte-check from 3.1.4 to 3.4.6.

See this package in npm:
https://www.npmjs.com/package/svelte-check

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/32d59f42-5562-4a29-b831-2a10c347f617?utm_source=github&utm_medium=referral&page=upgrade-pr

* fetch package-lock.json

---------

Co-authored-by: snyk-bot <[email protected]>

* upgrade `@typescript-eslint` to v6 (#134)

* upgrade typescript-eslint to v6

- remove duplicated rules
- remove default options of rule
- fetch new default rules

* add `@typescript-eslint/explicit-function-return-type` rule

* add @typescript-eslint/strict-type-checked rules

* add some `@typescript-eslint` rules
- @typescript-eslint/explicit-member-accessibility
- @typescript-eslint/naming-convention
- @typescript-eslint/no-unnecessary-qualifier
- @typescript-eslint/no-useless-empty-export
- @typescript-eslint/prefer-enum-initializers
- @typescript-eslint/prefer-readonly

* refactor: parameters should be readonly

* add some `@typescript-eslint` rules
- `@typescript-eslint/prefer-regexp-exec` for performance
- `@typescript-eslint/promise-function-async`
- `@typescript-eslint/require-array-sort-compare`
- `@typescript-eslint/switch-exhaustiveness-check`

* update eslint and typescript-eslint to the latest

* upgrade prettier to v3 (#135)

- `prettier@3` <https://prettier.io/blog/2023/07/05/3.0.0>
- `eslint-config-prettier@9` <https://github.com/prettier/eslint-config-prettier/blob/main/CHANGELOG.md#version-900-2023-08-05>
- `prettier-plugin-svelte@3` <https://github.com/sveltejs/prettier-plugin-svelte#how-to-migrate-from-version-2-to-3>

* [Snyk] Upgrade typescript from 5.1.6 to 5.2.2 (#129)

* fix: upgrade typescript from 5.1.6 to 5.2.2

Snyk has created this PR to upgrade typescript from 5.1.6 to 5.2.2.

See this package in npm:
https://www.npmjs.com/package/typescript

See this project in Snyk:
https://app.snyk.io/org/u-sho/project/56523540-5a4b-485d-ae86-4b4f9b0ef853?utm_source=github&utm_medium=referral&page=upgrade-pr

* upgrade `typescript` to v5.2

---------

Co-authored-by: snyk-bot <[email protected]>

* upgrade `svelte` to v4 & all dependencies (#138)

* fix: `svelte-scrollto` の型情報

* upgrade `svelte` & `eslint-plugin-svelte` to Svelte v4

- https://svelte.dev/docs/v4-migration-guide
- https://sveltejs.github.io/eslint-plugin-svelte/migration/#from-eslint-plugin-svelte3
- https://sveltejs.github.io/eslint-plugin-svelte/user-guide/

* upgrade `vitest` to v0.34.5

* update `svelte-check` and all dependency trees

* v0.6.0-beta.3

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: lonlyness <[email protected]>
Co-authored-by: snyk-bot <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
4 people authored Sep 22, 2023
1 parent 44619e9 commit e7b1fd5
Show file tree
Hide file tree
Showing 24 changed files with 1,445 additions and 1,108 deletions.
111 changes: 98 additions & 13 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,45 @@ module.exports = {
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@typescript-eslint/stylistic-type-checked',
'plugin:@typescript-eslint/strict-type-checked',
// 'plugin:svelte/recommended',
'plugin:svelte/prettier',
'prettier'
],
plugins: ['svelte3', '@typescript-eslint'],
plugins: ['@typescript-eslint'],
overrides: [
{ files: ['*.svelte'], processor: 'svelte3/svelte3' },
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: { parser: '@typescript-eslint/parser' }
},
{
files: ['*.test.ts'],
rules: {
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/no-unused-vars': 'off'
}
},
{
files: ['*.js', '*.cjs'],
rules: { '@typescript-eslint/explicit-function-return-type': 'off' }
},
{
files: ['*.cjs'],
rules: { '@typescript-eslint/no-require-imports': 'off' }
},
{
files: ['./*.config.*', '.eslintrc.cjs'],
rules: { '@typescript-eslint/naming-convention': 'off' }
}
],
rules: {
'no-console': isProduction() ? 'error' : 'off',

eqeqeq: ['error', 'always', { null: 'ignore' }],
'no-duplicate-imports': ['error', { includeExports: true }],
'no-unused-expressions': 'error',
'no-var': 'error',
'prefer-const': 'error',
Expand All @@ -49,17 +66,84 @@ module.exports = {

'@typescript-eslint/array-type': ['error', { default: 'array-simple' }],
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
'@typescript-eslint/consistent-type-imports': [
'error',
{ prefer: 'type-imports', disallowTypeAnnotations: true }
'@typescript-eslint/consistent-type-exports': 'error',
'@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/explicit-function-return-type': 'error',
'@typescript-eslint/explicit-member-accessibility': ['warn', { accessibility: 'no-public' }],
'@typescript-eslint/member-delimiter-style': 'warn',
'@typescript-eslint/method-signature-style': 'error',
camelcase: 'off',
'@typescript-eslint/naming-convention': [
'warn',
{
selector: 'default',
format: ['camelCase'],
leadingUnderscore: 'forbid',
trailingUnderscore: 'forbid'
},
{
selector: 'variable',
modifiers: ['global', 'const'],
format: ['camelCase', 'UPPER_CASE']
},
{
selector: 'parameter',
modifiers: ['unused'],
format: ['camelCase'],
leadingUnderscore: 'require',
trailingUnderscore: 'allow'
},
{
selector: 'memberLike',
modifiers: ['private'],
format: ['camelCase'],
leadingUnderscore: 'require'
},
{
selector: 'memberLike',
modifiers: ['protected'],
format: ['camelCase'],
leadingUnderscore: 'require'
},
{
selector: 'typeLike',
format: ['PascalCase']
},
{
// for non-exported functions
selector: 'function',
modifiers: ['global'],
format: ['camelCase'],
leadingUnderscore: 'require'
},
{
selector: 'function',
modifiers: ['exported', 'global'],
format: ['camelCase'],
leadingUnderscore: 'forbid'
},
{
// exception for QuantumTTT player names
selector: 'property',
filter: { regex: '^(X|Y)$', match: true },
format: ['PascalCase']
}
],
'@typescript-eslint/member-delimiter-style': 'error',
'@typescript-eslint/method-signature-style': ['error', 'property'],
'@typescript-eslint/no-confusing-non-null-assertion': 'warn',
'@typescript-eslint/no-duplicate-imports': 'error',
'@typescript-eslint/no-implicit-any-catch': 'error',
'@typescript-eslint/no-import-type-side-effects': 'error',
'@typescript-eslint/no-require-imports': 'error',
'@typescript-eslint/no-unnecessary-qualifier': 'error',
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-useless-empty-export': 'error',
'@typescript-eslint/prefer-enum-initializers': 'error',
'@typescript-eslint/prefer-readonly': 'error',
// '@typescript-eslint/prefer-readonly-parameter-types': 'error',
'@typescript-eslint/prefer-regexp-exec': 'error',
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/switch-exhaustiveness-check': 'error',

'@typescript-eslint/non-nullable-type-assertion-style': 'off',
'@typescript-eslint/unbound-method': 'off'
},
settings: {
Expand All @@ -69,7 +153,8 @@ module.exports = {
parserOptions: {
sourceType: 'module',
ecmaVersion: 'latest',
project: './tsconfig.eslint.json'
project: './tsconfig.eslint.json',
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -259,3 +259,5 @@ $RECYCLE.BIN/
### CI outputs ###
snyk.sarif
.dccache
tsconfig.vitest-temp.json
vite.config.ts.timestamp-*
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"plugins": ["prettier-plugin-svelte"],
"svelteIndentScriptAndStyle": false,
"useTabs": true,
"singleQuote": true,
Expand Down
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
"editor.formatOnPaste": false,
"editor.formatOnType": false,
"eslint.format.enable": true,
"eslint.packageManager": "npm",
"eslint.probe": ["javascript", "typescript", "html", "svelte"],
"eslint.run": "onSave",
"eslint.validate": ["javascript", "javascriptreact", "typescript", "typescriptreact", "svelte"],
"prettier.enable": true,
/* snyk */
"snyk.features.codeQuality": true,
Expand Down
Loading

1 comment on commit e7b1fd5

@vercel
Copy link

@vercel vercel bot commented on e7b1fd5 Sep 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.