blob: 02167f4259021777a8a1838b5e43bba849df09fd [file] [log] [blame]
Derick Montaguea2988f42020-01-17 13:46:30 -06001module.exports = {
2 root: true,
3 env: {
4 node: true
5 },
Derick Montague09e45cd2020-01-23 15:45:57 -06006 extends: ['plugin:vue/recommended', '@vue/prettier'],
Derick Montaguea2988f42020-01-17 13:46:30 -06007 rules: {
Derick Montaguefded0d12019-12-11 06:16:40 -06008 'no-console': 'off',
Derick Montaguee2fd1562019-12-20 13:26:53 -06009 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
10 'prettier/prettier': [
11 'error',
12 {
13 singleQuote: true
14 }
Derick Montague09e45cd2020-01-23 15:45:57 -060015 ],
16 'vue/component-name-in-template-casing': ['error', 'kebab-case']
Derick Montaguea2988f42020-01-17 13:46:30 -060017 },
18 parserOptions: {
Derick Montaguefded0d12019-12-11 06:16:40 -060019 parser: 'babel-eslint'
Derick Montaguea2988f42020-01-17 13:46:30 -060020 },
Sukanya Pandey5ee04ef2020-03-19 10:23:23 +053021 globals: {
22 expect: true,
23 sinon: true
24 },
Derick Montaguea2988f42020-01-17 13:46:30 -060025 overrides: [
26 {
27 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060028 '**/__tests__/*.{j,t}s?(x)',
29 '**/tests/unit/**/*.spec.{j,t}s?(x)'
Derick Montaguea2988f42020-01-17 13:46:30 -060030 ],
31 env: {
Derick Montaguead2ceb62020-04-24 18:11:04 -050032 jest: true
Derick Montaguea2988f42020-01-17 13:46:30 -060033 }
34 }
35 ]
36};