24 lines
592 B
JavaScript
24 lines
592 B
JavaScript
import fp from 'eslint-plugin-fp';
|
|
import js from '@eslint/js';
|
|
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
import { defineConfig } from 'eslint/config';
|
|
import eslintConfigPrettier from 'eslint-config-prettier/flat';
|
|
|
|
export default defineConfig([
|
|
{
|
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
|
plugins: { js, fp },
|
|
extends: ['js/recommended'],
|
|
rules: {
|
|
'fp/no-mutation': 'error',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
|
languageOptions: { globals: globals.browser },
|
|
},
|
|
tseslint.configs.recommended,
|
|
eslintConfigPrettier,
|
|
]);
|