mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 22:54:42 -04:00
refactor: use eslint.config.mjs instead of .eslintrc
This was done automatically by running `npx @eslint/migrate-config .eslintrc.js` Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
071da4b152
commit
a11c05b477
5 changed files with 33 additions and 13 deletions
25
eslint.config.mjs
Normal file
25
eslint.config.mjs
Normal file
|
@ -0,0 +1,25 @@
|
|||
import globals from 'globals'
|
||||
import path from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import js from '@eslint/js'
|
||||
import { FlatCompat } from '@eslint/eslintrc'
|
||||
|
||||
const __filename = fileURLToPath(import.meta.url)
|
||||
const __dirname = path.dirname(__filename)
|
||||
const compat = new FlatCompat({
|
||||
baseDirectory: __dirname,
|
||||
recommendedConfig: js.configs.recommended,
|
||||
allConfig: js.configs.all
|
||||
})
|
||||
|
||||
export default [{
|
||||
ignores: ['lib/ot', 'public/vendor', 'public/build']
|
||||
}, ...compat.extends('standard'), {
|
||||
languageOptions: {
|
||||
globals: {
|
||||
...globals.node
|
||||
}
|
||||
},
|
||||
|
||||
rules: {}
|
||||
}]
|
Loading…
Add table
Add a link
Reference in a new issue