1.10.0 • Published 3 years ago
eslint-config-manpacker-typescript v1.10.0
Explain
This project uses parser "@typescript-eslint/parser" And plugin "@typescript-eslint". Inherits "typescript", "manpacker"
Install
Rely on "eslint", "typescript"
npm install eslint typescript eslint-config-manpacker-typescript -D
Usage
- Add .eslintrc file to your project. Or .eslintrc file does not exist, Create a new file.
npx eslint --init
Configuration content of file.
{
"extends": ["manpacker-typescript"]
}
- You can add a configuration entry to the package.json file as follows.
"eslintConfig": {
"extends": ["manpacker-typescript"]
}
Refer to the following configuration. Example:
"eslintConfig": {
"root": true,
"extends": ["manpacker-typescript"],
"parserOptions": {
"project": "./tsconfig.json",
},
"rules": {}
}