blob: 4de4c1fd94c6a52abcb1cc57853364f2f5980ee1 [file] [log] [blame]
Derick Montaguea2988f42020-01-17 13:46:30 -06001module.exports = {
2 root: true,
3 env: {
4 node: true
5 },
Gunnar Millsc4844b42020-01-28 20:18:40 -06006 extends: ['plugin:vue/essential', '@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 }
Gunnar Millsc4844b42020-01-28 20:18:40 -060015 ]
Derick Montaguea2988f42020-01-17 13:46:30 -060016 },
17 parserOptions: {
Derick Montaguefded0d12019-12-11 06:16:40 -060018 parser: 'babel-eslint'
Derick Montaguea2988f42020-01-17 13:46:30 -060019 },
20 overrides: [
21 {
22 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060023 '**/__tests__/*.{j,t}s?(x)',
24 '**/tests/unit/**/*.spec.{j,t}s?(x)'
Derick Montaguea2988f42020-01-17 13:46:30 -060025 ],
26 env: {
27 jest: true
28 }
29 }
30 ]
31};