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