Installations
npm install eslint-config-typescript-airbnb-prettier-svelte
Developer Guide
Typescript
No
Module System
CommonJS
Min. Node Version
>=8.0.0
Score
60.5
Supply Chain
91.3
Quality
69.9
Maintenance
50
Vulnerability
95.8
License
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Love this project? Help keep it running — sponsor us today! 🚀
Developer
ShaneLucy
Download Statistics
Total Downloads
9,754
Last Day
14
Last Week
68
Last Month
241
Last Year
2,970
GitHub Statistics
17 Commits
2 Watchers
3 Branches
1 Contributors
Updated on Dec 12, 2021
Bundle Size
819.00 B
Minified
480.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.1.3
Package Id
eslint-config-typescript-airbnb-prettier-svelte@1.1.3
Unpacked Size
178.66 kB
Size
49.47 kB
File Count
8
Total Downloads
Cumulative downloads
Total Downloads
9,754
Last Day
1,300%
14
Compared to previous day
Last Week
74.4%
68
Compared to previous week
Last Month
36.2%
241
Compared to previous month
Last Year
-39.5%
2,970
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Eslint, Airbnb, Typescript, Svelte & Prettier Configuration
An eslint configuration that integrates the following into one package for easy installation and setup:
Assumptions
- You have typescript installed
- You have a
tsconfig.json
in your project root - You have installed a version of Node greater than 8
- You have installed npm version 7 or greater
Installation
If you aren't using npm version 7 or greater you will have to manually install these dependencies:
- eslint
- prettier
- prettier-plugin-svelte
- @typescript-eslint/eslint-plugin
Copy everything inside the peer dependencies object here and paste it into your dev dependencies object. This will ensure you have the correct versions installed
Install with npm
1npm install --save-dev eslint-config-typescript-airbnb-prettier-svelte
Setup
Create a .eslintrc.js file in your project root
1touch .eslintrc.js
Paste the following into .eslintrc.js
1module.exports = { 2 extends: "typescript-airbnb-prettier-svelte", 3};
Add the following commands into the scripts object in your package.json
1"lint": "prettier --write . && eslint src/**", 2"lint-fix": "prettier --write . && eslint src/** --fix"
An example scripts object might look like this
1"scripts": { 2 "dev": "vite", 3 "build": "tsc && vite build", 4 "serve": "vite preview", 5 "lint": "prettier --write . && eslint src/**", 6 "lint-fix": "prettier --write . && eslint src/** --fix" 7},
Create an .eslintignore
in your project root
touch .eslintignore
Paste the following into .eslintignore
.eslintrc.js
node_modules/**
Create an .prettierignore
in your project root
touch .prettierignore
Paste the following into .prettierignore
node_modules/**
Usage
1npm run lint
Or to make eslint auto fix any issues it's capable of fixing
1npm run lint-fix
Customisation
This eslint config can be altered and extended by editing .eslintrc.js
Prettier can be altered and extended by creating and modifying .prettierrc

No vulnerabilities found.

No security vulnerabilities found.