blob: b28fdf49aaaf7097249d554ae7ebaca9b2c421f9 [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 },
21 overrides: [
22 {
23 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060024 '**/__tests__/*.{j,t}s?(x)',
25 '**/tests/unit/**/*.spec.{j,t}s?(x)'
Derick Montaguea2988f42020-01-17 13:46:30 -060026 ],
27 env: {
28 jest: true
29 }
30 }
31 ]
32};