Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HypeTech - eslint-config

The HypeTech eslint configuration for Strapi based projects

Installation

The configuration can be installed via your preferred package manager.

With PNPM (preferred):

pnpm add @hypetech/eslint-config-strapi -D

With Yarn:

yarn add -D @hypetech/eslint-config-strapi

With NPM:

npm install --dev @hypetech/prettier-config

To inform eslint of this configuration, you have to add the eslint property to your package.json file:

"eslintConfig": {
   "extends": "@hypetech/eslint-config-strapi"
}

Instead of manually editing your package.json, you can also utilize the npm pkg subcommand:

npm pkg set eslintConfig.extends=@hypetech/eslint-config-strapi

Alternatively, you can also create a .eslintrc.cjs file in your project root and add the following content:

module.exports = {
    root: true,
    extends: '@hypetech/eslint-config-strapi',
}

Notice: You should add configuration to your package.json if you are creating a library, and use a .eslintrc.cjs file if you are creating an application. And you should avoid both ways in the same project.

Extending

To extend the configuration, you will have to create a .eslintrc.js file (or .eslintrc.cjs if your package is a "type": "module") and import the HypeTech configuration using require:

module.exports = {
    ...require('@hypetech/eslint-config-strapi'),
    rules: {
        'no-console': 'warn',
    },
}

Contributing

Contributions are welcome! Open a pull request to fix a bug, or open an issue to discuss a new feature or change.

License

This project is licensed under the terms of the MIT license.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages