Skip to content

Commit cdaa08c

Browse files
committed
Init
0 parents  commit cdaa08c

File tree

6 files changed

+122
-0
lines changed

6 files changed

+122
-0
lines changed

.eslintignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore build files
2+
**/node_modules/**

.eslintrc.json

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
{
2+
"env": {
3+
"es6": true,
4+
"browser": true,
5+
"commonjs": true
6+
},
7+
"extends": [
8+
"airbnb-base",
9+
"plugin:vue/recommended"
10+
],
11+
"plugins": [
12+
"vue"
13+
],
14+
"parser": "vue-eslint-parser",
15+
"parserOptions": {
16+
"requireConfigFile": false,
17+
"babelOptions": {
18+
"presets": ["@babel/preset-env"]
19+
},
20+
"ecmaVersion": 2021,
21+
"sourceType": "module"
22+
},
23+
"settings": {
24+
"import/resolver": {
25+
"alias": {
26+
"extensions": [".js", ".vue"]
27+
}
28+
}
29+
},
30+
"rules": {
31+
"class-methods-use-this": ["off"],
32+
"indent": ["error", 4, {
33+
"SwitchCase": 1
34+
}],
35+
"max-len": ["off"],
36+
"new-cap": ["error", { "properties": false }],
37+
"no-alert": ["off"],
38+
"no-param-reassign": ["error", {
39+
"props": false
40+
}],
41+
"no-plusplus": ["off"],
42+
"no-continue": ["off"],
43+
"vue/html-indent": ["error", 4],
44+
"vue/html-self-closing": ["error", {
45+
"html": {
46+
"void": "never",
47+
"normal": "any",
48+
"component": "any"
49+
},
50+
"svg": "always",
51+
"math": "always"
52+
}],
53+
"vue/no-v-html": ["off"],
54+
"vue/multi-word-component-names": ["off"],
55+
"vue/no-mutating-props": ["off"],
56+
"vue/require-v-for-key": ["off"],
57+
"vue/valid-v-for": ["off"],
58+
"vue/first-attribute-linebreak": ["off"],
59+
"vue/max-attributes-per-line": ["off"],
60+
"vue/require-prop-types": ["off"]
61+
}
62+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Code Quality
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
codeQualityJS:
11+
runs-on: ubuntu-latest
12+
name: JavaScript
13+
steps:
14+
- name: Checkout changes
15+
uses: actions/checkout@v2
16+
with:
17+
fetch-depth: 0
18+
19+
- name: Install Node
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: 20
23+
24+
- name: Install Node dependencies
25+
working-directory: .
26+
run: npm install
27+
28+
- name: Run code quality checks
29+
working-directory: ./src
30+
run: npx eslint .

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules
2+
package-lock.json

package.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "clevercloset-checkout",
3+
"version": "0.0.1",
4+
"description": "",
5+
"author": "Jack Wilkinson <jack.wilkinson@sharps.co.uk>",
6+
"license": "proprietary",
7+
"private": true,
8+
"dependencies": {
9+
"@vitejs/plugin-vue": "^5.2.4",
10+
"vue": "^3.4.10",
11+
"vuex": "^4.1.0"
12+
},
13+
"devDependencies": {
14+
"@babel/eslint-parser": "^7.28.5",
15+
"eslint": "^8.57.1",
16+
"eslint-config-airbnb-base": "^15.0.0",
17+
"eslint-import-resolver-alias": "^1.1.2",
18+
"eslint-plugin-import": "^2.32.0",
19+
"eslint-plugin-vue": "10.7.0",
20+
"vue-eslint-parser": "^10.2.0",
21+
"vue-loader": "^16.8.3"
22+
}
23+
}

src/Example.vue

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<h1>Hello world</h1>
3+
</template>

0 commit comments

Comments
 (0)