2016-11-21 21:17:34 -08:00
|
|
|
{
|
2020-11-07 15:49:05 -08:00
|
|
|
"parser": "@typescript-eslint/parser",
|
|
|
|
"plugins": ["@typescript-eslint/eslint-plugin"],
|
2016-11-21 21:17:34 -08:00
|
|
|
"rules": {
|
|
|
|
"indent": [
|
2020-11-07 15:49:05 -08:00
|
|
|
"error",
|
2020-11-25 17:28:37 -08:00
|
|
|
4,
|
|
|
|
{
|
|
|
|
"SwitchCase": 1
|
|
|
|
}
|
2019-01-09 00:51:25 -08:00
|
|
|
],
|
|
|
|
"quotes": [
|
2020-11-07 15:49:05 -08:00
|
|
|
"error",
|
2019-01-09 00:51:25 -08:00
|
|
|
"single"
|
|
|
|
],
|
|
|
|
"linebreak-style": [
|
2020-11-07 15:49:05 -08:00
|
|
|
"error",
|
2019-01-09 00:51:25 -08:00
|
|
|
"unix"
|
|
|
|
],
|
2020-11-07 15:49:05 -08:00
|
|
|
"prefer-const": [
|
|
|
|
"error"
|
|
|
|
],
|
2019-01-09 00:51:25 -08:00
|
|
|
"semi": [
|
2020-11-07 15:49:05 -08:00
|
|
|
"error",
|
2019-01-09 00:51:25 -08:00
|
|
|
"always"
|
2019-10-16 20:18:53 -07:00
|
|
|
],
|
2020-11-07 15:49:05 -08:00
|
|
|
"no-use-before-define": "off",
|
2021-06-13 17:06:16 -07:00
|
|
|
"@typescript-eslint/no-floating-promises": "error",
|
2020-11-07 15:49:05 -08:00
|
|
|
"@typescript-eslint/no-use-before-define": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"functions": false,
|
|
|
|
"classes": false
|
|
|
|
}
|
2020-01-02 11:11:04 -08:00
|
|
|
],
|
2020-11-07 15:49:05 -08:00
|
|
|
"no-unused-vars": "off",
|
2020-11-15 18:51:05 -08:00
|
|
|
"@typescript-eslint/no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"argsIgnorePattern": "^_"
|
|
|
|
}
|
|
|
|
],
|
2020-11-07 15:49:05 -08:00
|
|
|
"no-redeclare": "off",
|
|
|
|
"@typescript-eslint/no-redeclare": ["error"],
|
2021-03-11 22:03:05 -08:00
|
|
|
"no-dupe-class-members": "off",
|
2020-01-02 11:11:04 -08:00
|
|
|
"no-console": [
|
2020-11-07 15:49:05 -08:00
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"allow": [
|
|
|
|
"info",
|
|
|
|
"warn",
|
|
|
|
"error"
|
|
|
|
]
|
|
|
|
}
|
2016-11-21 21:17:34 -08:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"env": {
|
2019-01-09 00:51:25 -08:00
|
|
|
"builtin": true,
|
2016-11-21 21:17:34 -08:00
|
|
|
"browser": true,
|
2019-02-28 21:21:18 -08:00
|
|
|
"es6": true
|
|
|
|
},
|
|
|
|
"parserOptions": {
|
2021-06-13 17:06:16 -07:00
|
|
|
"sourceType": "module",
|
|
|
|
"project": "./tsconfig.json"
|
2016-11-21 21:17:34 -08:00
|
|
|
},
|
2019-03-02 22:46:37 -08:00
|
|
|
"extends": "eslint:recommended",
|
|
|
|
"overrides": [
|
|
|
|
{
|
2020-11-07 15:49:05 -08:00
|
|
|
"files": [
|
|
|
|
"**/*.ts"
|
|
|
|
],
|
|
|
|
"rules": {
|
|
|
|
"no-var": "error"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"bin/*",
|
|
|
|
"babel.config.js",
|
|
|
|
"webpack.config.js"
|
|
|
|
],
|
2019-03-02 22:46:37 -08:00
|
|
|
"rules": {
|
|
|
|
"no-console": 0
|
|
|
|
},
|
|
|
|
"env": {
|
|
|
|
"node": true,
|
|
|
|
"jquery": false,
|
|
|
|
"browser": false
|
|
|
|
}
|
2020-11-07 15:49:05 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"test/**/*"
|
|
|
|
],
|
2019-03-26 21:02:27 -07:00
|
|
|
"env": {
|
2019-09-18 18:46:26 -07:00
|
|
|
"jest": true,
|
2020-11-07 15:49:05 -08:00
|
|
|
"jasmine": true,
|
2019-09-18 18:46:26 -07:00
|
|
|
"node": true
|
2019-10-16 20:18:53 -07:00
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"no-console": 0
|
2019-03-26 21:02:27 -07:00
|
|
|
}
|
2020-11-07 15:49:05 -08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"js/entry2.js",
|
|
|
|
"js/entry2e.js",
|
|
|
|
"jest.config.js"
|
|
|
|
],
|
2019-03-31 20:52:45 -07:00
|
|
|
"env": {
|
|
|
|
"commonjs": true
|
|
|
|
}
|
2021-07-06 17:04:02 -07:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": [
|
|
|
|
"workers/*"
|
|
|
|
],
|
|
|
|
"parserOptions": {
|
|
|
|
"project": "workers/tsconfig.json"
|
|
|
|
}
|
2019-03-02 22:46:37 -08:00
|
|
|
}
|
2021-06-13 17:06:16 -07:00
|
|
|
],
|
|
|
|
"ignorePatterns": ["coverage/**/*"]
|
2016-11-21 21:17:34 -08:00
|
|
|
}
|