Skip to content

Commit

Permalink
chore: Update ESLint config (#124)
Browse files Browse the repository at this point in the history
* Update @jgarber/eslint-config and globals packages

* Update and simplify ESLint config
  • Loading branch information
jgarber623 authored Oct 5, 2023
1 parent 9ca49bc commit beb4bff
Show file tree
Hide file tree
Showing 3 changed files with 873 additions and 125 deletions.
22 changes: 5 additions & 17 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,31 +1,19 @@
import ava from '@jgarber/eslint-config/ava';
import config from '@jgarber/eslint-config';
import globals from 'globals';

import pluginAva from 'eslint-plugin-ava';

export default [
...config,
{
ignores: ['dist']
ignores: ['coverage', 'dist']
},
...config,
...ava,
{
files: ['src/**/*.?(m)js'],
files: ['src/*.js', 'test/*.js'],
languageOptions: {
globals: {
...globals.browser
}
}
},
{
files: ['test/**/*.?(m)js'],
languageOptions: {
globals: {
...globals.browser
}
},
plugins: {
ava: pluginAva
},
rules: pluginAva.configs.recommended.rules
}
];
Loading

0 comments on commit beb4bff

Please sign in to comment.