mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-05 21:03:46 +00:00
37 lines
941 B
JavaScript
37 lines
941 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
es2021: true
|
|
},
|
|
plugins: ['svelte3', '@typescript-eslint'],
|
|
overrides: [
|
|
{
|
|
files: ['*.svelte'],
|
|
processor: 'svelte3/svelte3'
|
|
}
|
|
],
|
|
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
|
|
parser: '@typescript-eslint/parser',
|
|
parserOptions: {
|
|
ecmaVersion: "latest",
|
|
sourceType: "module",
|
|
tsconfigRootDir: __dirname,
|
|
project: ['./tsconfig.json'],
|
|
extraFileExtensions: ['.svelte']
|
|
},
|
|
settings: {
|
|
'svelte3/typescript': require('typescript'),
|
|
},
|
|
rules: {
|
|
"a11y-click-events-have-key-events": "off",
|
|
"a11y-autofocus": "off",
|
|
"no-unused-vars": ["error", {args: "none"}],
|
|
"no-async-promise-executor": "off",
|
|
"@typescript-eslint/no-explicit-any": "off",
|
|
"@typescript-eslint/no-extra-semi": "off",
|
|
"no-useless-escape": "off",
|
|
},
|
|
ignorePatterns: ["*.svg"],
|
|
}
|