Skip to content

eslint-config-gelt 1.0.5

Install from the command line:
Learn more about npm packages
$ npm install @opencoverdefi/eslint-config-gelt@1.0.5
Install via package.json:
"@opencoverdefi/eslint-config-gelt": "1.0.5"

About this version

eslint-config-gelt

ESLint Typescript shareable config for Gelt's coding style

Install

Make sure you have already installed eslint and typescript as they are required packages.

yarn add -D eslint-config-gelt

Then, add this to your .eslintrc.js:

module.exports = {
	extends: "gelt",
	rules: {
		// your overrides
	},
};

Usage for React

Adjust your .eslintrc.js like this:

module.exports = {
	extends: "gelt/with-react",
	rules: {
		// your overrides
	},
};

Add to .eslintignore certain files, for example:

*.css
*.svg

(Optional) Add .prettierc.json with this preferred configuration

{
    "printWidth": 100,
    "trailingComma": "es5",
    "tabWidth": 4,
    "semi": true,
    "singleQuote": true
}

(Optional) Linting with vscode

If you are using vscode this .vscode/settings.json file may come in handy:

{
    "editor.defaultFormatter": "dbaeumer.vscode-eslint",
    "editor.formatOnSave": true,
    "eslint.alwaysShowStatus": true,
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "editor.rulers": [100]
}

Details


Assets

  • eslint-config-gelt-1.0.5.tgz

Download activity

  • Total downloads 0
  • Last 30 days 0
  • Last week 0
  • Today 0

Recent versions

View all