mirror of
https://github.com/immich-app/immich.git
synced 2024-11-30 09:47:31 +02:00
f55b3add80
Co-authored-by: Thomas Way <thomas@6f.io>
40 lines
857 B
JavaScript
40 lines
857 B
JavaScript
/** @type {import('eslint').Linter.Config} */
|
|
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',
|
|
},
|
|
},
|
|
],
|
|
globals: {
|
|
NodeJS: true,
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'warn',
|
|
{
|
|
// Allow underscore (_) variables
|
|
argsIgnorePattern: '^_$',
|
|
varsIgnorePattern: '^_$',
|
|
},
|
|
],
|
|
},
|
|
};
|