mirror of
https://github.com/misenhower/splatoon2.ink.git
synced 2026-04-26 09:34:12 -05:00
46 lines
1.2 KiB
JavaScript
46 lines
1.2 KiB
JavaScript
/* eslint-env node */
|
|
// const createAliasSetting = require('@vue/eslint-config-airbnb/createAliasSetting');
|
|
|
|
module.exports = {
|
|
'root': true,
|
|
'extends': [
|
|
'plugin:vue/vue3-recommended',
|
|
'eslint:recommended',
|
|
],
|
|
'rules': {
|
|
// ESLint
|
|
// 'indent': ['warn', 2, { 'SwitchCase': 1 }],
|
|
'comma-dangle': ['warn', 'always-multiline'],
|
|
'no-unused-vars': ['warn', { 'args': 'none' }],
|
|
'semi': 'warn',
|
|
'quotes': ['warn' , 'single'],
|
|
'object-curly-spacing': ['warn', 'always'],
|
|
|
|
// Vue
|
|
'vue/multi-word-component-names': 'off',
|
|
'vue/require-default-prop': 'off',
|
|
'vue/max-attributes-per-line': ['warn', { singleline: { max: 4 } }],
|
|
'vue/html-self-closing': ['warn', { html: { void: 'always' } }],
|
|
'vue/no-deprecated-filter': 'off',
|
|
'vue/require-toggle-inside-transition': 'off',
|
|
},
|
|
'globals': {
|
|
'__dirname': 'readonly',
|
|
'process': 'readonly',
|
|
'require': 'readonly',
|
|
'module': 'readonly',
|
|
'Buffer': 'readonly',
|
|
},
|
|
'env': {
|
|
'vue/setup-compiler-macros': true,
|
|
},
|
|
'ignorePatterns': [
|
|
'src/assets/i18n/index.mjs', // "assert" syntax is currently unrecognized
|
|
],
|
|
settings: {
|
|
// ...createAliasSetting({
|
|
// '@': './src',
|
|
// }),
|
|
},
|
|
};
|