Flitto Typescript Style Guide
npm@>=7
npm install --save-dev eslint-config-flitto-typescript@latest
(npm@<7 is not supported)
Create .eslintrc.json
file at the top of the project directory like below.
{
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": "flitto-typescript",
"rules": {
}
}
- Open
Preferences
( ⌘ + ,) -
Language & Frameworks
▸javascript Code
▸Quality tools
▸Eslint
- Select
Manual ESLint Configuration
- ESLint package:
/{project_path}/node_modules/eslint
- Configuration file:
/{project_path}/.eslintrc.json
- ESLint package:
- (Optional) check
Run eslint --fix on save
- Click
OK
- Configuring Rules
- Disabling Rules
- Sample Files (You can apply eslint to these files)