eslint-config-ts-anaet

1.3.0 • Public • Published

Eslint Prettier Typescript Config for Node.js

Installing

Local Project Install

  1. If you don't already have a package.json file, create one with npm init.
  2. Then install everything needed by the config:
npx install-peerdeps --dev eslint-config-ts-anaet
  1. If you have successfully installed. Then create a .eslintrc or .eslintrc.js file in the root of your project's directory (it should live where package.json does). Your .eslintrc or .eslintrc.js file should look like this:
{
  "extends": ["ts-anaet"],
  "parserOptions": {
    "project": ["tsconfig.json"]
  }
}

or

module.exports = {
  extends: ["ts-anaet"],
  parserOptions: {
    project: ["tsconfig.json"]
  }
};
  1. You can add two scripts to your package.json to lint and/or fix:
"scripts": {
  "lint": "eslint '*/**/*.{js,ts}' --quiet",
  "lint:fix": "eslint '*/**/*.{js,ts}' --quiet --fix"
},

Package Sidebar

Install

npm i eslint-config-ts-anaet

Weekly Downloads

0

Version

1.3.0

License

MIT

Unpacked Size

6.12 kB

Total Files

6

Last publish

Collaborators

  • anaetrezve