30 lines
761 B
JavaScript
30 lines
761 B
JavaScript
import baseConfig from '@aklive2d/eslint-config'
|
|
import { tsConfig } from '@aklive2d/eslint-config'
|
|
import tseslint from 'typescript-eslint'
|
|
import globals from 'globals'
|
|
|
|
/** @type {import('eslint').Config} */
|
|
export default tseslint.config(
|
|
...baseConfig,
|
|
...tsConfig,
|
|
{
|
|
ignores: ['dist', 'spine-ts'],
|
|
},
|
|
{
|
|
files: ['**/*.js', '**/*.ts'],
|
|
languageOptions: {
|
|
ecmaVersion: 2022,
|
|
globals: {
|
|
...globals.browser,
|
|
},
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
|
|
'@typescript-eslint/no-unused-vars': [
|
|
'error',
|
|
{ argsIgnorePattern: '^_' },
|
|
],
|
|
},
|
|
}
|
|
)
|