budibase/.eslintrc.json

57 lines
1.3 KiB
JSON
Raw Normal View History

2020-01-31 15:23:16 +01:00
{
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
2020-01-31 15:23:16 +01:00
},
2023-07-05 19:00:50 +02:00
"parser": "@babel/eslint-parser",
2020-01-31 15:23:16 +01:00
"parserOptions": {
"ecmaVersion": 2019,
2020-02-25 16:21:23 +01:00
"sourceType": "module",
"allowImportExportEverywhere": true
2020-01-31 15:23:16 +01:00
},
"ignorePatterns": [
"node_modules",
"dist",
"public",
"*.spec.js",
2023-06-26 16:04:13 +02:00
"bundle.js"
],
2020-01-31 15:23:16 +01:00
"extends": ["eslint:recommended"],
"overrides": [
{
2023-07-05 19:00:50 +02:00
"files": ["**/*.svelte"],
"extends": "plugin:svelte/recommended",
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "@babel/eslint-parser",
"ecmaVersion": 2019,
"sourceType": "module",
"allowImportExportEverywhere": true
}
},
{
"files": ["**/*.ts"],
"parser": "@typescript-eslint/parser",
2023-06-26 16:04:13 +02:00
"extends": ["eslint:recommended"],
"rules": {
"no-unused-vars": "off",
"no-inner-declarations": "off",
"no-case-declarations": "off",
"no-useless-escape": "off",
"no-undef": "off",
"no-prototype-builtins": "off"
}
2020-01-31 15:23:16 +01:00
}
],
"rules": {
2023-07-05 19:00:50 +02:00
"no-self-assign": "off",
"no-unused-vars": ["error", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_" }]
},
"globals": {
"GeolocationPositionError": true
2020-01-31 15:23:16 +01:00
}
}