13 changed files with 1362 additions and 1409 deletions
@ -0,0 +1,28 @@
@@ -0,0 +1,28 @@
|
||||
import antfu from '@antfu/eslint-config' |
||||
|
||||
export default antfu({ |
||||
env: { |
||||
es6: true, |
||||
}, |
||||
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', |
||||
eqeqeq: 'off', |
||||
}, |
||||
formatters: { |
||||
css: 'prettier', |
||||
html: 'prettier', |
||||
markdown: 'prettier', |
||||
}, |
||||
}) |
||||
@ -1,28 +0,0 @@
@@ -1,28 +0,0 @@
|
||||
// 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, |
||||
) |
||||
|
After Width: | Height: | Size: 2.8 MiB |
Loading…
Reference in new issue