daggerheart/tools/eslint.config.mjs
Carlos Fernandez a4428fd5be
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
Replace prettier with stylistic, improve types, and add no-undef rule (#1975)
2026-06-05 15:53:15 -04:00

20 lines
560 B
JavaScript

import globals from 'globals';
import { defineConfig, globalIgnores } from 'eslint/config';
import { stylisticRules } from '../eslint.config.mjs';
import stylistic from '@stylistic/eslint-plugin';
export default defineConfig([
globalIgnores(['foundry/**/*']),
{
files: ['**/*.{js,mjs,cjs}'],
plugins: {
'@stylistic': stylistic
},
languageOptions: { globals: globals.node },
rules: {
'no-undef': 'error',
'no-unused-vars': 0,
...stylisticRules
}
}
]);