@constgen/eslint
v3.2.0
Published
Personal Neutrino preset with ESLint rules
Downloads
12
Maintainers
Readme
@constgen/eslint
This is a preset of ESLint rules that extend and override @atomspace/eslint Neutrino preset
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
}