@typeskill/eslint-config

3.0.2 • Public • Published

@typeskill/eslint-config

Lint standard for typeskill compliant codestyle.

Setup

  1. You must install the config, and then provide all dependencies listed in peerDependencies.
npm install --save-dev @typeskill/eslint-config eslint @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-config-prettier eslint-plugin-prettier eslint-plugin-react prettier eslint-plugin-react-hooks 
  1. Add this to the root .eslintrc.js file:
module.exports = {
  plugins: [
    "react-hooks", // optional
  ],
  extends: [
    "@typeskill/eslint-config",
  ],
  parserOptions: {
    project: './tsconfig.json' // change tsconfig to whichever appropriate config file
  },
}
  1. Add this to the root .prettierrc.js file:
module.exports = {
  semi: false,
  trailingComma: "all",
  singleQuote: true,
  printWidth: 120,
  tabWidth: 2
}

IDE integration

Check prettier IDE integration here: https://prettier.io/docs/en/editors.html.

Readme

Keywords

Package Sidebar

Install

npm i @typeskill/eslint-config

Weekly Downloads

0

Version

3.0.2

License

MIT

Unpacked Size

3.75 kB

Total Files

3

Last publish

Collaborators

  • jsamr