Skip to content

smokecat/eslint-config-smoke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-smoke

Usage

Install dependency

$ npm i -D eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser

Install through npm

$ npm i -D eslint-config-smoke

Edit file .eslintrc.js

// .eslintrc.js

module.exports = {
  extends: 'smoke',
  rules: {
    // override rules
  },
};

Optional

Prettier

Install dependency

$ npm i -D prettier eslint-config-prettier

Edit file .prettierrc

{
  "singleQuote": true,
  "printWidth": 120,
  "proseWrap": "preserve",
  "useTabs": false,
  "tabWidth": 2,
  "trailingComma": "all",
  "endOfLine": "lf",
  "semi": true,
  "quoteProps": "consistent",
  "arrowParens": "avoid",
  "bracketSpacing": true
}