mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
feat(eslint-config): resolve extended linting configurations
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
module.exports = {
|
||||
extends: ['eslint-config-airbnb-base', 'plugin:wc/best-practice'],
|
||||
extends: [
|
||||
require.resolve('eslint-config-airbnb-base'),
|
||||
require.resolve('./src/eslint-plugin-wc-export'),
|
||||
],
|
||||
parser: 'babel-eslint',
|
||||
env: {
|
||||
browser: true,
|
||||
|
||||
7
packages/eslint-config/src/eslint-plugin-wc-export.js
Normal file
7
packages/eslint-config/src/eslint-plugin-wc-export.js
Normal file
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* Eslint doesn't understand the default export pattern from eslint the plugin, so we
|
||||
* re-export the default export here.
|
||||
*/
|
||||
const eslintPluginWc = require('eslint-plugin-wc/lib/configs/best-practice').default;
|
||||
|
||||
module.exports = eslintPluginWc;
|
||||
Reference in New Issue
Block a user