2020-11-25 21:39:40 +01:00
|
|
|
module.exports = {
|
|
|
|
parserOptions: {
|
|
|
|
parser: 'babel-eslint'
|
|
|
|
},
|
|
|
|
extends: [
|
|
|
|
'eslint:recommended',
|
|
|
|
'plugin:vue/vue3-recommended',
|
|
|
|
'plugin:vue-a11y/base',
|
|
|
|
'standard',
|
|
|
|
// 'plugin:prettier/recommended'
|
|
|
|
],
|
|
|
|
plugins: [
|
|
|
|
'vue',
|
2020-11-25 22:49:17 +01:00
|
|
|
'vue-a11y',
|
|
|
|
'no-autofix'
|
2020-11-25 21:39:40 +01:00
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'no-unused-vars': ["warn"],
|
2020-11-25 22:49:17 +01:00
|
|
|
'camelcase': 'warn',
|
|
|
|
'eqeqeq': 'warn',
|
|
|
|
'no-redeclare': 'warn'
|
2020-11-25 21:39:40 +01:00
|
|
|
},
|
|
|
|
ignorePatterns: [
|
|
|
|
"vendor/**",
|
|
|
|
"web/core/**"
|
|
|
|
],
|
|
|
|
globals: {
|
|
|
|
"Drupal": true,
|
|
|
|
"drupalSettings": true,
|
|
|
|
"drupalTranslations": true,
|
|
|
|
"domready": true,
|
|
|
|
"jQuery": true,
|
|
|
|
"_": true,
|
|
|
|
"matchMedia": true,
|
|
|
|
"Cookies": true,
|
|
|
|
"Backbone": true,
|
|
|
|
"Modernizr": true,
|
|
|
|
"Popper": true,
|
|
|
|
"Sortable": true,
|
2020-11-25 22:49:17 +01:00
|
|
|
"CKEDITOR": true,
|
|
|
|
"drupalDecoupled": true
|
2020-11-25 21:39:40 +01:00
|
|
|
}
|
|
|
|
}
|