Skip to content

Commit 71123cd

Browse files
committed
Update .prettierrc
1 parent 8fcadea commit 71123cd

31 files changed

+919
-913
lines changed

.prettierrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
{
2+
"semi": false,
3+
"arrowParens": always,
24
"singleQuote": true,
35
"trailingComma": "es5"
46
}

examples/fake-json-api-server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// server.js
2-
var FakeServer = require('fake-json-api-server/src/nodeServer');
2+
var FakeServer = require('fake-json-api-server/src/nodeServer')
33

4-
var resources = require('./testapp.json');
4+
var resources = require('./testapp.json')
55

66
new FakeServer({
77
port: 3000,
88
resources: resources,
9-
});
9+
})

examples/testapp/babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
22
presets: ['@vue/app'],
3-
};
3+
}

examples/testapp/postcss.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
plugins: {
33
autoprefixer: {},
44
},
5-
};
5+
}

examples/testapp/src/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import Vue from 'vue';
2-
import App from './App.vue';
3-
import store from './store';
1+
import Vue from 'vue'
2+
import App from './App.vue'
3+
import store from './store'
44

5-
Vue.config.productionTip = false;
5+
Vue.config.productionTip = false
66

77
new Vue({
88
store,
9-
render: h => h(App),
10-
}).$mount('#app');
9+
render: (h) => h(App),
10+
}).$mount('#app')

examples/testapp/src/store.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import Vue from 'vue';
2-
import Vuex from 'vuex';
3-
import axios from 'axios';
4-
import { jsonapiModule } from '../../../src/jsonapi-vuex';
1+
import Vue from 'vue'
2+
import Vuex from 'vuex'
3+
import axios from 'axios'
4+
import { jsonapiModule } from '../../../src/jsonapi-vuex'
55

6-
Vue.use(Vuex);
6+
Vue.use(Vuex)
77

88
const api = axios.create({
99
// connect to local jsonapi-mock server
@@ -12,11 +12,11 @@ const api = axios.create({
1212
'Content-Type': 'application/vnd.api+json',
1313
Accept: 'application/vnd.api+json',
1414
},
15-
});
15+
})
1616

1717
export default new Vuex.Store({
1818
strict: true,
1919
modules: {
2020
jv: jsonapiModule(api, { action_status_clean_age: 10 }),
2121
},
22-
});
22+
})

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { jsonapiModule } from './src/jsonapi-vuex';
1+
export { jsonapiModule } from './src/jsonapi-vuex'

karma.conf.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Karma configuration
22

3-
const src = './src/**/*.js';
4-
const tests = './tests/unit/jsonapi-vuex.spec.js';
5-
const ci = process.env.CI || process.env.TRAVIS || false;
3+
const src = './src/**/*.js'
4+
const tests = './tests/unit/jsonapi-vuex.spec.js'
5+
const ci = process.env.CI || process.env.TRAVIS || false
66

77
module.exports = function(config) {
88
config.set({
@@ -30,5 +30,5 @@ module.exports = function(config) {
3030
//{ type: 'html' }
3131
],
3232
},
33-
});
34-
};
33+
})
34+
}

nightwatch.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ module.exports = {
3232
},
3333
},
3434
},
35-
};
35+
}

0 commit comments

Comments
 (0)