Socket
Socket
Sign inDemoInstall

eslint-config-foray1010

Package Overview
Dependencies
12
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-config-foray1010

my own ESLint config


Version published
Weekly downloads
36
decreased by-64.71%
Maintainers
1
Install size
23.0 MB
Created
Weekly downloads
 

Changelog

Source

8.0.0 (2019-08-16)

⚠ BREAKING CHANGES

  • require eslint ^6 & remove babel-node, react preset
  • deps: require node >=8.9

Bug Fixes

  • only run eslint-plugin-html on frontend preset (08e771f)

Features

  • deps: update dependency eslint-config-airbnb to v18 (#177) (d79b3b4)
  • add typescript-react preset (b6c05aa)
  • support eslint v6 (b12f28a)

Readme

Source

eslint-config-foray1010

Build Status

node npm npm

Versioning

X.Y.Z

X for upgrading eslint or node engine (breaking changes)

Y for adding rules/options (more strict)

Z for removing rules/options (more loose)

Installation

on your repository

  • If you want to install in the existing repository:

    1. npm install --save-dev eslint eslint-config-foray1010

    2. Create a .eslintrc.yml in the project root

      # for general purpose
      extends: "eslint-config-foray1010"
      
      # for general purpose with typescript support
      extends: "eslint-config-foray1010/typescript"
      
      # for frontend react project with typescript support
      extends: "eslint-config-foray1010/typescript-react"
      

on your editor

  1. For Atom:

    • Install in terminal by apm install linter linter-eslint
  2. For PhpStorm or WebStorm:

    • Languages & Frameworks -> JavaScript -> choose ECMAScript 6 for JavaScript language version
    • Preference -> Plugins -> click Browse repositories... -> search ESLint -> click Install plugin
    • Preference -> Languages & Frameworks -> JavaScript -> Code Quality Tools -> ESLint -> check Enable
  3. For Sublime Text 3:

    • Install Package Control
    • Install SublimeLinter and SublimeLinter-contrib-eslint by Package Control
  4. For vim or neovim:

    • Install benekastah/neomake by any plugin manager, such as vim-plug

    • Add the following lines to ~/.vimrc (vim) or ~/.config/nvim/init.vim (neovim)

      autocmd BufWrite * :Neomake
      
      let g:neomake_javascript_enabled_makers= ['eslint']
      
      " load local eslint in the project root
      " modified from https://github.com/mtscout6/syntastic-local-eslint.vim
      let s:eslint_path = system('PATH=$(npm bin):$PATH && which eslint')
      let g:neomake_javascript_eslint_exe = substitute(s:eslint_path, '^\n*\s*\(.\{-}\)\n*\s*$', '\1', '')
      
  5. For vscode:

Keywords

FAQs

Last updated on 16 Aug 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc