Skip to content

Commit

Permalink
chore: rename eslint.config.mjs and update config
Browse files Browse the repository at this point in the history
  • Loading branch information
seia-soto committed Oct 23, 2024
1 parent c753f08 commit 6e89d97
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 4 additions & 1 deletion eslint.config.mjs → eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import pluginPrettier from 'eslint-plugin-prettier/recommended';

export default [
{
files: ['**/*.{js,mjs}'],
files: ['**/*.js'],
languageOptions: {
globals: {
...globals.node,
Expand All @@ -18,4 +18,7 @@ export default [
},
pluginJs.configs.recommended,
pluginPrettier,
{
ignores: ['node_modules/*', 'dist/*'],
},
];
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
"author": "Ghostery GmbH.",
"description": "Converts urlfilters to DNR format",
"license": "GPL-3.0",
"type": "module",
"scripts": {
"build": "bun ./scripts/build.js",
"serve": "bun --watch scripts/serve.js",
"test.unit": "bun test test/unit",
"test.e2e": "playwright test test/e2e/index.spec.js",
"lint": "eslint src/ scripts/ test/ *.{js,mjs}"
"lint": "eslint"
},
"dependencies": {
"@adguard/scriptlets": "^1.12.1",
Expand Down

0 comments on commit 6e89d97

Please sign in to comment.