0.3.0 • Published 2 years ago
eslint-plugin-artefactor v0.3.0
eslint-plugin-artefactor
A comprehensive linting solution that sweeps your code clean. Fly through your codebase with ease and precision!
Table of Contents
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
npm i typescriptNext, install eslint-plugin-artefactor:
npm install eslint-plugin-artefactor --save-devNext, install all peerDependencies for this plugin:
npx install-peerdeps eslint-plugin-artefactorUsage
Add
artefactorto the extends or plugins section of your.eslintrcconfiguration file. You can omit theeslint-plugin-prefix:{ "parser": "@typescript-eslint/parser", "parserOptions": { "ecmaVersion": 13, "sourceType": "module", "ecmaFeatures": { "jsx": true, "modules": true, "experimentalObjectRestSpread": true } }, "ignorePatterns": [ "**/*", "node_modules" ], "settings": { "react": { "pragma": "React", "fragment": "Fragment", "version": "detect" }, "import/resolver": { "typescript": { "alwaysTryTypes": true } } }, "extends": [ "plugin:artefactor/recommended" ], "plugins": [ "artefactor" ] }If you don't have a
.prettierrcconfig, please add it{ "singleQuote": true, "printWidth": 140, "useTabs": false, "tabWidth": 2, "trailingComma": "all", "semi": false }