feat(tools): Aggiunto Flow

This commit is contained in:
Maicol Battistini 2021-07-30 19:48:47 +02:00
parent b40a1c6e5b
commit e4362d3200
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
5 changed files with 32 additions and 2 deletions

3
.babelrc Normal file
View File

@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-flow"]
}

View File

@ -6,15 +6,18 @@
"jquery": true
},
"plugins": [
"@babel"
"@babel",
"flowtype"
],
"extends": [
"airbnb-base"
"airbnb-base",
"plugin:flowtype/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "module"

12
.flowconfig Normal file
View File

@ -0,0 +1,12 @@
[ignore]
[include]
resources/js
[libs]
[lints]
[options]
[strict]

6
.idea/misc.xml Normal file
View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="FLOW" />
</component>
</project>

View File

@ -12,10 +12,16 @@
"production": "mix --production"
},
"devDependencies": {
"@babel/cli": "^7",
"@babel/core": "^7",
"@babel/eslint-parser": "^7",
"@babel/eslint-plugin": "^7",
"@babel/preset-flow": "^7",
"eslint": "^7",
"eslint-config-airbnb-base": "^14",
"eslint-plugin-flowtype": "^5",
"eslint-plugin-import": "^2",
"flow-bin": "^0",
"laravel-mix": "^6",
"sass": "^1",
"sass-loader": "^12",