@jsonxr/eslint-config
My eslint and prettier configurations
Last updated 3 months ago by jsonxr .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @jsonxr/eslint-config 
SYNC missed versions from official npm registry.

eslint-config

This is a global style preference that enforces consistent formatting. If used with vscode

npm run lint
npm run lint -- --fix

Project Configuration

  1. The following command will perform an npm install and create all the configuration files you need

    npx @jsonxr/eslint-config
    
  2. Add the following to your package.json file

    {
      "scripts": {
        "lint": "eslint 'src/**/*.*' index.js"
      }
    }
    

Files

.eslintrc.js

module.exports = { extends: '@jsonxr' };

.prettierrc.js

module.exports = '@jsonxr/eslint-config/prettier';

vscode

  1. Install prettier plugin - To install the prettier plugin, in quick open (cmd+p), run the following command:

    ext install esbenp.prettier-vscode
    
  2. Configure project - Add .vscode/settings.json to project to ensure that every cmd+s get's prettiefied. The npx command creates this for you so you just need to check it in. If you already have project settings, need to add these.

    .vscode/settings.json

    {
      "prettier.configPath": ".prettierrc.js",
      "editor.formatOnSave": true
    }
    

Current Tags

  • 1.0.2-alpha.1                                ...           alpha (3 months ago)
  • 1.0.2                                ...           latest (3 months ago)

33 Versions

  • 1.0.2                                ...           3 months ago
  • 1.0.2-alpha.1                                ...           3 months ago
  • 1.0.1                                ...           3 months ago
  • 1.0.1-alpha.13                                ...           3 months ago
  • 1.0.1-alpha.12                                ...           3 months ago
  • 1.0.1-alpha.11                                ...           3 months ago
  • 1.0.1-alpha.10                                ...           3 months ago
  • 1.0.1-alpha.9                                ...           3 months ago
  • 1.0.1-alpha.8                                ...           3 months ago
  • 1.0.1-alpha.7                                ...           3 months ago
  • 1.0.1-alpha.6                                ...           3 months ago
  • 1.0.1-alpha.5                                ...           3 months ago
  • 1.0.1-alpha.4                                ...           3 months ago
  • 1.0.1-alpha.3                                ...           3 months ago
  • 1.0.1-alpha.2                                ...           3 months ago
  • 1.0.1-alpha.1                                ...           3 months ago
  • 1.0.0                                ...           3 months ago
  • 1.0.0-alpha.19                                ...           3 months ago
  • 1.0.0-alpha.17                                ...           3 months ago
  • 1.0.0-alpha.16                                ...           3 months ago
  • 1.0.0-alpha.15                                ...           3 months ago
  • 1.0.0-alpha.14                                ...           3 months ago
  • 1.0.0-alpha.12                                ...           3 months ago
  • 1.0.0-alpha.11                                ...           3 months ago
  • 1.0.0-alpha.10                                ...           3 months ago
  • 1.0.0-alpha.9                                ...           3 months ago
  • 1.0.0-alpha.8                                ...           3 months ago
  • 1.0.0-alpha.7                                ...           3 months ago
  • 1.0.0-alpha.6                                ...           3 months ago
  • 1.0.0-alpha.5                                ...           3 months ago
  • 1.0.0-alpha.4                                ...           3 months ago
  • 1.0.0-alpha.3                                ...           3 months ago
  • 1.0.0-alpha.2                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 33
This Month 33
Last Day 0
Last Week 0
Last Month 1
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |