This package has been deprecated

Author message:

practice

eslint-config-adrian

0.13.0 • Public • Published

Digital Natives ESLint and Prettier Config

Usage

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

If you use yarn, run

npm info @digital-natives/eslint-config-digitalnatives@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"]
}

Add these scripts in the package.json file

"scripts": {
    "lint": "eslint .",
    "lint:fix": "eslint . --fix"
},

VSCode configuration

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

Readme

Keywords

none

Package Sidebar

Install

npm i eslint-config-adrian

Weekly Downloads

0

Version

0.13.0

License

MIT

Unpacked Size

3.04 kB

Total Files

6

Last publish

Collaborators

  • adrianfarkas