forked from ing-bank/lion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
51 lines (50 loc) · 1.47 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
51
const path = require('path');
module.exports = {
extends: ['@open-wc/eslint-config', 'eslint-config-prettier'].map(require.resolve),
overrides: [
{
files: ['**/*.js', '**/*.mjs'],
rules: {
'wc/guard-super-call': 'off', // types will prevent you from calling the super if it's not in the base class, making the guard unnecessary
'no-await-in-loop': 'off',
'import/no-unresolved': 'off', // eslint not smart enough atm to understand package exports maps
camelcase: ['error', { properties: 'always' }],
},
parserOptions: {
ecmaVersion: 'latest',
},
},
{
files: [
'**/test-suites/**/*.js',
'**/test/**/*.js',
'**/test-node/**/*.js',
'**/demo/**/*.js',
'**/docs/**/*.js',
'**/*.config.js',
'scripts/**/*.js',
],
rules: {
'lit/binding-positions': 'off',
'lit/no-invalid-html': 'off',
'lit/no-useless-template-literals': 'off',
'no-console': 'off',
'no-unused-expressions': 'off',
'class-methods-use-this': 'off',
'max-classes-per-file': 'off',
'import/no-extraneous-dependencies': 'off', // we moved all devDependencies to root
},
},
{
files: ['demo/**/*.js'],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
],
settings: {
'import/resolver': {
[path.resolve('./scripts/eslint-resolver.cjs')]: {},
},
},
};