1.3.0 • Published 3 years ago

eslint-config-ts-anaet v1.3.0

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

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"
},
1.2.0

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago

1.3.0

3 years ago

1.1.2

3 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.4

5 years ago

0.0.1

5 years ago