forked from algolia/instantsearch
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.js
39 lines (39 loc) · 1.14 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
module.exports = {
extends: ['algolia/jest', 'algolia/vue', 'prettier'],
rules: {
'no-warning-comments': 'warn', // we have many Todo:, this will remind us to deal with them
'no-use-before-define': 'off',
'vue/attribute-hyphenation': [
'error',
'always',
{
ignore: ['createURL'],
},
],
'vue/html-closing-bracket-newline': 'off',
'vue/html-indent': 'off',
'vue/html-self-closing': 'off',
'vue/singleline-html-element-content-newline': 'off',
camelcase: [
'error',
{
allow: ['^\\$_ais', '^EXPERIMENTAL_', 'instant_search'],
},
],
'vue/max-attributes-per-line': 'off',
'@typescript-eslint/naming-convention': 'off',
'import/no-extraneous-dependencies': 'off',
'import/extensions': 'off',
// Because we have root typescript, but not in this package, the import/* rules are too strict
'import/named': 'off',
'import/namespace': 'off',
},
overrides: [
{
files: ['src/components/__tests__/*.js'],
rules: {
'import/named': 'off', // we import __setState and use it, but that's just a mock
},
},
],
};