2023-05-29 05:13:24 +08:00
|
|
|
/**
|
|
|
|
* @type {import('eslint').Linter.Config}
|
|
|
|
*/
|
2022-03-31 06:33:29 +08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2023-05-29 05:13:24 +08:00
|
|
|
extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
|
2022-08-05 04:46:50 +08:00
|
|
|
|
2022-03-31 06:33:29 +08:00
|
|
|
rules: {
|
2023-05-29 05:13:24 +08:00
|
|
|
'curly': ['error', 'all'],
|
|
|
|
'@typescript-eslint/semi': ['error', 'always'],
|
|
|
|
'@typescript-eslint/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],
|
|
|
|
'vue/no-empty-component-block': ['error'],
|
2023-08-22 07:00:20 +08:00
|
|
|
'no-restricted-imports': ['error', {
|
|
|
|
paths: [{
|
|
|
|
name: '@vueuse/core',
|
|
|
|
importNames: ['useClipboard'],
|
|
|
|
message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.',
|
|
|
|
}],
|
|
|
|
}],
|
2022-03-31 06:33:29 +08:00
|
|
|
},
|
|
|
|
};
|