99 lines
3.0 KiB
JavaScript
99 lines
3.0 KiB
JavaScript
module.exports = {
|
|
root: true,
|
|
env: {
|
|
browser: true,
|
|
node: true,
|
|
es2021: true,
|
|
},
|
|
plugins: ['prettier', 'unicorn', 'import', 'waterfall'],
|
|
ignorePatterns: ['node_modules/', 'dist/', 'build/', '*.min.js', 'src/components/icons/icon-names.d.ts'],
|
|
parserOptions: {
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module',
|
|
},
|
|
extends: [
|
|
'plugin:unicorn/recommended',
|
|
'eslint:recommended',
|
|
'plugin:prettier/recommended',
|
|
'eslint-config-prettier',
|
|
'plugin:vue/vue3-essential',
|
|
],
|
|
overrides: [
|
|
{
|
|
files: ['**/*.vue'],
|
|
parser: 'vue-eslint-parser',
|
|
parserOptions: {
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module',
|
|
},
|
|
},
|
|
{
|
|
files: ['**/*.cjs'],
|
|
parserOptions: {
|
|
sourceType: 'script',
|
|
},
|
|
},
|
|
],
|
|
rules: {
|
|
'no-alert': 'error',
|
|
'no-shadow': 'off',
|
|
'no-console': 'off',
|
|
'import/order': 'off',
|
|
'dot-notation': 'error',
|
|
'no-else-return': 'off',
|
|
'unicorn/no-null': 'off',
|
|
semi: ['error', 'never'],
|
|
'import/namespace': 'off',
|
|
'no-implied-eval': 'error',
|
|
'no-return-await': 'error',
|
|
'no-nested-ternary': 'off',
|
|
'no-param-reassign': 'off',
|
|
'no-throw-literal': 'error',
|
|
'consistent-return': 'off',
|
|
'no-useless-catch': 'off',
|
|
'prefer-destructuring': 'off',
|
|
'import/no-unresolved': 'off',
|
|
'no-underscore-dangle': 'off',
|
|
'unicorn/prefer-spread': 'off',
|
|
'unicorn/prefer-module': 'off',
|
|
'unicorn/filename-case': 'off',
|
|
'unicorn/no-array-reduce': 'off',
|
|
'no-constant-condition': 'error',
|
|
'unicorn/no-array-for-each': 'off',
|
|
'unicorn/prefer-node-protocol': 'off',
|
|
'import/prefer-default-export': 'off',
|
|
'unicorn/prevent-abbreviations': 'off',
|
|
'unicorn/prefer-string-replace-all': 'off',
|
|
'unicorn/consistent-function-scoping': 'off',
|
|
'unicorn/no-thenable': 'off',
|
|
'unicorn/no-static-only-class': 'off',
|
|
'unicorn/prefer-dom-node-text-content': 'off',
|
|
'unicorn/prefer-logical-operator-over-ternary': 'off',
|
|
'unicorn/prefer-number-properties': 'off',
|
|
'unicorn/prefer-ternary': 'off',
|
|
'no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
|
|
'waterfall/waterfall-imports': 'warn',
|
|
'waterfall/waterfall-requires': 'warn',
|
|
'waterfall/waterfall-objects': 'off',
|
|
'no-irregular-whitespace': 'off',
|
|
'no-empty': 'off',
|
|
'import/extensions': 'off',
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/component-name-in-template-casing': 'off',
|
|
'vue/html-self-closing': 'off',
|
|
'vue/max-attributes-per-line': 'off',
|
|
'vue/html-indent': 'off',
|
|
'vue/no-unused-components': 'error',
|
|
'vue/no-reserved-component-names': 'off',
|
|
'vue/no-unused-vars': 'error',
|
|
'vue/require-v-for-key': 'off',
|
|
'vue/require-toggle-inside-transition': 'off',
|
|
'vue/require-valid-default-prop': 'off',
|
|
'vue/no-deprecated-props-default-this': 'off',
|
|
'vue/no-duplicate-attributes': 'off',
|
|
'vue/no-side-effects-in-computed-properties': 'off',
|
|
'vue/valid-v-on': 'off',
|
|
'padding-line-between-statements': 'off',
|
|
},
|
|
}
|