Skip to content

ESLint and Prettier Config from CofCat for JavaScript project

Notifications You must be signed in to change notification settings

CofCat456/eslint-config-cofcat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eslint-config-cofcat

Installation

# install the eslint-config-cofcat
npm install -D eslint-config-cofcat
# install necessary package
npm install -D eslint
npm install -D eslint-import
npm install -D eslint-config-airbnb
npm install -D prettier

Usage

Setup Configuration of Prettier

Prettier is used for formatting code with project

Just copy file in your project, then will working;

// prettier.config.js
module.exports = {
  printWidth: 100,
  tabWidth: 2,
  useTabs: false,
  semi: true,
  singleQuote: true,
  quoteProps: 'as-needed',
  jsxSingleQuote: false,
  trailingComma: 'all',
  bracketSpacing: true,
  bracketSameLine: false,
  arrowParens: 'always',
};

How To Use

Extends the config with the extends field in eslint config.

// .eslintrc
{
  "extends": ["cofcat"]
}

Inspired By

About

ESLint and Prettier Config from CofCat for JavaScript project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published