blob: aeaa1c957bd99e0c0ef635bd5f8bb38fdc65e277 [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'],
Derick Montaguea2988f42020-01-17 13:46:30 -060017 },
18 parserOptions: {
Derick Montague602e98a2020-10-21 16:20:00 -050019 parser: 'babel-eslint',
Derick Montaguea2988f42020-01-17 13:46:30 -060020 },
21 overrides: [
22 {
23 files: [
Derick Montaguefded0d12019-12-11 06:16:40 -060024 '**/__tests__/*.{j,t}s?(x)',
Derick Montague602e98a2020-10-21 16:20:00 -050025 '**/tests/unit/**/*.spec.{j,t}s?(x)',
Derick Montaguea2988f42020-01-17 13:46:30 -060026 ],
27 env: {
Derick Montague602e98a2020-10-21 16:20:00 -050028 jest: true,
29 },
30 },
31 ],
Derick Montaguea2988f42020-01-17 13:46:30 -060032};