Config for FTTS Typescript projects
Supports basic node/mocha environments
Rules: Airbnb style rules: ESLint recommended TS rules: ESLint recommended TS type-checking rules: Node security plugin rules: Mocha testing rules ?
As per ESLint's shareable config guidelines, this package just exposes the config You will need to additionally install peer dependencies as dev dependencies in the consuming project "eslint": ">=6.8.0", "@typescript-eslint/parser": ">=2.16.0", "@typescript-eslint/eslint-plugin": ">=2.17.0", "eslint-plugin-security": ">=1.4.0", "eslint-plugin-import": ">=2.20.0"
You can install everything in one go with this npx shortcut:
- npx install-peerdeps --dev eslint-config-pjb-test
Add to your project with a basic .eslintrc: { extends: 'project-name' }
You can extend this further to tailor your project/customise rules
Also need to add an .eslintignore separately to specify files/dirs you want to ignore (node_modules/ is ignored by default) // or can add ignorePatterns: ['coverage/', 'dist/', 'migrations/'] to the .eslintrc
Only compat with >npm3 and should ensure all dependencies are uninstalled as may cause a conflict