You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
47 lines
1.2 KiB
47 lines
1.2 KiB
10 months ago
|
/* eslint-env node */
|
||
|
module.exports = {
|
||
|
root: true,
|
||
|
extends: [
|
||
|
'plugin:nuxt/recommended',
|
||
|
'plugin:vue/vue3-essential',
|
||
|
'eslint:recommended',
|
||
|
'@vue/eslint-config-typescript/recommended',
|
||
|
'@vue/eslint-config-prettier',
|
||
|
],
|
||
|
parserOptions: {
|
||
|
ecmaVersion: 'latest',
|
||
|
parser: '@typescript-eslint/parser',
|
||
|
sourceType: 'module',
|
||
|
},
|
||
|
plugins: ['@typescript-eslint'],
|
||
|
rules: {
|
||
|
'prettier/prettier': [
|
||
|
'warn',
|
||
|
{
|
||
|
semi: false,
|
||
|
singleQuote: true,
|
||
|
printWidth: 80,
|
||
|
proseWrap: 'preserve',
|
||
|
bracketSameLine: false,
|
||
|
endOfLine: 'auto',
|
||
|
tabWidth: 2,
|
||
|
useTabs: false,
|
||
|
trailingComma: 'none',
|
||
|
},
|
||
|
],
|
||
|
'no-useless-escape': 'off',
|
||
|
'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: {
|
||
|
module: 'readonly',
|
||
|
},
|
||
|
}
|