mirror of
https://github.com/prefix-dev/setup-pixi
synced 2026-10-08 15:04:08 +03:00
43 lines
900 B
JavaScript
43 lines
900 B
JavaScript
// @ts-check
|
|
|
|
import eslint from '@eslint/js'
|
|
import tseslint from 'typescript-eslint'
|
|
|
|
export default tseslint.config(
|
|
eslint.configs.recommended,
|
|
...tseslint.configs.strictTypeChecked,
|
|
...tseslint.configs.stylisticTypeChecked,
|
|
{
|
|
ignores: ['dist/*']
|
|
},
|
|
{
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: true,
|
|
tsconfigRootDir: import.meta.dirname
|
|
}
|
|
}
|
|
},
|
|
{
|
|
rules: {
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{
|
|
argsIgnorePattern: '^_'
|
|
}
|
|
],
|
|
'@typescript-eslint/prefer-nullish-coalescing': [
|
|
'error',
|
|
{
|
|
ignoreConditionalTests: true
|
|
}
|
|
]
|
|
}
|
|
},
|
|
// disable type checking for config files as they aren't in the TS root
|
|
{
|
|
files: ['eslint.config.mjs', 'prettier.config.mjs', 'tsup.config.js'],
|
|
...tseslint.configs.disableTypeChecked
|
|
}
|
|
)
|