Skip to content

Commit

Permalink
Update eslint.config.mjs
Browse files Browse the repository at this point in the history
  • Loading branch information
asamuzaK committed Sep 29, 2024
1 parent 1811b10 commit 7041fcc
Showing 1 changed file with 13 additions and 18 deletions.
31 changes: 13 additions & 18 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,31 @@ import importX from 'eslint-plugin-import-x';
import jsdoc from 'eslint-plugin-jsdoc';
import regexp from 'eslint-plugin-regexp';
import unicorn from 'eslint-plugin-unicorn';
import neostandard, { plugins as neostdplugins } from 'neostandard';
import globals from 'globals';
import neostandard, { plugins as neostdplugins } from 'neostandard';

export default [
{
ignores: ['src/lib', 'src/web-ext-config.cjs']
},
jsdoc.configs['flat/recommended'],
regexp.configs['flat/recommended'],
...neostandard({
semi: true
}),
jsdoc.configs['flat/recommended'],
regexp.configs['flat/recommended'],
{
plugins: {
'@stylistic': neostdplugins['@stylistic'],
'import-x': importX,
regexp,
unicorn
},
linterOptions: {
reportUnusedDisableDirectives: true
},
languageOptions: {
globals: {
...globals.browser,
...globals.node,
...globals.webextensions
},
ecmaVersion: 'latest',
sourceType: 'module'
}
},
linterOptions: {
reportUnusedDisableDirectives: true
},
plugins: {
'@stylistic': neostdplugins['@stylistic'],
'import-x': importX,
regexp,
unicorn
},
rules: {
'@stylistic/space-before-function-paren': ['error', {
Expand Down

0 comments on commit 7041fcc

Please sign in to comment.