Skip to content

Commit 4ca446f

Browse files
committed
chore: lint files
1 parent 60217f5 commit 4ca446f

6 files changed

Lines changed: 33 additions & 19 deletions

File tree

eslint.config.js

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,36 @@ import tseslint from 'typescript-eslint'
55

66
export default defineConfig(
77
{
8-
tsconfigRootDir: '.'
8+
languageOptions: {
9+
parserOptions: {
10+
// eslint-disable-next-line no-undef
11+
tsconfigRootDir: process.cwd()
12+
},
13+
},
914
},
1015
js.configs.recommended,
1116
...tseslint.configs.recommended,
1217
[
1318
globalIgnores([
1419
'bin/**',
15-
'dist/**',
1620
'**/bin',
17-
'**/dist',
1821
'**/bin/**',
22+
'dist/**',
23+
'**/dist',
1924
'**/dist/**',
20-
'public/**/*.js',
21-
'node_modules/**'
25+
'public/**',
26+
'**/public',
27+
'**/public/**',
28+
'.h3ravel/**',
29+
'**/.h3ravel',
30+
'**/.h3ravel/**',
31+
'node_modules/**',
32+
33+
'**/bin',
34+
'**/dist',
35+
'**/public',
36+
'**/.h3ravel',
37+
'**/node_modules'
2238
])
2339
],
2440
{

examples/basic-app/src/app/Console/Commands/ExampleCommand.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Command } from "@h3ravel/console";
1+
import { Command } from '@h3ravel/console'
22

33
export class ExampleCommand extends Command {
44

@@ -10,14 +10,14 @@ export class ExampleCommand extends Command {
1010
protected signature: string = `example
1111
{name : Name of the example.}
1212
{--d|debug : Show debug info}
13-
`;
13+
`
1414

1515
/**
1616
* The console command description.
1717
*
1818
* @var string
1919
*/
20-
protected description: string = 'An example command';
20+
protected description: string = 'An example command'
2121

2222
public async handle () {
2323
const name = this.argument('name')
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { Model } from "@h3ravel/database";
1+
import { Model } from '@h3ravel/database'
22

3-
export class User extends Model { protected table: string | null = 'users'; }
3+
export class User extends Model { protected table: string | null = 'users' }
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
import { Migration } from '@h3ravel/arquebus'
2-
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder';
2+
import { SchemaBuilder } from '@h3ravel/arquebus/types/query-builder'
33

44
export default class extends Migration {
55
/**
66
* Run the migrations.
77
*/
88
async up (schema: SchemaBuilder) {
99
await schema.createTable('john_table_john', (table) => {
10-
table.increments('id');
11-
table.timestamps();
12-
});
10+
table.increments('id')
11+
table.timestamps()
12+
})
1313
}
1414

1515
/**
1616
* Reverse the migrations.
1717
*/
1818
async down (schema: SchemaBuilder) {
19-
await schema.dropTableIfExists('john_table_john');
19+
await schema.dropTableIfExists('john_table_john')
2020
}
2121
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import { TsDownConfig } from '@h3ravel/console';
1+
import { TsDownConfig } from '@h3ravel/console'
22

3-
export default TsDownConfig;
3+
export default TsDownConfig

packages/router/src/Providers/AssetsServiceProvider.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ export class AssetsServiceProvider extends ServiceProvider {
1616

1717
register () {
1818
const app = this.app.make('router')
19-
const config = this.app.make('config')
20-
const fsconfig = config.get('filesystem')
2119
const publicPath = this.app.getPath('public')
2220

2321
/**

0 commit comments

Comments
 (0)