Skip to content

Commit 185359c

Browse files
test: refactor
1 parent ee94874 commit 185359c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ yarn-debug.log*
99
/local
1010
/reports
1111
/node_modules
12-
/test/output
12+
/test/outputs
1313

1414
.DS_Store
1515
Thumbs.db

test/eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import { defineConfig } from "eslint/config";
2+
3+
export default defineConfig({
4+
rules: {
5+
"no-unused-vars": "error"
6+
}
7+
});

test/utils/conf.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export default (entry, pluginConf = {}, webpackConf = {}) => {
1414
},
1515
plugins: [
1616
new ESLintPlugin({
17+
overrideConfigFile: join(testDir, "./eslint.config.mjs"),
1718
// this disables the use of .eslintignore, since it contains the fixtures
1819
// folder to skip it on the global linting, but here we want the opposite
1920
// (we only use .eslintignore on the test that checks this)

0 commit comments

Comments
 (0)