1.4.0 • Published 5 months ago

@thepeaklab/eslint-config v1.4.0

Weekly downloads
35
License
MIT
Repository
github
Last release
5 months ago

@thepeaklab/eslint-config

An ESLint flat config with default settings.

Installation

Install the config:

npm i -D @thepeaklab/eslint-config

Setup config file in root folder:

// eslint.config.js
import tplConfig from '@thepeaklab/eslint-config';

export default tplConfig;

If any rules need to be modified for the project, simply extend the configuration:

// eslint.config.js

// ESM
import tplConfig from '@thepeaklab/eslint-config';

export default [
  ...tplConfig,
  {
    rules: {
      // rule overwrites
    },
  },
];

// CJS
const tplConfig = require('@thepeaklab/eslint-config');

module.exports = [
  ...tplConfig.default,
  {
    rules: {
      // rule overwrites
    },
  },
];

Visual Studio Code Support

Install the ESLint extension.

Copy the following settings into .vscode/settings.json:

{
  "editor.defaultFormatter": "esbenp.prettier-vscode",
  "editor.formatOnSave": true,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": "always",
    "source.fixAll.ts": "always",
    "source.removeUnusedImports": "always",
    "source.organizeImports": "always",
    "source.sortImports": "always"
  }
}

Contributing

Code of Conduct

Please read our Code of conduct to keep our community open and respectable. 💖

Want to help?

Want to report a bug, contribute some code, or improve the documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues labeled as help wanted or good first issue.

Security

If you believe you have found a security vulnerability, we encourage you to responsibly disclose this and not open a public issue. Security issues in this open source project can be safely reported via opensource@thepeaklab.com.

License

This project is MIT-licensed.


Developed with 💖 at the peak lab.

1.4.0

5 months ago

1.2.0

7 months ago

1.3.4

7 months ago

1.3.3

7 months ago

1.3.2

7 months ago

1.3.1

7 months ago

1.3.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.1.2

7 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.0

9 months ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago