You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

29 lines
660 B

// eslint.config.mjs
import antfu from '@antfu/eslint-config'
import prettierConfig from 'eslint-config-prettier'
export default antfu(
{
env: {
es6: true,
},
stylistic: false,
parserOptions: { project: ['./tsconfig.json'] },
globals: {
wx: 'readonly',
App: 'readonly',
Page: 'readonly',
getCurrentPages: 'readonly',
getApp: 'readonly',
Component: 'readonly',
requirePlugin: 'readonly',
requireMiniProgram: 'readonly',
},
rules: {
'eslint-comments/no-unlimited-disable': 'off',
'ts/no-require-imports': 'off',
eqeqeq: 'off',
},
},
prettierConfig,
)