40 lines
851 B
JavaScript
40 lines
851 B
JavaScript
import eslint from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
import prettierEslint from 'eslint-plugin-prettier/recommended'
|
|
import simpleImportSort from 'eslint-plugin-simple-import-sort'
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
tseslint.configs.recommendedTypeChecked,
|
|
prettierEslint,
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
warnOnUnsupportedTypeScriptVersion: false,
|
|
},
|
|
},
|
|
},
|
|
{
|
|
ignores: ['node_modules/', 'dist/', 'build/'],
|
|
},
|
|
{
|
|
plugins: {
|
|
'simple-import-sort': simpleImportSort,
|
|
},
|
|
rules: {
|
|
'simple-import-sort/imports': 'error',
|
|
'simple-import-sort/exports': 'error',
|
|
},
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-type-alias': [
|
|
'error',
|
|
{
|
|
allowGenerics: 'always',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
)
|