eslint-config-riskforge
v0.3.0
Published
Standard linting rules used at RiskForge
Downloads
21
Keywords
Readme
RiskForge ESLint Standard Config
Usage
Install dependencies
npm i --save-dev \ @typescript-eslint/eslint-plugin \ @typescript-eslint/parser \ eslint \ eslint-config-airbnb \ eslint-config-airbnb-typescript \ eslint-plugin-eslint-comments \ eslint-plugin-import \ eslint-plugin-jest \ eslint-plugin-jsx-a11y \ eslint-plugin-lodash-fp \ eslint-plugin-promise \ eslint-plugin-react \ eslint-plugin-react-hooks \ eslint-plugin-unicorn
Add eslint config to
package.json
"eslintConfig": { "extends": "riskforge", "parserOptions": { "project": "./tsconfig.json" } }
Consider updating
.vscode/extensions.json
{ "recommendations": [ "esbenp.prettier-vscode", "editorconfig.editorconfig", "dbaeumer.vscode-eslint" ] }
Consider updating your
.vscode/settings.json
{ "cSpell.words": ["riskforge"], "eslint.enable": true, "tslint.enable": false, "editor.formatOnSave": true, "editor.formatOnType": true, "editor.formatOnPaste": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.organizeImports": false }, "eslint.lintTask.enable": false, "eslint.codeAction.showDocumentation": { "enable": true }, "eslint.codeActionsOnSave.mode": "all", "eslint.packageManager": "npm", "eslint.run": "onType", "eslint.quiet": false, "eslint.probe": [ "typescript", "markdown", "javascript", "typescriptreact", "javascriptreact" ], "files.exclude": { "**/.eslintcache": true }, "search.exclude": { "**/.eslintcache": true }, "javascript.preferences.importModuleSpecifier": "auto", "typescript.preferences.importModuleSpecifier": "auto", "javascript.preferences.quoteStyle": "single", "typescript.preferences.quoteStyle": "single", "editor.defaultFormatter": "esbenp.prettier-vscode", "[javascript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[javascriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[typescript]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "[typescriptreact]": { "editor.defaultFormatter": "dbaeumer.vscode-eslint" }, "eslint.lintTask.options": "--ext .js,.jsx,.ts,.tsx ." }