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
591 B
29 lines
591 B
4 months ago
|
// 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: true,
|
||
|
App: true,
|
||
|
Page: true,
|
||
|
getCurrentPages: true,
|
||
|
getApp: true,
|
||
|
Component: true,
|
||
|
requirePlugin: true,
|
||
|
requireMiniProgram: true,
|
||
|
},
|
||
|
rules: {
|
||
|
'eslint-comments/no-unlimited-disable': 'off',
|
||
|
'ts/no-require-imports': 'off',
|
||
|
},
|
||
|
},
|
||
|
prettierConfig,
|
||
|
)
|