-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #202 from oddbird/dependabot/npm_and_yarn/dev-mino…
…r-0b8528a078 Bump the dev-minor group with 9 updates
- Loading branch information
Showing
34 changed files
with
707 additions
and
1,316 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
/* eslint-disable @typescript-eslint/no-unsafe-member-access, import/no-named-as-default-member */ | ||
|
||
import js from '@eslint/js'; | ||
import tsParser from '@typescript-eslint/parser'; | ||
import vitest from '@vitest/eslint-plugin'; | ||
import prettier from 'eslint-config-prettier'; | ||
// @ts-expect-error no types | ||
import importPlugin from 'eslint-plugin-import'; | ||
import simpleImportSort from 'eslint-plugin-simple-import-sort'; | ||
import svelte from 'eslint-plugin-svelte'; | ||
import globals from 'globals'; | ||
import svelteParser from 'svelte-eslint-parser'; | ||
import tseslint from 'typescript-eslint'; | ||
|
||
import svelteConfig from './svelte.config.js'; | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'.git/*', | ||
'.svelte-kit/*', | ||
'.vscode/*', | ||
'.yarn/*', | ||
'.yarnrc.yml', | ||
'build/*', | ||
'coverage/*', | ||
'node_modules/*', | ||
'package/*', | ||
'src/js/api/client/*', | ||
'static/built/*', | ||
'static/styleguide/*', | ||
'yarn.lock', | ||
], | ||
}, | ||
js.configs.recommended, | ||
...tseslint.configs.recommendedTypeChecked, | ||
...tseslint.configs.stylisticTypeChecked, | ||
importPlugin.flatConfigs.recommended, | ||
importPlugin.flatConfigs.typescript, | ||
...svelte.configs['flat/recommended'], | ||
...svelte.configs['flat/prettier'], | ||
prettier, | ||
{ | ||
files: ['**/*.{js,mjs,cjs,svelte,ts,cts,mts}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.node, | ||
...globals.es2021, | ||
}, | ||
parserOptions: { | ||
project: ['tsconfig.json', 'test/tsconfig.json'], | ||
extraFileExtensions: ['.svelte'], | ||
}, | ||
}, | ||
plugins: { 'simple-import-sort': simpleImportSort }, | ||
settings: { | ||
'import/resolver': { | ||
typescript: { | ||
project: ['tsconfig.json', 'test/tsconfig.json'], | ||
}, | ||
}, | ||
}, | ||
rules: { | ||
'no-warning-comments': ['warn', { terms: ['todo', 'fixme', '@@@'] }], | ||
'simple-import-sort/imports': 'warn', | ||
'simple-import-sort/exports': 'warn', | ||
'import/first': 'warn', | ||
'import/newline-after-import': 'warn', | ||
'import/no-duplicates': ['error', { 'prefer-inline': true }], | ||
'import/order': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['**/*.svelte', '*.svelte'], | ||
languageOptions: { | ||
parser: svelteParser, | ||
parserOptions: { | ||
parser: tsParser, | ||
svelteConfig, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['src/**/*.{js,mjs,cjs,svelte,ts,cts,mts}'], | ||
languageOptions: { | ||
globals: { | ||
...globals.browser, | ||
...globals.es2021, | ||
}, | ||
}, | ||
}, | ||
{ | ||
files: ['test/**/*.spec.{js,ts}'], | ||
languageOptions: { | ||
globals: { | ||
...vitest.environments.env.globals, | ||
}, | ||
}, | ||
plugins: { | ||
vitest, | ||
}, | ||
rules: { | ||
...vitest.configs.recommended.rules, | ||
'@typescript-eslint/unbound-method': 'off', | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.