Skip to content

Commit

Permalink
chore: drop implicit options
Browse files Browse the repository at this point in the history
  • Loading branch information
SethFalco committed May 26, 2024
1 parent 15d8050 commit 45345f1
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
import js from '@eslint/js';
import globals from 'globals';

/** @type {import('eslint').Linter.FlatConfig[]} */
/**
* @typedef {import('eslint').Linter.FlatConfig} FlatConfig
*/

/** @type {FlatConfig[]} */
export default [
// global ignores
{
ignores: [
'.yarn/**',
Expand All @@ -18,7 +21,6 @@ export default [
{
languageOptions: {
ecmaVersion: 2021,
sourceType: 'module',
globals: {
...globals.nodeBuiltin,
},
Expand All @@ -34,16 +36,9 @@ export default [
strict: 'error',
},
},
{
files: ['**/*.cjs'],
languageOptions: {
sourceType: 'commonjs',
},
},
{
files: ['**/*.test.js'],
languageOptions: {
sourceType: 'module',
globals: {
...globals.jest,
},
Expand Down

0 comments on commit 45345f1

Please sign in to comment.