8000 GitHub - tcg/eslint-config: testing a shared eslint config
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tcg/eslint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

Install this package from npm

Set up ignore patterns

Project specific paths leave it up to you to determine what files or directories might need to be ignored by ESLint.

You should set ignorePatterns or an .eslintignore file as necessary, per the ESLint documentation.

Add Prettier config manually (required)

Since ESLint config can't control Prettier configuration, we'll have to put our specific Prettier options in a .prettierrc file, or in our package.json file. More specifics about Prettier config available here.

Here's our Prettier config, as it would be added to the root of a package.json:

{
  "prettier": {
    printWidth: 80,
    trailingComma: "all",
    tabWidth: 2,
    semi: false,
    arrowParens: "always",
    singleQuote: true,
    jsxSingleQuote: false
  }
}

Configure your editor to use it

VSCode

Sublime

vi

Usage

References

About

testing a shared eslint config

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0