funkwhale/front/.eslintrc.js

48 wiersze
1.0 KiB
JavaScript
Czysty Zwykły widok Historia

2021-04-25 16:23:27 +00:00
module.exports = {
env: {
browser: true,
es6: true
},
extends: [
2022-05-01 11:45:07 +00:00
'plugin:vue/vue3-recommended',
2022-04-16 11:34:39 +00:00
'@vue/typescript/recommended',
'@vue/standard'
2021-04-25 16:23:27 +00:00
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
2022-05-01 11:45:07 +00:00
parser: 'vue-eslint-parser',
2021-04-25 16:23:27 +00:00
parserOptions: {
2022-05-01 11:45:07 +00:00
parser: '@typescript-eslint/parser',
2022-02-21 19:08:44 +00:00
ecmaVersion: 2020,
2022-04-16 11:34:39 +00:00
sourceType: 'module'
2021-04-25 16:23:27 +00:00
},
plugins: [
'vue'
],
rules: {
2022-07-21 22:36:43 +00:00
// NOTE: Nicer for the eye
'operator-linebreak': ['error', 'before'],
2022-04-30 13:25:59 +00:00
// NOTE: Handled by typescript
'no-undef': 'off',
'no-redeclare': 'off',
2022-04-30 13:25:59 +00:00
'no-unused-vars': 'off',
2022-05-02 15:06:44 +00:00
'no-use-before-define': 'off',
2022-04-30 13:25:59 +00:00
2022-08-31 18:43:25 +00:00
// TODO (wvffle): VUI and #1618
'import/extensions': 'off',
// TODO (wvffle): Enable these rules later
'vue/multi-word-component-names': 'off',
'@typescript-eslint/no-this-alias': 'off',
2022-04-30 13:25:59 +00:00
'@typescript-eslint/no-empty-function': 'off',
'@typescript-eslint/no-unused-vars': 'off',
2022-05-01 15:17:12 +00:00
// TODO (wvffle): Migrate to pinia
2022-08-31 18:43:25 +00:00
'@typescript-eslint/no-explicit-any': 'off'
2021-04-25 16:23:27 +00:00
}
}