Add quality tools for javascript

This commit is contained in:
Webber 2019-12-17 00:53:01 +01:00 committed by Webber Takken
parent 69c4feba8f
commit ae18dc32c9
8 changed files with 54 additions and 0 deletions

3
.babelrc.json Normal file
View File

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

View File

@ -5,3 +5,4 @@
!entrypoint.sh
!action.yml
!default-build-script
!src

18
.editorconfig Normal file
View File

@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 2
indent_style = space
insert_final_newline = true
max_line_length = 100
tab_width = 2
trim_trailing_whitespace = true
[*.md]
max_line_length = 0
trim_trailing_whitespace = false
[COMMIT_EDITMSG]
max_line_length = 0

1
.eslintignore Normal file
View File

@ -0,0 +1 @@
**/node_modules/**

20
.eslintrc.json Normal file
View File

@ -0,0 +1,20 @@
{
"parser": "babel-eslint",
"env": {
"node": true,
"es6": true,
"jest": true
},
"parserOptions": {
"ecmaVersion": 2020,
"ecmaFeatures": {
"impliedStrict": true
}
},
"extends": ["airbnb", "plugin:unicorn/recommended", "prettier"],
"plugins": ["react", "jsx-a11y", "import", "prettier", "flowtype", "unicorn"],
"settings": { "react": { "version": "latest" } },
"rules": {
"prettier/prettier": "error"
}
}

2
.gitignore vendored
View File

@ -1 +1,3 @@
.idea
node_modules
dist

6
.prettierrc.json Normal file
View File

@ -0,0 +1,6 @@
{
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100
}

3
.yarnrc Normal file
View File

@ -0,0 +1,3 @@
save-prefix ""
--install.audit true
--add.audit true