Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Latest commit

 

History

History

eslint-config-udemy-website

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Udemy ESLint Config for our Website

This is the main configuration used by our udemy/website-django/static/ codebase. It extends from most of the other packages that are in this repository.

Installation

Install ESLint locally.

$ yarn add eslint --dev

Install the Udemy ESLint Plugin locally.

$ yarn add eslint-config-udemy-website --dev

Configuration

Add an extends section to your .eslintrc.js and specify udemy-website as an extended configuration. You can additionally adjust rules by overriding them in your rules section.

// At .eslintrc.js

module.exports = {
    'extends': ['udemy-website'],
    rules: {
        'udemy/no-function-prototype': 'off',
    },
};

Contributing

See Contributing.