@tretuna/eslint-config

1.0.0 • Public • Published

@TreTuna/eslint-config

Commitizen friendly Release

ESLint configuration for TreTuna's JavaScript applications.


Using in your project

Install the package:

npm install --dev @tretuna/eslint-config

or

yarn add --dev @tretuna/eslint-config
  • eslint

ESLint configuration

Create an .eslintrc.js file in your project with the following:

For VanillaJS projects

module.exports = {
  extends: "@tretuna",
  rules: {
    // Your project-specific rules
  }
};

Note: This configuration extends eslint:recommended and plugin:prettier/recommended

For React projects

module.exports = {
  extends: "@tretuna/eslint-config/react.js",
  rules: {
    // Your project-specific rules
  }
};

Note: This configuration implements @tretuna/eslint-config, plugin:react/recommended, plugin:jsx-a11y/recommended, plugin:testing-library/react, plugin:react-hooks, and prettier/react

Package Sidebar

Install

npm i @tretuna/eslint-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

15 kB

Total Files

10

Last publish

Collaborators

  • tretuna