Skip to content

Commit

Permalink
Fixes #1868: "eslint.onIgnoredFiles" seems not working on v3.0.10 (#1871
Browse files Browse the repository at this point in the history
)
  • Loading branch information
dbaeumer authored Jun 17, 2024
1 parent b16d849 commit 39fdaf9
Show file tree
Hide file tree
Showing 7 changed files with 90 additions and 348 deletions.
3 changes: 3 additions & 0 deletions playgrounds/9.0/flat/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"eslint.onIgnoredFiles": "warn"
}
2 changes: 1 addition & 1 deletion playgrounds/9.0/flat/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ function bar() {
function foo(x) {
console.log(x);
bar();
var x = 10;
var x = 10;;;;
console.log(undef);
}
12 changes: 12 additions & 0 deletions playgrounds/9.0/flat/dist/ignore.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
function bar() {
if (foo) {
foo++;
}
}

function foo(x) {
console.log(x);
bar();
var x = 10;;;;
console.log(undef);
}
3 changes: 3 additions & 0 deletions playgrounds/9.0/flat/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
const globals = require('globals');

module.exports = [
{
ignores: ['dist/**']
},
{
files: ["**/*.js"],
languageOptions: {
Expand Down
Loading

0 comments on commit 39fdaf9

Please sign in to comment.