mirror of
https://github.com/FoxxMD/multi-scrobbler.git
synced 2026-04-28 03:39:54 +00:00
* Swtch to devcontainer for node 18.x and remove terminal/launch settings for version (removes nvm dependency in container) * Update eslint config to use proper config for include/ignore files * Add spec for mocha and mocha test runner extension + settings
36 lines
1,021 B
JavaScript
36 lines
1,021 B
JavaScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js';
|
|
import tsEslint from 'typescript-eslint';
|
|
import arrow from 'eslint-plugin-prefer-arrow-functions';
|
|
|
|
export default tsEslint.config({
|
|
files: ['src/backend/**/*.ts'],
|
|
plugins: {
|
|
"prefer-arrow-functions": arrow
|
|
},
|
|
ignores: [
|
|
'eslint.config.js',
|
|
'src/backend/tests/**/*.ts'
|
|
],
|
|
extends: [
|
|
eslint.configs.recommended,
|
|
...tsEslint.configs.recommended,
|
|
],
|
|
rules: {
|
|
'no-useless-catch': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
|
"prefer-arrow-functions/prefer-arrow-functions": [
|
|
"warn",
|
|
{
|
|
"allowNamedFunctions": false,
|
|
"classPropertiesAllowed": false,
|
|
"disallowPrototype": false,
|
|
"returnStyle": "unchanged",
|
|
"singleReturnOnly": false
|
|
}
|
|
],
|
|
"arrow-body-style": ["warn", "as-needed"],
|
|
"@typescript-eslint/no-explicit-any": "warn"
|
|
}
|
|
});
|