0.11.0 • Published 4 years ago

eslint-config-adrian-typescript-base v0.11.0

Weekly downloads
2
License
MIT
Repository
github
Last release
4 years ago

Digital Natives Base ESLint and Prettier Config

Usage

  1. Install the dependencies with
npx install-peerdeps --dev @digital-natives/eslint-config-digitalnatives-typescript-base

If you use yarn, run

npm info @digital-natives/eslint-config-digitalnatives-typescript-base@latest peerDependencies

then run yarn add --dev <dependency>@<version> for each listed peer dependency.

  1. Create a .eslintrc file in the root directory and add
{
  "extends": "@digital-natives/digitalnatives-typescript-base"
}

Add these scripts in the package.json file

"scripts": {
    "lint": "eslint . --ext .js,.ts",
    "lint:fix": "eslint --fix . --ext .js,.ts"
},

VSCode configuration

  1. Install ESLint package
  2. Add these to your VSCode settings file
 "editor.formatOnSave": true,
 "[javascript]": {
   "editor.formatOnSave": false
 },
 "[typescript]": {
   "editor.formatOnSave": false
 },
 "editor.codeActionsOnSave": {
   "source.fixAll": true
 },
 "prettier.disableLanguages": [
    "javascript",
    "typescript",
  ],
0.10.0

4 years ago

0.11.0

4 years ago

0.9.0

4 years ago

0.8.0

4 years ago

0.5.0

4 years ago

0.7.0

4 years ago

0.6.0

4 years ago

0.4.0

4 years ago

0.3.0

4 years ago

0.0.0

4 years ago