Anvil/.eslintrc.cjs
André Jaenisch 1e52798e6a
chore: introduce REUSE
This required adding annotation to the whole project.
I need to double-check whether I have the license banner of AGPL in
place everywhere.

Signed-off-by: André Jaenisch <andre.jaenisch@posteo.de>
2024-03-06 16:03:12 +01:00

29 lines
616 B
JavaScript

// SPDX-FileCopyrightText: 2023 Pere Lev
//
// SPDX-License-Identifier: AGPL-3.0-or-later
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'prettier',
'plugin:svelte/recommended'
],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], parser: 'svelte-eslint-parser' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2023
},
env: {
browser: true,
es2023: true,
node: true
}
};