mirror of
https://github.com/shivammathur/setup-php.git
synced 2026-03-02 10:39:25 +07:00
50 lines
1.1 KiB
JavaScript
50 lines
1.1 KiB
JavaScript
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
import importPlugin from 'eslint-plugin-import';
|
|
import jest from 'eslint-plugin-jest';
|
|
import prettierRecommended from 'eslint-plugin-prettier/recommended';
|
|
import eslintConfigPrettier from 'eslint-config-prettier';
|
|
import globals from 'globals';
|
|
import tsParser from '@typescript-eslint/parser';
|
|
import js from '@eslint/js';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
...typescriptEslint.configs['flat/recommended'],
|
|
importPlugin.flatConfigs.errors,
|
|
importPlugin.flatConfigs.warnings,
|
|
importPlugin.flatConfigs.typescript,
|
|
prettierRecommended,
|
|
eslintConfigPrettier,
|
|
{
|
|
plugins: {
|
|
jest
|
|
},
|
|
|
|
languageOptions: {
|
|
globals: {
|
|
...globals.node,
|
|
...globals.jest
|
|
},
|
|
|
|
parser: tsParser,
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module'
|
|
},
|
|
|
|
settings: {
|
|
'import/resolver': {
|
|
typescript: {
|
|
alwaysTryTypes: true,
|
|
project: './tsconfig.json'
|
|
},
|
|
node: {
|
|
extensions: ['.js', '.ts']
|
|
}
|
|
},
|
|
'import/parsers': {
|
|
'@typescript-eslint/parser': ['.ts']
|
|
}
|
|
}
|
|
}
|
|
];
|