mirror of
https://github.com/mts7/obsidian-word-frequency.git
synced 2026-07-22 05:43:07 +00:00
51 lines
1.2 KiB
JavaScript
51 lines
1.2 KiB
JavaScript
import pluginJs from '@eslint/js';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
|
|
/** @type {import('eslint').Linter.Config[]} */
|
|
export default [
|
|
{
|
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
|
},
|
|
{
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
parserOptions: {
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
},
|
|
{
|
|
ignores: [
|
|
'__mocks__/**',
|
|
'coverage/**',
|
|
'dist/**',
|
|
'node_modules/**',
|
|
'reports/**',
|
|
'.stryker-tmp/**',
|
|
],
|
|
},
|
|
pluginJs.configs.recommended,
|
|
...tseslint.configs.recommended,
|
|
{
|
|
rules: {
|
|
curly: ['error', 'all'],
|
|
'id-length': [
|
|
'error',
|
|
{
|
|
min: 3,
|
|
max: 24,
|
|
properties: 'always',
|
|
exceptions: ['id', 'on', 'e', 'i', '_'],
|
|
},
|
|
],
|
|
'no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_' },
|
|
],
|
|
},
|
|
},
|
|
];
|