Skip to content

Commit 1ce7995

Browse files
committed
style: fix linter errors
1 parent ada327b commit 1ce7995

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/database/Database.ts

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,15 @@ export class Database {
120120
private createModule<M extends Model>(model: M): void {
121121
const preserveState = !!this.store.state[this.connection][model.$entity]
122122

123-
this.store.registerModule([this.connection, model.$entity], {
124-
namespaced: true,
125-
state: this.createState(),
126-
mutations: this.createMutations()
127-
}, { preserveState })
123+
this.store.registerModule(
124+
[this.connection, model.$entity],
125+
{
126+
namespaced: true,
127+
state: this.createState(),
128+
mutations: this.createMutations()
129+
},
130+
{ preserveState }
131+
)
128132
}
129133

130134
/**
@@ -147,6 +151,6 @@ export class Database {
147151
* Create schema from the given model.
148152
*/
149153
private createSchema<M extends Model>(model: M): Normalizr.Entity {
150-
return this.schemas[model.$entity] = new Schema(model).one()
154+
return (this.schemas[model.$entity] = new Schema(model).one())
151155
}
152156
}

src/store/Store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function createOptions(options: InstallOptions = {}): FilledInstallOptions {
3030
/**
3131
* Mixin Vuex ORM feature to the store.
3232
*/
33-
function mixin(store: Store<any>, options: FilledInstallOptions ): void {
33+
function mixin(store: Store<any>, options: FilledInstallOptions): void {
3434
createDatabase(store, options)
3535

3636
installPlugins(store)

test/unit/VuexORM.spec.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ describe('unit/VuexORM', () => {
2020

2121
it('can customize the namespace', () => {
2222
const store = new Vuex.Store({
23-
plugins: [
24-
VuexORM.install({ namespace: 'database' })
25-
]
23+
plugins: [VuexORM.install({ namespace: 'database' })]
2624
})
2725

2826
const expected = {

0 commit comments

Comments
 (0)