blob: c404a6d5a62278ca235e460c373739ac30f07c21 [file] [log] [blame]
Derick Montaguea2988f42020-01-17 13:46:30 -06001module.exports = {
2 root: true,
3 env: {
Derick Montague602e98a2020-10-21 16:20:00 -05004 node: true,
Derick Montaguea2988f42020-01-17 13:46:30 -06005 },
Derick Montague602e98a2020-10-21 16:20:00 -05006 extends: ['plugin:vue/recommended', 'eslint:recommended', '@vue/prettier'],
Derick Montaguea2988f42020-01-17 13:46:30 -06007 rules: {
Derick Montague602e98a2020-10-21 16:20:00 -05008 'no-prototype-builtins': 'warn',
Derick Montaguefded0d12019-12-11 06:16:40 -06009 'no-console': 'off',
Derick Montaguee2fd1562019-12-20 13:26:53 -060010 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
11 'prettier/prettier': [
12 'error',
13 {
Derick Montague602e98a2020-10-21 16:20:00 -050014 singleQuote: true,
15 },
Derick Montague09e45cd2020-01-23 15:45:57 -060016 ],
Derick Montague602e98a2020-10-21 16:20:00 -050017 'vue/component-name-in-template-casing': ['error', 'kebab-case'],
18 'vue/custom-event-name-casing': ['warn'],
19 'vue/no-unused-vars': ['warn'],
Derick Montaguea2988f42020-01-17 13:46:30 -060020 },
21 parserOptions: {
Derick Montague602e98a2020-10-21 16:20:00 -050022 parser: 'babel-eslint',
Derick Montaguea2988f42020-01-17 13:46:30 -060023 },
Sukanya Pandey5ee04ef2020-03-19 10:23:23 +053024 globals: {
25 expect: true,
Derick Montague602e98a2020-10-21 16:20:00 -050026 sinon: true,
Sukanya Pandey5ee04ef2020-03-19 10:23:23 +053027 },
Derick Montaguea2988f42020-01-17 13:46:30 -060028 overrides: [
29 {
30 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060031 '**/__tests__/*.{j,t}s?(x)',
Derick Montague602e98a2020-10-21 16:20:00 -050032 '**/tests/unit/**/*.spec.{j,t}s?(x)',
Derick Montaguea2988f42020-01-17 13:46:30 -060033 ],
34 env: {
Derick Montague602e98a2020-10-21 16:20:00 -050035 jest: true,
36 },
37 },
38 ],
Derick Montaguea2988f42020-01-17 13:46:30 -060039};