2020-02-01 03:23:16 +13:00
|
|
|
{
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
2020-02-03 22:24:25 +13:00
|
|
|
"jest": true,
|
|
|
|
"node": true
|
2020-02-01 03:23:16 +13:00
|
|
|
},
|
2023-07-06 05:00:50 +12:00
|
|
|
"parser": "@babel/eslint-parser",
|
2020-02-01 03:23:16 +13:00
|
|
|
"parserOptions": {
|
|
|
|
"ecmaVersion": 2019,
|
2020-02-26 04:21:23 +13:00
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true
|
2020-02-01 03:23:16 +13:00
|
|
|
},
|
2021-06-15 23:42:50 +12:00
|
|
|
"ignorePatterns": [
|
|
|
|
"node_modules",
|
|
|
|
"dist",
|
|
|
|
"public",
|
|
|
|
"*.spec.js",
|
2023-06-27 02:04:13 +12:00
|
|
|
"bundle.js"
|
2021-06-15 23:42:50 +12:00
|
|
|
],
|
2020-02-01 03:23:16 +13:00
|
|
|
"extends": ["eslint:recommended"],
|
2023-11-18 02:39:52 +13:00
|
|
|
"plugins": ["import", "eslint-plugin-local-rules"],
|
2020-02-01 03:23:16 +13:00
|
|
|
"overrides": [
|
|
|
|
{
|
2023-07-06 05:00:50 +12:00
|
|
|
"files": ["**/*.svelte"],
|
|
|
|
"extends": "plugin:svelte/recommended",
|
|
|
|
"parser": "svelte-eslint-parser",
|
|
|
|
"parserOptions": {
|
|
|
|
"parser": "@babel/eslint-parser",
|
|
|
|
"ecmaVersion": 2019,
|
|
|
|
"sourceType": "module",
|
|
|
|
"allowImportExportEverywhere": true
|
2023-10-27 23:32:38 +13:00
|
|
|
},
|
|
|
|
"rules": {
|
|
|
|
"svelte/valid-compile": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"ignoreWarnings": true
|
|
|
|
}
|
|
|
|
]
|
2023-07-06 05:00:50 +12:00
|
|
|
}
|
2022-03-26 00:17:58 +13:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"files": ["**/*.ts"],
|
|
|
|
"parser": "@typescript-eslint/parser",
|
2023-06-27 02:04:13 +12:00
|
|
|
"extends": ["eslint:recommended"],
|
2022-03-26 00:17:58 +13:00
|
|
|
"rules": {
|
|
|
|
"no-unused-vars": "off",
|
|
|
|
"no-inner-declarations": "off",
|
|
|
|
"no-case-declarations": "off",
|
|
|
|
"no-useless-escape": "off",
|
|
|
|
"no-undef": "off",
|
2023-11-18 02:39:52 +13:00
|
|
|
"no-prototype-builtins": "off",
|
|
|
|
"local-rules/no-budibase-imports": "error"
|
2022-03-26 00:17:58 +13:00
|
|
|
}
|
2020-02-01 03:23:16 +13:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"rules": {
|
2023-07-06 05:00:50 +12:00
|
|
|
"no-self-assign": "off",
|
2023-10-27 23:32:38 +13:00
|
|
|
"no-unused-vars": [
|
|
|
|
"error",
|
|
|
|
{
|
|
|
|
"varsIgnorePattern": "^_",
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
"destructuredArrayIgnorePattern": "^_"
|
|
|
|
}
|
2023-11-18 01:03:28 +13:00
|
|
|
],
|
2023-11-21 03:46:24 +13:00
|
|
|
"import/no-relative-packages": "error",
|
2023-11-21 04:15:43 +13:00
|
|
|
"import/export": "error",
|
2023-11-21 09:52:29 +13:00
|
|
|
"import/no-duplicates": "error",
|
|
|
|
"import/newline-after-import": "error"
|
2022-03-09 05:41:21 +13:00
|
|
|
},
|
|
|
|
"globals": {
|
|
|
|
"GeolocationPositionError": true
|
2020-02-01 03:23:16 +13:00
|
|
|
}
|
2021-06-15 23:42:50 +12:00
|
|
|
}
|