Skip to content

TheNickest/deno-lint-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My First Lint Rule

Unfortunately I missed the challenge this month (March). So I decided to try to create my own lint rule/plugin anyway, without receiving stickers 😭

Goal 🏁

Learn how to create a plugin following this tutorial.

Result 📋

A rule that checks if a declared function's name starts with an upper case letter and prohibits this practice i.e. more or less conforms to pascalCase.

Example

// linter will show error
function FooBar() {
    console.log('foo')
}

// follows the rule
function fooBar() {
    console.log('bar')
}

Tests 🧪

I never checked out Deno's test runner and hence decided to test my rule.

About

Create a Deno Lint plugin with tests

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published