Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 1 | module.exports = { |
| 2 | root: true, |
| 3 | env: { |
| 4 | node: true |
| 5 | }, |
Gunnar Mills | c4844b4 | 2020-01-28 20:18:40 -0600 | [diff] [blame] | 6 | extends: ['plugin:vue/essential', '@vue/prettier'], |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 7 | rules: { |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 8 | 'no-console': 'off', |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 9 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
| 10 | 'prettier/prettier': [ |
| 11 | 'error', |
| 12 | { |
| 13 | singleQuote: true |
| 14 | } |
Gunnar Mills | c4844b4 | 2020-01-28 20:18:40 -0600 | [diff] [blame] | 15 | ] |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 16 | }, |
| 17 | parserOptions: { |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 18 | parser: 'babel-eslint' |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 19 | }, |
| 20 | overrides: [ |
| 21 | { |
| 22 | files: [ |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 23 | '**/__tests__/*.{j,t}s?(x)', |
| 24 | '**/tests/unit/**/*.spec.{j,t}s?(x)' |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 25 | ], |
| 26 | env: { |
| 27 | jest: true |
| 28 | } |
| 29 | } |
| 30 | ] |
| 31 | }; |