2023-05-29 00:13:24 +03:00
|
|
|
/**
|
|
|
|
* @type {import('eslint').Linter.Config}
|
|
|
|
*/
|
2022-03-31 01:33:29 +03:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2023-05-29 00:13:24 +03:00
|
|
|
extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
|
2022-08-04 23:46:50 +03:00
|
|
|
|
2022-03-31 01:33:29 +03:00
|
|
|
rules: {
|
2023-05-29 00:13:24 +03: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 02:00:20 +03: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 01:33:29 +03:00
|
|
|
},
|
|
|
|
};
|