mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 13:57:10 -04:00
22 lines
646 B
JavaScript
22 lines
646 B
JavaScript
![]() |
/**
|
||
|
* @type {import('eslint').Linter.Config}
|
||
|
*/
|
||
|
module.exports = {
|
||
|
root: true,
|
||
|
extends: ['@antfu', './.eslintrc-auto-import.json', '@unocss'],
|
||
|
|
||
|
rules: {
|
||
|
'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'],
|
||
|
'no-restricted-imports': ['error', {
|
||
|
paths: [{
|
||
|
name: '@vueuse/core',
|
||
|
importNames: ['useClipboard'],
|
||
|
message: 'Please use local useCopy from src/composable/copy.ts instead of useClipboard.',
|
||
|
}],
|
||
|
}],
|
||
|
},
|
||
|
};
|