forked from vuestorefront/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
32 lines (31 loc) · 868 Bytes
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
const { resolve } = require('path');
module.exports = {
env: {
jest: true,
node: true,
browser: true,
es6: true,
commonjs: true,
},
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
project: [
resolve(__dirname, './tsconfig.base.json'),
resolve(__dirname, './packages/api-client/tsconfig.json'),
resolve(__dirname, './packages/composables/tsconfig.json'),
resolve(__dirname, './packages/theme/tsconfig.json')
],
tsconfigRootDir: __dirname,
extraFileExtensions: ['.vue'],
ecmaVersion: 2021,
sourceType: 'module',
},
extends: [
'@vue-storefront/eslint-config-base',
'@vue-storefront/eslint-config-typescript',
'@vue-storefront/eslint-config-import',
'@vue-storefront/eslint-config-vue',
'@vue-storefront/eslint-config-jest',
],
}