3.0.4 • Published 4 months ago

@stutzlab/eslint-config v3.0.4

Weekly downloads
-
License
-
Repository
-
Last release
4 months ago

eslint-config

ESLint rules in 'Golang style' used by most of our projects.

Usage

  • Run yarn add -D @stutzlab/eslint-config

  • Create file .eslintrc.js in your module folder with contents

module.exports = {
  parserOptions: {
    // needed by some typescript rules
    project: ['./tsconfig.eslint.json'],
    tsconfigRootDir: __dirname,
  },
  extends: '@stutzlab/eslint-config',
};
  • These rules will already embed basic prettier configurations and you won't need to add anything to your project for prettier, as it will run through eslint plugin.

If using VSCode

  • Add to .vscode/extensions.json
{
  "recommendations": [
    "dbaeumer.vscode-eslint"
  ]
}

This will recommend to developers the installation of eslint plugin which will show errors and fix them in VSCode.

  • Add to .vscode/settings.json:
{
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "eslint.validate": [
    "javascript"
  ]
}

This will fix errors when you save in VSCode editor.

3.0.4

4 months ago

3.0.3

4 months ago

3.0.2

4 months ago

3.0.0

5 months ago

2.3.0

1 year ago

2.4.0

1 year ago

2.1.2

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.1.4

1 year ago

2.1.3

1 year ago

2.1.5

1 year ago

1.2.0

1 year ago

1.2.1

1 year ago

2.0.3

1 year ago

2.0.2

1 year ago

2.0.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago