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

@mkaradeniz/eslint-config

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mkaradeniz/eslint-config

Personal ESLint Configuration.

  • 3.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@mkaradeniz/eslint-config

Personal ESLint Configuration.

Installation

yarn add -D @mkaradeniz/eslint-config
npx install-peerdeps --dev @mkaradeniz/eslint-config

Add following script to the package.json:

"lint": "eslint --ext .js \"./src/\" --fix",

Create a .eslintrc.js with the following content:

module.exports = {
  extends: [require.resolve('@mkaradeniz/eslint-config')],
}

GraphQL

To use the graphql plugin:

yarn add -D eslint-plugin-graphql
yarn add -D graphql # if not installed yet

Add the plugin to the .eslintrc.js plugins:

plugins: ['graphql']

Add the following to the .eslintrc.js rules:

rules: {
		'graphql/template-strings': [
			'error',
			{
				env: 'apollo',
				schemaJsonFilepath: path.resolve(__dirname, './schema.json'), // Don't forget: `const path = require('path');`
				tagName: 'gql',
			},
		],
  },

FAQs

Package last updated on 29 Nov 2019

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