You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1018 B
JavaScript
41 lines
1018 B
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
},
|
|
extends: ['plugin:vue/essential', 'eslint:recommended', '@vue/typescript/recommended', '@vue/prettier', '@vue/prettier/@typescript-eslint'],
|
|
globals: {
|
|
uni: true,
|
|
plus: true,
|
|
},
|
|
parserOptions: {
|
|
ecmaVersion: 2020,
|
|
parser: '@typescript-eslint/parser',
|
|
},
|
|
rules: {
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
'prettier/prettier': [
|
|
'error',
|
|
{
|
|
printWidth: 800,
|
|
singleQuote: true,
|
|
trailingComma: 'all',
|
|
endOfLine: 'auto',
|
|
},
|
|
],
|
|
},
|
|
overrides: [
|
|
{
|
|
files: ['*.js'],
|
|
rules: {
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
},
|
|
},
|
|
],
|
|
ignorePatterns: ['src/plugins/'],
|
|
};
|