1.0.0 • Published 5 years ago

constgen-eslint v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
5 years ago

@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"]
}
1.0.0

5 years ago