Skip to content

Commit

Permalink
Merge pull request #177 from radio4000/chore/upgrade-eslint
Browse files Browse the repository at this point in the history
Upgrade eslint
  • Loading branch information
oskarrough authored May 23, 2024
2 parents 62b289e + fbf8ef5 commit 80c107d
Show file tree
Hide file tree
Showing 16 changed files with 248 additions and 91 deletions.
20 changes: 0 additions & 20 deletions .eslintrc.cjs

This file was deleted.

21 changes: 21 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import globals from 'globals'
import js from '@eslint/js'
// import jsdoc from 'eslint-plugin-jsdoc'
import pluginLit from 'eslint-plugin-lit'
import {configs as wcConfigs} from 'eslint-plugin-wc'

export default [
js.configs.recommended, // eslint recommended
// jsdoc.configs['flat/recommended'], // for jsdoc
wcConfigs['flat/recommended'], // for web components
pluginLit.configs['flat/recommended'], // for lit elements
{
languageOptions: {
globals: globals.browser,
},
rules: {
// This can be enabled if we want to clean up unused variables, but it's not necessary.
'no-unused-vars': 'off',
},
},
]
Loading

0 comments on commit 80c107d

Please sign in to comment.