2021-11-18 06:32:43 -08:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
|
|
|
env: {
|
2022-05-29 19:37:34 -07:00
|
|
|
'node': false,
|
2021-11-18 06:32:43 -08:00
|
|
|
},
|
2022-05-29 19:37:34 -07:00
|
|
|
parser: 'vue-eslint-parser',
|
2021-11-18 06:32:43 -08:00
|
|
|
parserOptions: {
|
2022-05-29 19:37:34 -07:00
|
|
|
'parser': '@typescript-eslint/parser',
|
2021-11-18 06:32:43 -08:00
|
|
|
tsconfigRootDir: __dirname,
|
2022-05-29 19:37:34 -07:00
|
|
|
project: ['./tsconfig.json'],
|
|
|
|
extraFileExtensions: ['.vue'],
|
2021-11-18 06:32:43 -08:00
|
|
|
},
|
|
|
|
extends: [
|
2022-05-29 19:37:34 -07:00
|
|
|
'../shared/.eslintrc.js',
|
|
|
|
'plugin:vue/vue3-recommended',
|
2021-11-18 06:32:43 -08:00
|
|
|
],
|
|
|
|
rules: {
|
2022-06-09 22:36:55 -07:00
|
|
|
'@typescript-eslint/no-empty-interface': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
'allowSingleExtends': true,
|
|
|
|
},
|
|
|
|
],
|
2022-01-15 17:20:23 -08:00
|
|
|
// window の禁止理由: グローバルスコープと衝突し、予期せぬ結果を招くため
|
|
|
|
// e の禁止理由: error や event など、複数のキーワードの頭文字であり分かりにくいため
|
2022-07-02 07:01:13 -07:00
|
|
|
'id-denylist': ['error', 'window', 'e'],
|
2022-05-29 19:37:34 -07:00
|
|
|
'no-shadow': ['warn'],
|
|
|
|
'vue/attributes-order': ['error', {
|
|
|
|
'alphabetical': false,
|
2021-11-19 02:36:12 -08:00
|
|
|
}],
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/no-use-v-if-with-v-for': ['error', {
|
|
|
|
'allowUsingIterationVar': false,
|
2021-11-19 02:36:12 -08:00
|
|
|
}],
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/no-ref-as-operand': 'error',
|
|
|
|
'vue/no-multi-spaces': ['error', {
|
|
|
|
'ignoreProperties': false,
|
2021-11-19 02:36:12 -08:00
|
|
|
}],
|
2022-09-19 13:32:18 -07:00
|
|
|
'vue/no-v-html': 'warn',
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/order-in-components': 'error',
|
|
|
|
'vue/html-indent': ['warn', 'tab', {
|
|
|
|
'attribute': 1,
|
|
|
|
'baseIndent': 0,
|
|
|
|
'closeBracket': 0,
|
|
|
|
'alignAttributesVertically': true,
|
|
|
|
'ignores': [],
|
2021-11-18 06:32:43 -08:00
|
|
|
}],
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/html-closing-bracket-spacing': ['warn', {
|
|
|
|
'startTag': 'never',
|
|
|
|
'endTag': 'never',
|
|
|
|
'selfClosingTag': 'never',
|
2021-11-18 06:32:43 -08:00
|
|
|
}],
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/multi-word-component-names': 'warn',
|
|
|
|
'vue/require-v-for-key': 'warn',
|
|
|
|
'vue/no-unused-components': 'warn',
|
2023-02-21 22:28:17 -08:00
|
|
|
'vue/no-unused-vars': 'warn',
|
2023-05-29 01:13:12 -07:00
|
|
|
'vue/no-dupe-keys': 'warn',
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/valid-v-for': 'warn',
|
|
|
|
'vue/return-in-computed-property': 'warn',
|
2024-06-21 20:40:00 -07:00
|
|
|
'vue/no-setup-props-reactivity-loss': 'warn',
|
2022-05-29 19:37:34 -07:00
|
|
|
'vue/max-attributes-per-line': 'off',
|
|
|
|
'vue/html-self-closing': 'off',
|
|
|
|
'vue/singleline-html-element-content-newline': 'off',
|
2023-05-18 21:58:09 -07:00
|
|
|
'vue/v-on-event-hyphenation': ['error', 'never', { autofix: true }],
|
|
|
|
'vue/attribute-hyphenation': ['error', 'never'],
|
2021-11-18 06:32:43 -08:00
|
|
|
},
|
|
|
|
globals: {
|
2022-05-29 19:37:34 -07:00
|
|
|
// Node.js
|
|
|
|
'module': false,
|
|
|
|
'require': false,
|
|
|
|
'__dirname': false,
|
|
|
|
|
|
|
|
// Misskey
|
|
|
|
'_DEV_': false,
|
|
|
|
'_LANGS_': false,
|
|
|
|
'_VERSION_': false,
|
|
|
|
'_ENV_': false,
|
|
|
|
'_PERF_PREFIX_': false,
|
|
|
|
'_DATA_TRANSFER_DRIVE_FILE_': false,
|
|
|
|
'_DATA_TRANSFER_DRIVE_FOLDER_': false,
|
|
|
|
'_DATA_TRANSFER_DECK_COLUMN_': false,
|
|
|
|
},
|
|
|
|
};
|