UNPKG

@alexlit/lint-kit

Version:

Preset of configuration files and dependencies for linting web applications (designed for Vue.js with TypeScript)

71 lines (55 loc) 1.3 kB
/* eslint-disable no-undef */ module.exports = { extends: ['plugin:unicorn/recommended'], overrides: [ { files: ['.*'], rules: { 'unicorn/no-null': 'off', }, }, { files: ['*.d.ts'], rules: { 'unicorn/prefer-export-from': 'off', }, }, ], plugins: ['unicorn'], rules: { 'unicorn/better-regex': 'off', 'unicorn/consistent-destructuring': 'warn', 'unicorn/consistent-function-scoping': [ 'error', { checkArrowFunctions: false }, ], 'unicorn/no-array-for-each': 'off', 'unicorn/no-array-reduce': ['error', { allowSimpleOperations: true }], 'unicorn/no-empty-file': 'off', 'unicorn/prefer-module': 'off', 'unicorn/prefer-node-protocol': 'off', 'unicorn/prevent-abbreviations': [ 'warn', { allowList: { ImportMetaEnv: true, ProcessEnv: true, Props: true, args: true, attrs: true, env: true, i18n: true, params: true, props: true, ref: true, }, checkFilenames: false, // delegate to eslint-plugin-filenames replacements: { index18n: { i18n: true, }, }, }, ], }, };