ConceptPortal-public/rsconcept/frontend/eslint.playwright.config.js

41 lines
936 B
JavaScript
Raw Normal View History

2025-03-02 19:42:19 +03:00
import globals from 'globals';
import typescriptParser from '@typescript-eslint/parser';
import playwright from 'eslint-plugin-playwright';
import importPlugin from 'eslint-plugin-import';
import simpleImportSort from 'eslint-plugin-simple-import-sort';
export default [
{
...playwright.configs['flat/recommended'],
languageOptions: {
parser: typescriptParser,
parserOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
globals: {
...globals.browser,
...globals.es2020
}
}
},
plugins: {
'playwright': playwright,
'simple-import-sort': simpleImportSort,
'import': importPlugin
},
rules: {
...playwright.configs['flat/recommended'].rules,
'simple-import-sort/exports': 'error',
'import/no-duplicates': 'warn',
'simple-import-sort/imports': 'warn'
},
files: ['tests/**/*.ts']
}
];