Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
const { category_id } = query;
const { category_name = 1 } = query;
const { category_id: category_title } = query;
const { category_id: category_alias } = query;
const { category_id: categoryId, ...other_props } = query;import { no_camelcased as camelCased } from "external-module";
const myFavoriteColor = "#112C85";
const _myFavoriteColor = "#112C85";
const myFavoriteColor_ = "#112C85";
const MY_FAVORITE_COLOR = "#112C85";
const foo1 = bar.baz_boom;
const foo2 = { qux: bar.baz_boom };
obj.do_something();
do_something();
new do_something();
const { category_id: category } = query;
function foo({ isCamelCased }) {
// ...
};
function bar({ isCamelCased: isAlsoCamelCased }) {
// ...
}
function baz({ isCamelCased = 'default value' }) {
// ...
};
const { categoryId = 1 } = query;
const { foo: isCamelCased } = bar;
const { foo: camelCasedName = 1 } = quz;Popular · 1 of 50
const { category_id } = query;
const { category_name = 1 } = query;
const { category_id: category_title } = query;
const { category_id: category_alias } = query;
const { category_id: categoryId, ...other_props } = query;import { no_camelcased as camelCased } from "external-module";
const myFavoriteColor = "#112C85";
const _myFavoriteColor = "#112C85";
const myFavoriteColor_ = "#112C85";
const MY_FAVORITE_COLOR = "#112C85";
const foo1 = bar.baz_boom;
const foo2 = { qux: bar.baz_boom };
obj.do_something();
do_something();
new do_something();
const { category_id: category } = query;
function foo({ isCamelCased }) {
// ...
};
function bar({ isCamelCased: isAlsoCamelCased }) {
// ...
}
function baz({ isCamelCased = 'default value' }) {
// ...
};
const { categoryId = 1 } = query;
const { foo: isCamelCased } = bar;
const { foo: camelCasedName = 1 } = quz;