playwright-dompath
Version:
Retrieve xpath and css selector paths from ElementHandle and Locator objects in Playwright
28 lines (27 loc) • 726 B
JavaScript
module.exports = {
root: true,
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint", "import"],
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
// "airbnb-base",
"prettier",
],
rules: {
// turn on errors for missing imports
"import/no-unresolved": "error",
},
settings: {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"],
},
"import/resolver": {
typescript: {
alwaysTryTypes: true, // always try to resolve types under `<root>@types` directory even it doesn't contain any source code, like `@types/unist`
},
},
},
};