blob: 99c1e669c64bab227d23b52b5f147ad19b498bd2 [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 },
Ed Tanous9c729792024-03-23 14:56:34 -07006 extends: [
7 'plugin:vue/vue3-recommended',
8 'eslint:recommended',
9 '@vue/prettier',
10 ],
Derick Montaguea2988f42020-01-17 13:46:30 -060011 rules: {
Derick Montaguefded0d12019-12-11 06:16:40 -060012 'no-console': 'off',
Derick Montaguee2fd1562019-12-20 13:26:53 -060013 'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
14 'prettier/prettier': [
15 'error',
16 {
Derick Montague602e98a2020-10-21 16:20:00 -050017 singleQuote: true,
Ed Tanous9c729792024-03-23 14:56:34 -070018 trailingComma: 'all',
Derick Montague602e98a2020-10-21 16:20:00 -050019 },
Derick Montague09e45cd2020-01-23 15:45:57 -060020 ],
Derick Montague602e98a2020-10-21 16:20:00 -050021 'vue/component-name-in-template-casing': ['error', 'kebab-case'],
Ed Tanousa0c29202024-02-27 10:12:25 -080022 'vue/multi-word-component-names': 'off',
Ed Tanous9c729792024-03-23 14:56:34 -070023 'vue/no-deprecated-filter': 'off',
24 'vue/no-useless-template-attributes': 'off',
25 'vue/no-deprecated-props-default-this': 'off',
Derick Montaguea2988f42020-01-17 13:46:30 -060026 },
Ed Tanousa0c29202024-02-27 10:12:25 -080027 parser: 'vue-eslint-parser',
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};