2018-03-23 13:20:37 +00:00
module . exports = {
2018-05-17 18:45:01 +00:00
extends : [
// add more generic rulesets here, such as:
'eslint:recommended' ,
2023-12-18 21:19:30 +00:00
'plugin:vue/vue3-recommended'
2018-05-17 18:45:01 +00:00
] ,
parserOptions : {
2020-04-28 21:09:45 +00:00
'ecmaVersion' : 2018
2018-05-17 18:45:01 +00:00
} ,
rules : {
2023-12-18 21:19:30 +00:00
/* Override/add rules settings here, such as: */
// Basic rules that we want to receive a warning instead of error
2018-05-20 23:02:10 +00:00
'no-console' : 'warn' ,
'no-unused-vars' : 'warn' ,
'no-undef' : 'warn' ,
2023-12-18 21:19:30 +00:00
// Tainacan relies a lot in v-html and v-text, so we can't disable them
2020-04-28 21:09:45 +00:00
'vue/no-v-html' : 'off' ,
2023-12-18 21:19:30 +00:00
'vue/no-v-text-v-html-on-component' : 'off' ,
// Formating that is hard to disable as would require significant refactoring. Autofix don't solve it well.
'vue/html-indent' : [
'warn' , 4 , {
'attribute' : 2 ,
'closeBracket' : 1
}
] ,
2020-04-28 21:09:45 +00:00
'vue/html-closing-bracket-newline' : 'off' ,
2023-12-18 21:19:30 +00:00
'vue/require-prop-type-constructor' : 'off' ,
2020-04-28 21:09:45 +00:00
'vue/singleline-html-element-content-newline' : 'off' ,
'vue/multiline-html-element-content-newline' : 'off' ,
2023-12-18 21:19:30 +00:00
// This has impact on how some props are passed and we have mixed types, such as collectionID as a string or number... would require careful refactoring.
'vue/require-default-prop' : 'off'
2018-05-20 23:02:10 +00:00
} ,
globals : {
2022-06-22 12:59:16 +00:00
'wp' : true ,
2018-06-29 13:37:25 +00:00
'tainacan_plugin' : true ,
2021-06-14 20:59:40 +00:00
'tainacan_blocks' : true ,
2018-07-18 19:38:17 +00:00
'_' : true ,
2020-03-02 19:54:44 +00:00
'jQuery' : true ,
'tainacan_extra_components' : true ,
2020-10-15 14:49:13 +00:00
'tainacan_extra_plugins' : true ,
2022-06-30 15:18:12 +00:00
'grecaptcha' : true ,
'webkit' : true
2018-05-17 18:45:01 +00:00
}
2018-03-23 13:20:37 +00:00
}