blob: 78c0cd0c3606fc66276d9c47f208172a3466a52d [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 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 {
Derick Montague602e98a2020-10-21 16:20:00 -050013 singleQuote: true,
14 },
Derick Montague09e45cd2020-01-23 15:45:57 -060015 ],
Derick Montague602e98a2020-10-21 16:20:00 -050016 'vue/component-name-in-template-casing': ['error', 'kebab-case'],
Ed Tanousa0c29202024-02-27 10:12:25 -080017 'vue/multi-word-component-names': 'off',
Derick Montaguea2988f42020-01-17 13:46:30 -060018 },
Ed Tanousa0c29202024-02-27 10:12:25 -080019 parser: 'vue-eslint-parser',
Derick Montaguea2988f42020-01-17 13:46:30 -060020 overrides: [
21 {
22 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060023 '**/__tests__/*.{j,t}s?(x)',
Derick Montague602e98a2020-10-21 16:20:00 -050024 '**/tests/unit/**/*.spec.{j,t}s?(x)',
Derick Montaguea2988f42020-01-17 13:46:30 -060025 ],
26 env: {
Derick Montague602e98a2020-10-21 16:20:00 -050027 jest: true,
28 },
29 },
30 ],
Derick Montaguea2988f42020-01-17 13:46:30 -060031};