12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- module.exports = {
- extends: [
- 'proste/typescript',
- 'proste/vue',
- ],
- globals: {
- suite: true,
- test: true,
- describe: true,
- it: true,
- expect: true,
- assert: true,
- vitest: true,
- vi: true,
- beforeAll: true,
- afterAll: true,
- beforeEach: true,
- afterEach: true,
- },
- parser: 'vue-eslint-parser',
- parserOptions: {
- parser: '@typescript-eslint/parser',
- project: './tsconfig.json',
- tsconfigRootDir: '.',
- warnOnUnsupportedTypeScriptVersion: true,
- extraFileExtensions: ['.vue'],
- },
- rules: {
- 'vue/require-default-prop': 0,
- curly: [1, 'multi-or-nest', 'consistent'],
- '@typescript-eslint/indent': 0,
- indent: [
- 2,
- 2,
- {
- SwitchCase: 1,
- VariableDeclarator: {
- var: 2,
- let: 2,
- const: 3,
- },
- ArrayExpression: 1,
- ObjectExpression: 1,
- ImportDeclaration: 1,
- flatTernaryExpressions: false,
- },
- ],
- },
- overrides: [
- {
- files: ['cypress/**', 'cypress.config.ts'],
- plugins: ['cypress'],
- parserOptions: {
- project: './cypress/tsconfig.json',
- tsconfigRootDir: __dirname,
- warnOnUnsupportedTypeScriptVersion: true,
- },
- env: {
- 'cypress/globals': true,
- },
- },
- ],
- };
|