🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Sign inDemoInstall
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

3.2.0
latest
Source
npm
Version published
Weekly downloads
4
-60%
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 eslint = require('@constgen/eslint')

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

package.json

{
   "scripts": {
      "eslint": "eslint ./",
      "test"  : "npm run eslint -- --max-warnings 0",
      "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", ".vue", ".json", ".jsonc", ".json5", ".json6"],
      "resolvePluginsRelativeTo": "./node_modules/.pnpm"
   },
   "eslint.validate"          : ["javascript", "javascriptreact", "html", "markdown", "vue", "json", "jsonc", "json5", "json6"],
   "vetur.validation.template": false
}

Keywords

neutrino

FAQs

Package last updated on 08 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