Добавил eslint, prettier

This commit is contained in:
Данил 2024-08-14 21:19:50 +03:00
parent 21e2faced3
commit bfccc5aac2
4 changed files with 1447 additions and 0 deletions

29
.eslintrc.js Normal file
View file

@ -0,0 +1,29 @@
module.exports = {
env: {
browser: true,
node: true,
es6: true
},
extends: ['eslint:recommended', 'plugin:prettier/recommended'],
parserOptions: {
'sourceType': 'commonjs',
"ecmaVersion": 'latest'
},
rules: {
indent: 'off',
semi: ['error', 'always'],
'arrow-body-style': ["error", "as-needed"],
"prettier/prettier": [
"error", {
"singleQuote": true,
"parser": "flow"
}
],
},
overrides: [
{
'files': ['*/*.js'],
},
],
'ignorePatterns': ['.eslintrc.js'],
};

1
.gitignore vendored
View file

@ -1,5 +1,6 @@
.idea
CertSSL/
charts/
node_modules/
config.yaml

1390
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

27
package.json Normal file
View file

@ -0,0 +1,27 @@
{
"name": "kekkai",
"version": "1.0.0",
"description": "Historical data on the rate of fiat and crypto currencies",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Redume/Kekkai.git"
},
"author": "Redume",
"license": "GPL-3.0-or-later",
"bugs": {
"url": "https://github.com/Redume/Kekkai/issues"
},
"homepage": "https://github.com/Redume/Kekkai#readme",
"devDependencies": {
"@eslint/js": "^8.57.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"globals": "^15.9.0",
"prettier": "3.3.3"
}
}