3.0.2 • Published 5 years ago

@typeskill/eslint-config v3.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@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.

3.0.2

5 years ago

3.0.1

5 years ago

3.0.0

5 years ago

2.0.0

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago