Skip to content

Commit

Permalink
dev: resolved linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-crowell committed May 31, 2024
1 parent f17c14e commit 36426bc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
25 changes: 13 additions & 12 deletions packages/eslint-config/src/configs/recommended.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export const recommended: Record<string, unknown>[] = [
...(ts.configs.recommended as Record<string, unknown>[]),

{
files: ['**/tailwind.config.{ts,js}', '**/postcss.config.{ts,js}'],
files: [ '**/tailwind.config.{ts,js}', '**/postcss.config.{ts,js}' ],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'no-undef': 'off',
Expand All @@ -20,21 +20,21 @@ export const recommended: Record<string, unknown>[] = [
plugins: {
'@stylistic': stylistic,
},
files: ['**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.tsx'],
files: [ '**/*.js', '**/*.jsx', '**/*.mjs', '**/*.cjs', '**/*.ts', '**/*.tsx' ],
rules: {
'@stylistic/semi': ['error', 'always'],
'@stylistic/quotes': ['error', 'single'],
'@stylistic/indent': ['error', 2],
'@stylistic/eol-last': ['error', 'always'],
'@stylistic/comma-dangle': ['error', 'only-multiline'],
'@stylistic/object-curly-spacing': ['error', 'always'],
'@stylistic/array-bracket-spacing': ['error', 'always'],
'@stylistic/jsx-quotes': ['error', 'prefer-double'],
'@stylistic/semi': [ 'error', 'always' ],
'@stylistic/quotes': [ 'error', 'single' ],
'@stylistic/indent': [ 'error', 2 ],
'@stylistic/eol-last': [ 'error', 'always' ],
'@stylistic/comma-dangle': [ 'error', 'only-multiline' ],
'@stylistic/object-curly-spacing': [ 'error', 'always' ],
'@stylistic/array-bracket-spacing': [ 'error', 'always' ],
'@stylistic/jsx-quotes': [ 'error', 'prefer-double' ],
}
},

{
files: ['*.ts', '*.js'],
files: [ '*.ts', '*.js' ],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'module',
Expand All @@ -46,7 +46,7 @@ export const recommended: Record<string, unknown>[] = [
},

{
files: ['*.cjs'],
files: [ '*.cjs' ],
languageOptions: {
ecmaVersion: 'latest',
sourceType: 'script',
Expand All @@ -65,6 +65,7 @@ export const recommended: Record<string, unknown>[] = [
'**/build/**',
'**/out/**',
'**/_*/**',
'**/.next/**',
]
}
];
Expand Down
4 changes: 2 additions & 2 deletions packages/vite-lib-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export interface ViteLibConfigOptions {
export function viteLibConfig({
name: argName,
srcDir = 'src',
formats = ['es'],
formats = [ 'es' ],
typescript = true,
dts: dtsOptions = {},
}: ViteLibConfigOptions = {}) {
Expand Down Expand Up @@ -137,7 +137,7 @@ export function viteLibConfig({
entryRoot: srcRoot,
rollupTypes: true,
tsconfigPath: tsconfigBuildExists ? 'tsconfig.build.json' : 'tsconfig.json',
exclude: ['**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx'],
exclude: [ '**/*.test.ts', '**/*.test.tsx', '**/*.spec.ts', '**/*.spec.tsx' ],
pathsToAliases: false,
...dtsOptions,
}));
Expand Down

0 comments on commit 36426bc

Please sign in to comment.