🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@constgen/eslint

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@constgen/eslint

Personal Neutrino preset with ESLint rules

1.0.0
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

@constgen/eslint

This is a preset of ESLint rules that extend and override @atomspace/eslint Neutrino preset

NPM version NPM downloads Build Status

npm install --save-dev neutrino eslint @constgen/eslint

.neutrinorc.js

let constgenEslint = require('@constgen/eslint')

module.exports = {
   use: [
      constgenEslint({
         eslint: {
            env: { node: true }
         }
      })
   ]
}

package.json

{
   "scripts": {
      "eslint": "eslint ./ --ext .js,.jsx,.html,.md --max-warnings 0 --format codeframe",
      "pretest": "npm run eslint",
      "lint": "npm run eslint -- --fix"
   }
}

.eslintrc.js

let neutrino = require('neutrino')

module.exports = neutrino().eslintrc()

.vscode/settings.json

{
   "editor.insertSpaces": false,
   "editor.detectIndentation": false,
   "jshint.enable": false,
   "eslint.enable": true,
   "editor.formatOnSave": false,
   "editor.codeActionsOnSave": {
      "source.fixAll.eslint": true
   },
   "javascript.format.enable": true,
   "javascript.validate.enable": false,
   "files.eol": "\n",
   "files.insertFinalNewline": false,
   "[markdown]": {
      "editor.tabSize": 3,
      "editor.insertSpaces": true
   },
   "eslint.options": {
      "extensions": [".js", ".jsx", ".html", ".md"]
   },
   "eslint.validate": ["javascript", "javascriptreact", "html", "markdown"]
}

Keywords

neutrino

FAQs

Package last updated on 17 Feb 2020

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