Skip to content

Commit

Permalink
chore: Add naming convention lint rule
Browse files Browse the repository at this point in the history
maxmilton committed Jul 15, 2024
1 parent 6a4a35d commit 70f5e94
Showing 2 changed files with 9 additions and 22 deletions.
30 changes: 8 additions & 22 deletions biome.jsonc
Original file line number Diff line number Diff line change
@@ -36,28 +36,14 @@
"noShoutyConstants": "error",
"useCollapsedElseIf": "error",
"useEnumInitializers": "off",
// "useNamingConvention": {
// "level": "warn",
// "options": {
// "strictCase": false,
// "requireAscii": true,
// "enumMemberCase": "CONSTANT_CASE"
// // "conventions": [
// // {
// // // "selector": { "kind": "typeMember" },
// // "selector": { "kind": "typeProperty" },
// // "formats": ["camelCase", "snake_case"]
// // },
// // {
// // "selector": {
// // "kind": "typeProperty",
// // "modifiers": ["readonly"]
// // },
// // "formats": ["CONSTANT_CASE"]
// // }
// // ]
// }
// },
"useNamingConvention": {
"level": "warn",
"options": {
"strictCase": false,
"requireAscii": true,
"enumMemberCase": "CONSTANT_CASE"
}
},
"useNodejsImportProtocol": "off", // we support node v12+
"useShorthandArrayType": "error",
"useShorthandAssign": "error",
1 change: 1 addition & 0 deletions packages/ekscss/src/helpers.ts
Original file line number Diff line number Diff line change
@@ -53,6 +53,7 @@ export function isObject(val: unknown): val is Record<string, unknown> {
* direct property access for mixed object types - <https://jsben.ch/KVoXV>.
*/
class UndefinedProperty {
// biome-ignore lint/style/useNamingConvention: "UNDEFINED" is a constant
UNDEFINED = 'UNDEFINED';

constructor() {

0 comments on commit 70f5e94

Please sign in to comment.