Package Exports
- eslint-config-flitto-typescript
- eslint-config-flitto-typescript/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (eslint-config-flitto-typescript) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
eslint-config-flitto-typescript
Flitto Typescript Style Guide
Get Started
1. Installing packages
npm install --save-dev eslint-config-flitto-typescript@latest2. Create Eslint configuration file
Create eslint.config.mjs file at the top of the project directory like below.
(Packages with "type": "module" can also use eslint.config.js)
import { defineConfig } from 'eslint/config'
import eslintConfigFlittoTypescript from 'eslint-config-flitto-typescript'
export default defineConfig([
{
extends: [eslintConfigFlittoTypescript],
rules: {
// Define custom rules for each project here.
}
},
])Configuration On WebStorm
- Open
Preferences( ⌘ + ,) Language & Frameworks▸javascript Code▸Quality tools▸Eslint- Select
Manual ESLint Configuration(or you can also chooseAutomatic ESLint Configuration)- ESLint package:
/{project_path}/node_modules/eslint - Configuration file:
/{project_path}/eslint.config.mjs
- ESLint package:
- (Optional) check
Run eslint --fix on save - Click
OK
Rules
Flags
- Configure Rules
- Disabling Rules
- Sample Files (You can apply eslint to these files)