This commit is contained in:
1 parent
9a6ec940f7
commit
fd32419371
114 files changed
+21997
-96
No files matched your search
@@ -0,0 +1,62 @@
|
||||
import js from '@eslint/js'
|
||||
import globals from 'globals'
|
||||
import svelte from 'eslint-plugin-svelte'
|
||||
import prettierConfig from 'eslint-config-prettier'
|
||||
import tseslint from 'typescript-eslint'
|
||||
|
||||
export default tseslint.config(
|
||||
{ ignores: ['build', '.svelte-kit', 'node_modules'] },
|
||||
js.configs.recommended,
|
||||
...tseslint.configs.recommended,
|
||||
...svelte.configs.recommended,
|
||||
{
|
||||
files: ['**/*.ts', '**/*.svelte'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
globals: {
|
||||
...globals.browser,
|
||||
__MEDIA_APP__: 'readonly',
|
||||
__FRONTEND_TECH_STACK__: 'readonly',
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'no-console': 'error',
|
||||
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
||||
},
|
||||
},
|
||||
{
|
||||
files: ['**/*.{js,mjs,cjs}'],
|
||||
languageOptions: {
|
||||
ecmaVersion: 2022,
|
||||
globals: globals.node,
|
||||
},
|
||||
rules: {},
|
||||
},
|
||||
{
|
||||
files: ['**/*.svelte'],
|
||||
languageOptions: {
|
||||
parserOptions: {
|
||||
parser: tseslint.parser,
|
||||
extraFileExtensions: ['.svelte'],
|
||||
},
|
||||
},
|
||||
rules: {
|
||||
'prefer-const': 'off',
|
||||
'svelte/no-navigation-without-resolve': 'off',
|
||||
},
|
||||
},
|
||||
prettierConfig,
|
||||
...svelte.configs.prettier,
|
||||
{
|
||||
files: ['**/*.svelte.ts'],
|
||||
languageOptions: {
|
||||
parser: tseslint.parser,
|
||||
ecmaVersion: 2022,
|
||||
globals: {
|
||||
...globals.browser,
|
||||
__MEDIA_APP__: 'readonly',
|
||||
__FRONTEND_TECH_STACK__: 'readonly',
|
||||
},
|
||||
},
|
||||
},
|
||||
)
|
||||
Reference in new issue
Block a user