eslint-plugin-artefactor

0.3.0 • Public • Published

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 typescript

Next, install eslint-plugin-artefactor:

npm install eslint-plugin-artefactor --save-dev

Next, install all peerDependencies for this plugin:

npx install-peerdeps eslint-plugin-artefactor

Usage

  1. Add artefactor to the extends or plugins section of your .eslintrc configuration file. You can omit the eslint-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"
       ]
     }
  2. If you don't have a .prettierrc config, please add it

    {
      "singleQuote": true,
      "printWidth": 140,
      "useTabs": false,
      "tabWidth": 2,
      "trailingComma": "all",
      "semi": false
    }
    

Package Sidebar

Install

npm i eslint-plugin-artefactor

Weekly Downloads

25

Version

0.3.0

License

MIT

Unpacked Size

17.7 kB

Total Files

15

Last publish

Collaborators

  • explay97