40 lines
1.2 KiB
JavaScript
Executable File
40 lines
1.2 KiB
JavaScript
Executable File
/* eslint-env node */
|
|
require('@rushstack/eslint-patch/modern-module-resolution')
|
|
|
|
module.exports = {
|
|
root: true,
|
|
ignorePatterns: ['src/uni_modules/'],
|
|
extends: [
|
|
'plugin:vue/vue3-essential',
|
|
'eslint:recommended',
|
|
'@vue/eslint-config-typescript/recommended',
|
|
'@vue/eslint-config-prettier'
|
|
],
|
|
rules: {
|
|
'prettier/prettier': [
|
|
'warn',
|
|
{
|
|
semi: false,
|
|
singleQuote: true,
|
|
printWidth: 100,
|
|
proseWrap: 'preserve',
|
|
bracketSameLine: false,
|
|
endOfLine: 'auto',
|
|
tabWidth: 4,
|
|
useTabs: false,
|
|
trailingComma: 'none'
|
|
}
|
|
],
|
|
'vue/multi-word-component-names': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/ban-ts-comment': 'off',
|
|
'no-undef': 'off',
|
|
'vue/prefer-import-from-vue': 'off',
|
|
'no-prototype-builtins': 'off',
|
|
'prefer-spread': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'off'
|
|
},
|
|
globals: {}
|
|
}
|