Skip to content
This repository was archived by the owner on Apr 1, 2021. It is now read-only.

Commit 6899cc2

Browse files
committed
add unicorn styleguide
1 parent 438a944 commit 6899cc2

File tree

5 files changed

+282
-41
lines changed

5 files changed

+282
-41
lines changed

.eslintrc

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{
22
"extends": [
33
"standard",
4-
"plugin:vue/strongly-recommended"
4+
"plugin:vue/strongly-recommended",
5+
"plugin:unicorn/recommended"
6+
],
7+
"plugins": [
8+
"unicorn"
59
],
610
"env": {
711
"browser": true
@@ -40,7 +44,16 @@
4044
"on": "colon"
4145
}
4246
}],
43-
"vue/require-default-prop": "off",
44-
"vue/require-prop-types": "off"
45-
}
47+
"vue/require-default-prop": "warning",
48+
"vue/require-prop-types": "warning",
49+
"vue/prop-name-casing": ["error", "camelCase"]
50+
},
51+
"overrides": [{
52+
"files": ["resources/assets/js/coreui/**/*.vue"],
53+
"rules": {
54+
"unicorn/filename-case": ["error", {
55+
"case": "pascalCase"
56+
}]
57+
}
58+
}]
4659
}

0 commit comments

Comments
 (0)