@josundt/eslint-config v5.5.1
@josundt/eslint-config
ESLint ruleset including required ESLint plugins for jorundt TypeScript projects
Usage
Make sure you have installed and configured
@josundt/prettier-config
firstInstall this package
npm install @josundt/eslint-config
Create an
.eslintrc
file in the root directory of your project with the following content:{ "extends": ["@josundt"] }
["@josundt"]
is the default configuration for typescript web projects with jasmine unit testsOther configurations:
["@josundt/eslint-config/typescript-web"]
(same as default; only without jasmine linting support).["@josundt/eslint-config/typescript-node-jasmine"]
(same as default; but without browser environment).["@josundt/eslint-config/typescript-node"]
(same as default; but without browser environment and jasmine linting support) .
Add
lint:ts
script to your project's package.json file:{ // ... "scripts": { // ... "lint:ts": "eslint ./src --format visualstudio --ext .ts,.tsx" // ... } // ... }
Test the script:
npm run lint:ts
Live Code Analysis in Visual Studio Code:
- Add a
.eslintignore
file in the root directory of your project with the following content:# Ignore js files; only analyze typescript files: **/*.js
- Install extension for VSCode: ESLint (dbaeumer.vscode-eslint)
- Add a
4 months ago
4 months ago
9 months ago
9 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago