https://github.com/constgen/constgen-eslint
Personal ESLint rules
https://github.com/constgen/constgen-eslint
Last synced: 3 months ago
JSON representation
Personal ESLint rules
- Host: GitHub
- URL: https://github.com/constgen/constgen-eslint
- Owner: constgen
- License: gpl-3.0
- Created: 2020-02-16T22:15:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-08T19:22:37.000Z (over 5 years ago)
- Last Synced: 2025-11-20T03:06:02.497Z (8 months ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @constgen/eslint
This is a preset of ESLint rules that extend and override [@atomspace/eslint](https://github.com/atomspace/atomspace-eslint) Neutrino preset
[![NPM version][npm-image]][npm-url]
[![NPM downloads][npm-downloads]][npm-url]
[![Build Status][build-status]][travis-url]
```bash
npm install --save-dev neutrino eslint @constgen/eslint
```
#### .neutrinorc.js
```js
let eslint = require('@constgen/eslint')
module.exports = {
use: [
eslint({
eslint: {
env: { node: true }
}
})
]
}
```
#### package.json
```json
{
"scripts": {
"eslint": "eslint ./",
"test" : "npm run eslint -- --max-warnings 0",
"lint" : "npm run eslint -- --fix"
}
}
```
#### .eslintrc.js
```js
let neutrino = require('neutrino')
module.exports = neutrino().eslintrc()
```
#### .vscode/settings.json
```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
}
```
[npm-image]: https://img.shields.io/npm/v/@constgen/eslint.svg
[npm-downloads]: https://img.shields.io/npm/dt/@constgen/eslint.svg
[npm-url]: https://npmjs.org/package/@constgen/eslint
[build-status]: https://travis-ci.com/constgen/constgen-eslint.svg?branch=master
[travis-url]: https://travis-ci.com/constgen/constgen-eslint