1.3.0 • Published 3 years ago
eslint-config-ts-anaet v1.3.0
Eslint Prettier Typescript Config for Node.js
Installing
Local Project Install
- If you don't already have a
package.jsonfile, create one withnpm init. - Then install everything needed by the config:
npx install-peerdeps --dev eslint-config-ts-anaet- If you have successfully installed. Then create a
.eslintrcor.eslintrc.jsfile in the root of your project's directory (it should live where package.json does). Your.eslintrcor.eslintrc.jsfile should look like this:
{
"extends": ["ts-anaet"],
"parserOptions": {
"project": ["tsconfig.json"]
}
}or
module.exports = {
extends: ["ts-anaet"],
parserOptions: {
project: ["tsconfig.json"]
}
};- You can add two scripts to your
package.jsonto lint and/or fix:
"scripts": {
"lint": "eslint '*/**/*.{js,ts}' --quiet",
"lint:fix": "eslint '*/**/*.{js,ts}' --quiet --fix"
},