Skip to content

Commit 96201d6

Browse files
authored
fix(tools): resolve airbnb-base eslint config from tools package location (#13575)
Using `"extends": "airbnb-base"` made ESLint look for the package in the consuming project's node_modules instead of the tools package. This forced external projects to add `eslint-config-airbnb-base` as their own dependency. Using `require.resolve` fixes this by loading it directly from the tools package.
1 parent 9bc26b1 commit 96201d6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/tools/components-package/eslint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ module.exports = {
6666
"es6": true
6767
},
6868
"root": true,
69-
"extends": "airbnb-base",
69+
"extends": require.resolve("eslint-config-airbnb-base"),
7070
"overrides": tsMode ? getTsModeOverrides() : [],
7171
"parserOptions": {
7272
"ecmaVersion": 2018,

0 commit comments

Comments
 (0)