82 lines
3.0 KiB
JavaScript
82 lines
3.0 KiB
JavaScript
const { defineConfig } = require('eslint-define-config')
|
|
|
|
module.exports = defineConfig({
|
|
root: true,
|
|
env: {
|
|
node: true,
|
|
browser: true,
|
|
},
|
|
globals: {
|
|
defineOptions: 'writable',
|
|
},
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
parser: '@typescript-eslint/parser',
|
|
sourceType: 'module',
|
|
ecmaVersion: 2020,
|
|
},
|
|
rules: {
|
|
'import-x/order': 'off',
|
|
'@typescript-eslint/no-empty-function': 'off',
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
'@typescript-eslint/no-non-null-assertion': 'off',
|
|
'@typescript-eslint/no-this-alias': 'off',
|
|
'array-callback-return': 'off',
|
|
'escape-case': 'off',
|
|
'eslint-comments/no-unlimited-disable': 'off',
|
|
'import/order': 'off',
|
|
'no-alert': 'off',
|
|
'no-console': 'off',
|
|
'no-debugger': 'off',
|
|
'no-restricted-imports': 'off',
|
|
'no-return-await': 'off',
|
|
'prefer-const': 'off',
|
|
'prefer-template': 'error',
|
|
'unicorn/consistent-function-scoping': 'off',
|
|
'unicorn/escape-case': 'off',
|
|
'unicorn/filename-case': 'off',
|
|
'unicorn/import-style': 'off',
|
|
'unicorn/no-abusive-eslint-disable': 'off',
|
|
'unicorn/no-array-callback-reference': 'off',
|
|
'unicorn/no-array-for-each': 'off',
|
|
'unicorn/no-array-reduce': 'off',
|
|
'unicorn/no-nested-ternary': 'off',
|
|
'unicorn/no-null': 'off',
|
|
'unicorn/no-object-as-default-parameter': 'off',
|
|
'unicorn/no-process-exit': 'off',
|
|
'unicorn/no-this-assignment': 'off',
|
|
'unicorn/numeric-separators-style': 'off',
|
|
'unicorn/prefer-array-some': 'off',
|
|
'unicorn/prefer-default-parameters': 'off',
|
|
'unicorn/prefer-dom-node-append': 'off',
|
|
'unicorn/prefer-dom-node-remove': 'off',
|
|
'unicorn/prefer-logical-operator-over-ternary': 'off',
|
|
'unicorn/prefer-math-trunc': 'off',
|
|
'unicorn/prefer-module': 'off',
|
|
'unicorn/prefer-number-properties': 'off',
|
|
'unicorn/prefer-query-selector': 'off',
|
|
'unicorn/prefer-spread': 'off',
|
|
'unicorn/prefer-string-slice': 'off',
|
|
'unicorn/prefer-structured-clone': 'off',
|
|
'unicorn/prefer-ternary': 'off',
|
|
'unicorn/prefer-top-level-await': 'off',
|
|
'unicorn/prevent-abbreviations': 'off',
|
|
'unicorn/expiring-todo-comments': 'off',
|
|
'unicorn/consistent-destructuring': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/no-reserved-component-names': 'off',
|
|
'vue/no-setup-props-destructure': 'off',
|
|
'vue/no-v-html': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'unicorn/number-literal-case': 'off',
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
'import/first': 'off',
|
|
'object-shorthand': 'off',
|
|
'unicorn/no-console-spaces': 'off',
|
|
'unicorn/prefer-dom-node-text-content': 'off',
|
|
'unicorn/prefer-code-point': 'off',
|
|
'@typescript-eslint/consistent-type-imports': 'off',
|
|
camelcase: 'off',
|
|
},
|
|
})
|