forked from omegaup/omegaup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
50 lines (44 loc) · 1.55 KB
/
.eslintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
module.exports = {
root: true,
parser: 'vue-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
env: {
jquery: true,
node: true,
},
plugins: ['@typescript-eslint', 'jest-dom'],
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:jest-dom/recommended',
'plugin:vue/recommended',
'plugin:vue/vue3-recommended',
'prettier',
'prettier/@typescript-eslint',
'prettier/vue',
],
rules: {
// Disabling this rule since inferrable types are still useful to declare
// for humans.
'@typescript-eslint/no-inferrable-types': 'off',
// This rule is just annoying, since it prevents (legitimate) no-op
// functions from being defined.
'@typescript-eslint/no-empty-function': 'off',
// Avoid using bracket type assertions, since those are the old syntax.
'@typescript-eslint/consistent-type-assertions': 'error',
// TODO: Remove when we migrate to Vue 3, since this syntax doesn't _quite_
// work all the time in Vue 2.
'vue/no-deprecated-v-bind-sync': 'off',
// TODO(#4778): Add key to ALL v-for.
'vue/require-v-for-key': 'off',
// TODO: Remove when we migrate to Vue 3, beacause of
// https://v3.vuejs.org/guide/migration/key-attribute.html#with-template-v-for
'vue/no-v-for-template-key-on-child': 'off',
// TODO: Remove all these exceptions.
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/no-namespace': 'off',
},
};