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-basics

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Udemy Basic ESLint Config

This configuration provides a basis for any ES2015 JavaScript code developed at Udemy. It is mainly used by udemy/website-django/e2e.

Installation

Install ESLint locally.

$ yarn add eslint --dev

Install the Udemy Basic ESLint Config locally.

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

Configuration

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

// At .eslintrc.js

module.exports = {
    'extends': ['udemy-basics'],
    rules: {
        'promise/catch-or-return': 'off',
    },
};

Contributing

See Contributing.