fix(config): update lint to naming-convention rule
This commit is contained in:
parent
bb34f7924c
commit
4a58c20ba5
|
@ -35,7 +35,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/class-name-casing": "error",
|
|
||||||
"@typescript-eslint/consistent-type-assertions": "error",
|
"@typescript-eslint/consistent-type-assertions": "error",
|
||||||
"@typescript-eslint/consistent-type-definitions": "error",
|
"@typescript-eslint/consistent-type-definitions": "error",
|
||||||
"@typescript-eslint/explicit-member-accessibility": [
|
"@typescript-eslint/explicit-member-accessibility": [
|
||||||
|
@ -61,7 +60,6 @@
|
||||||
"SwitchCase": 1
|
"SwitchCase": 1
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"@typescript-eslint/interface-name-prefix": "error",
|
|
||||||
"@typescript-eslint/member-delimiter-style": [
|
"@typescript-eslint/member-delimiter-style": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
|
@ -89,6 +87,51 @@
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"@typescript-eslint/naming-convention": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"selector": "default",
|
||||||
|
"format": [
|
||||||
|
"camelCase"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "forbid",
|
||||||
|
"trailingUnderscore": "forbid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "variable",
|
||||||
|
"format": [
|
||||||
|
"camelCase",
|
||||||
|
"UPPER_CASE"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "forbid",
|
||||||
|
"trailingUnderscore": "forbid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "enumMember",
|
||||||
|
"format": [
|
||||||
|
"camelCase",
|
||||||
|
"UPPER_CASE"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "forbid",
|
||||||
|
"trailingUnderscore": "forbid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "typeLike",
|
||||||
|
"format": [
|
||||||
|
"PascalCase"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "forbid",
|
||||||
|
"trailingUnderscore": "forbid"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selector": "interface",
|
||||||
|
"format": [
|
||||||
|
"PascalCase"
|
||||||
|
],
|
||||||
|
"leadingUnderscore": "forbid",
|
||||||
|
"trailingUnderscore": "forbid"
|
||||||
|
}
|
||||||
|
],
|
||||||
"@typescript-eslint/no-empty-function": "error",
|
"@typescript-eslint/no-empty-function": "error",
|
||||||
"@typescript-eslint/no-empty-interface": "error",
|
"@typescript-eslint/no-empty-interface": "error",
|
||||||
"@typescript-eslint/no-explicit-any": "error",
|
"@typescript-eslint/no-explicit-any": "error",
|
||||||
|
|
|
@ -2,7 +2,11 @@ import { InvalidArgumentError, NotFoundError } from '@apextoaster/js-utils';
|
||||||
import { SAFE_SCHEMA, safeLoad, Schema, Type as YamlType } from 'js-yaml';
|
import { SAFE_SCHEMA, safeLoad, Schema, Type as YamlType } from 'js-yaml';
|
||||||
import { join } from 'path';
|
import { join } from 'path';
|
||||||
|
|
||||||
export type IncludeReader = (path: string, options: { encoding: string }) => string;
|
export interface IncludeOptions {
|
||||||
|
encoding: string;
|
||||||
|
}
|
||||||
|
|
||||||
|
export type IncludeReader = (path: string, options: IncludeOptions) => string;
|
||||||
|
|
||||||
export interface IncludeSchema {
|
export interface IncludeSchema {
|
||||||
exists: (path: string) => boolean;
|
exists: (path: string) => boolean;
|
||||||
|
@ -16,7 +20,7 @@ export interface IncludeSchema {
|
||||||
*/
|
*/
|
||||||
export const includeSchema: IncludeSchema = {
|
export const includeSchema: IncludeSchema = {
|
||||||
exists: (path: string) => false,
|
exists: (path: string) => false,
|
||||||
read: (path: string, encoding: object) => {
|
read: (path: string, encoding: IncludeOptions) => {
|
||||||
throw new Error('read stub');
|
throw new Error('read stub');
|
||||||
},
|
},
|
||||||
resolve: (path: string) => {
|
resolve: (path: string) => {
|
||||||
|
|
Loading…
Reference in New Issue