Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-simplifield

Package Overview
Dependencies
Maintainers
5
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-simplifield

Simplifield Lint rules

  • 12.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
160
increased by263.64%
Maintainers
5
Weekly downloads
 
Created
Source

eslint-config-simplifield

NPM version Build status CodeFactor Dependency Status Dependency Status devDependency Status

ESLint configuration at Simplifield.

To use those rules in your projects, first, install it as a development dependency and than add it to your .eslintrc file.

It will automatically append the SimpliField rules to your project.

Theses are our own rules but you can require a reconsideration of a rule by creating an issue which name is the rule you wanna change.

See shareable configs documentation for more infos.

Usage

Sample .eslintrc using this plugin:

{
  "extends": "eslint-config-simplifield",
  "env": {
    "node": true,
    "mocha": true
  },
  "globals": {
    "require": false,
    "describe": false,
    "beforeEach": false,
    "afterEach": false,
    "before": false,
    "after": false,
    "it": false,
    "sinon": false,
    "module": false
  },
  "plugins": [
    "mongodb"
  ]
}

A .eslintrc for frontend with react & flow:

{
  "extends": "eslint-config-simplifield",
  "plugins": [ "react", "flowtype" ],
  "parser": "babel-eslint",
  "parserOptions": {
    "ecmaFeatures": {
      "jsx": true
    }
  },
  "rules": {
    "react/jsx-uses-vars": "error",
    "react/jsx-uses-react": "error",
    "keyword-spacing": ["error", { "before": true }],
    "arrow-parens": ["error", "as-needed"],
    "operator-linebreak": "off",
    "no-mixed-operators": "off",
    "newline-per-chained-call": "off",
    "indent": "off"
  }
}

License

MIT

Keywords

FAQs

Package last updated on 16 Feb 2021

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc