audacia-playwright-eslint-config v1.0.0
audacia-eslint-config
The @audacia/playwright-eslint-config npm package contains some default ESLint configuration Playwright TypeScript projects.
Getting started
First, install the package from the private npm feed:
npm install @audacia/playwright-eslint-config --save-dev
Next, modify your ESLint config file (usually either .eslintrc.js or .eslintrc.json) to extend the Audacia Playwright ESLint config package by adding it to the extends property. You also need to tell ESLint where your TypeScript configuration is located (i.e. your tsconfig.json file):
For example, in .eslintrc.json this may look something like:
"extends": [
'@audacia/playwright-eslint-config'
],
"parserOptions": {
"project": './tsconfig.json'
}Finally, ensure that your code editor is set up to use ESLint.
The eslint-config-airbnb-typescript library has useful documentation describing how it should be used together with various troubleshooting tips.
Editing This Package
- After making changes to this package, use
npm packto create a local package, and then usenpm i {path to package} --install-linksto test in a consuming app.
2 years ago