Skip to content

Commit 6bc1572

Browse files
florentdelerueflrnt
florentdelerue
authored andcommitted
--wip-- [skip ci]
0 parents  commit 6bc1572

26 files changed

+8777
-0
lines changed

Diff for: .babelrc

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
"@babel/plugin-proposal-optional-chaining"
4+
],
5+
"presets": [
6+
["@babel/preset-env", {
7+
"useBuiltIns": "usage",
8+
"corejs": 3,
9+
"targets": {
10+
// https://jamie.build/last-2-versions
11+
"browsers": ["> 0.25%", "not ie 11", "not op_mini all"]
12+
}
13+
}]
14+
]
15+
}

Diff for: .eslintrc.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
// https://eslint.org/docs/user-guide/configuring
2+
// File taken from https://github.com/vuejs-templates/webpack/blob/1.3.1/template/.eslintrc.js, thanks.
3+
4+
module.exports = {
5+
root: true,
6+
parserOptions: {
7+
parser: 'babel-eslint'
8+
},
9+
env: {
10+
browser: true,
11+
webextensions: true,
12+
},
13+
extends: [
14+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
15+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
16+
'plugin:vue/essential',
17+
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
18+
'standard' ],
19+
// required to lint *.vue files
20+
plugins: [
21+
'vue'
22+
],
23+
// add your custom rules here
24+
rules: {
25+
// allow async-await
26+
'generator-star-spacing': 'off',
27+
// allow debugger during development
28+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
29+
}
30+
}

Diff for: .gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/node_modules
2+
/*.log
3+
/dist
4+
/dist-zip

Diff for: detectors/vue.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"html": "<[^>]+\\sdata-v(?:ue)?-",
3+
"js": "window.Vue || window.$nuxt || [...document.querySelectorAll('*')].map((el) => Boolean(el.__vue__)).filter(Boolean).length",
4+
"script": [
5+
"vue[.-]([\\d.]*\\d)[^/]*\\.js\\;version:\\1",
6+
"(?:/([\\d.]+))?/vue(?:\\.min)?\\.js\\;version:\\1"
7+
]
8+
}

0 commit comments

Comments
 (0)