Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 1 | module.exports = { |
| 2 | root: true, |
| 3 | env: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 4 | node: true, |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 5 | }, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 6 | extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'], |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 7 | rules: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 8 | 'no-prototype-builtins': 'warn', |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 9 | 'no-console': 'off', |
Derick Montague | e2fd156 | 2019-12-20 13:26:53 -0600 | [diff] [blame] | 10 | 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off', |
| 11 | 'prettier/prettier': [ |
| 12 | 'error', |
| 13 | { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 14 | singleQuote: true, |
| 15 | }, |
Derick Montague | 09e45cd | 2020-01-23 15:45:57 -0600 | [diff] [blame] | 16 | ], |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 17 | 'vue/component-name-in-template-casing': ['error', 'kebab-case'], |
| 18 | 'vue/custom-event-name-casing': ['warn'], |
| 19 | 'vue/no-unused-vars': ['warn'], |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 20 | }, |
| 21 | parserOptions: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 22 | parser: 'babel-eslint', |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 23 | }, |
Sukanya Pandey | 5ee04ef | 2020-03-19 10:23:23 +0530 | [diff] [blame] | 24 | globals: { |
| 25 | expect: true, |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 26 | sinon: true, |
Sukanya Pandey | 5ee04ef | 2020-03-19 10:23:23 +0530 | [diff] [blame] | 27 | }, |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 28 | overrides: [ |
| 29 | { |
| 30 | files: [ |
Derick Montague | fded0d1 | 2019-12-11 06:16:40 -0600 | [diff] [blame] | 31 | '**/__tests__/*.{j,t}s?(x)', |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 32 | '**/tests/unit/**/*.spec.{j,t}s?(x)', |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 33 | ], |
| 34 | env: { |
Derick Montague | 602e98a | 2020-10-21 16:20:00 -0500 | [diff] [blame^] | 35 | jest: true, |
| 36 | }, |
| 37 | }, |
| 38 | ], |
Derick Montague | a2988f4 | 2020-01-17 13:46:30 -0600 | [diff] [blame] | 39 | }; |