it-tools/.eslintrc.cjs

22 lines
646 B
JavaScript
Raw Permalink Normal View History

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