1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-18 14:21:32 +03:00
leon/.eslintrc.json

48 lines
1.1 KiB
JSON
Raw Normal View History

2019-02-10 15:26:50 +03:00
{
"extends": "airbnb-base",
"env": {
"node": true,
"browser": true,
"jest/globals": true
},
2021-03-15 20:39:52 +03:00
"parserOptions": {
"ecmaVersion": 2021
},
2019-02-10 15:26:50 +03:00
"globals": {
2019-06-07 21:09:48 +03:00
"io": true
2019-02-10 15:26:50 +03:00
},
"plugins": [
"import",
"jest"
],
"settings": {
"import/resolver": {
2019-06-07 21:09:48 +03:00
"babel-module": {
"alias": {
"@@": ".",
"@": "./server/src"
}
}
2019-02-10 15:26:50 +03:00
}
},
"rules": {
"no-multi-assign": "off",
"no-trailing-spaces": "off",
"linebreak-style": "off",
"indent": "off",
"strict": "off",
"no-console": "off",
"no-param-reassign": "off",
"no-shadow": "off",
"import/no-extraneous-dependencies": "off",
"import/no-dynamic-require": "off",
2021-03-15 20:39:52 +03:00
"prefer-promise-reject-errors": ["off"],
"no-async-promise-executor": ["off"],
2019-02-10 15:26:50 +03:00
"no-underscore-dangle": ["error", { "allowAfterThis": true }],
"space-before-function-paren": ["error", "always"],
"prefer-destructuring": ["error", { "array": true, "object": true }],
"comma-dangle": ["error", "never"],
"semi": ["error", "never"]
}
}