wallet-connect-web-examples/dapps/web3modal/svelte/.eslintrc.cjs
Glitch d9c17b0dd9
Feat/add svelte (#447)
* add sveltekit example

* fix deps

* remove warning

* Update README.md
2024-02-02 16:19:01 -03:00

31 lines
581 B
JavaScript

/** @type { import("eslint").Linter.FlatConfig } */
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended'
],
parser: '@typescript-eslint/parser',
plugins: ['@typescript-eslint'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};