37 lines
1 KiB
JavaScript
37 lines
1 KiB
JavaScript
module.exports = {
|
|
extends: ['@open-wc/eslint-config', 'eslint-config-prettier'].map(require.resolve),
|
|
overrides: [
|
|
{
|
|
files: ['**/*.js'],
|
|
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
|
|
},
|
|
},
|
|
{
|
|
files: [
|
|
'**/test-suites/**/*.js',
|
|
'**/test/**/*.js',
|
|
'**/test-node/**/*.js',
|
|
'**/demo/**/*.js',
|
|
'**/docs/**/*.js',
|
|
'**/*.config.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',
|
|
},
|
|
},
|
|
],
|
|
};
|