@uisimple/create-simple-cli
Version:
Simple CLI
59 lines (57 loc) • 1.34 kB
JavaScript
/* eslint-env node */
require('@rushstack/eslint-patch/modern-module-resolution')
module.exports = {
root: true,
env: {
es6: true,
browser: true,
node: true,
'vue/setup-compiler-macros': true
},
extends: [
'plugin:vue/vue3-essential',
'eslint:recommended',
'plugin:vue/vue3-recommended',
'@vue/eslint-config-typescript',
'@vue/eslint-config-prettier'
],
// parserOptions: {
// ecmaVersion: 'latest'
// }
overrides: [
{
files: ['*.json', '*.json5', '*.jsonc'],
parser: 'jsonc-eslint-parser',
rules: {
'prettier/prettier': 'off'
}
},
{
files: ['*.ts', '*.vue'],
rules: {
'no-undef': 'off'
}
}
],
rules: {
'prettier/prettier': [
'error',
{
singleQuote: true,
semi: false,
trailingComma: 'none',
vueIndentScriptAndStyle: true,
tabWidth: 2,
printWidth: 120,
endOfLine: 'lf'
}
],
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-unused-vars': 'warn',
'@typescript-eslint/no-explicit-any': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-default-prop': 'off',
'vue/no-dupe-keys': 'off'
}
}