Anvil/.eslintrc.cjs

26 lines
525 B
JavaScript
Raw Permalink Normal View History

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
}
};