Skip to content

Commit

Permalink
Merge branch 'master' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
GriffinJohnston committed Jan 18, 2024
2 parents e50a646 + 76335c6 commit ef77a57
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions packages/eslint-config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## 12.0.3

### Patch Changes

- 43d678fe: add storybook files to devdependencies for no-extraneous-dependencies rule
- adfb669b: add flat config support for eslint-plugin-import

## 12.0.2

### Patch Changes
Expand Down
7 changes: 7 additions & 0 deletions packages/eslint-config/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ module.exports = {
'**/demo/**/*.{html,js,mjs,ts}',
'**/*.config.{html,js,mjs,ts}',
'**/*.conf.{html,js,mjs,ts}',
'**/.storybook/*.{html,js,mjs,cjs,ts}',
],
},
],
Expand Down Expand Up @@ -94,6 +95,12 @@ module.exports = {
'lit/lifecycle-super': 'error',
},
settings: {
// Adds compatibility for eslint-plugin-import in combination with flat config
// See: https://github.com/import-js/eslint-plugin-import/issues/2556#issuecomment-1419518561
'import/parsers': {
espree: ['.js', '.cjs', '.mjs', '.jsx'],
'@typescript-eslint/parser': ['.ts'],
},
'import/resolver': {
[require.resolve('eslint-plugin-import-exports-imports-resolver')]: {},
},
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-wc/eslint-config",
"version": "12.0.2",
"version": "12.0.3",
"publishConfig": {
"access": "public"
},
Expand Down

0 comments on commit ef77a57

Please sign in to comment.