wisemapping-frontend/packages/mindplot/.eslintrc.json

82 lines
2.1 KiB
JSON
Raw Normal View History

2021-10-05 02:05:34 +02:00
{
"parser": "@typescript-eslint/parser",
2021-10-05 02:05:34 +02:00
"env": {
"browser": true,
2021-12-14 16:08:54 +01:00
"commonjs": true,
"jest": true
2021-10-05 02:05:34 +02:00
},
"extends": [
"airbnb-base",
"plugin:cypress/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
2021-10-05 02:05:34 +02:00
],
2021-12-23 20:41:39 +01:00
"parserOptions": {
"ecmaVersion": 11
},
"globals": {
// designer is a global currently used as a hack. Remove this when fixing the hack.
"designer": true
},
"plugins": [
"@typescript-eslint"
2022-01-31 14:12:05 +01:00
],
2021-10-06 04:08:42 +02:00
"rules": {
2022-12-10 05:56:01 +01:00
// ignore errors when a line finishes with (setting this value to 0 ignores all errors)
"operator-linebreak": [
"error",
"after",
{
"overrides": {
"+": "ignore",
"-": "ignore",
":": "ignore",
"*": "ignore",
"?": "ignore",
">": "ignore",
"||": "ignore",
"&&": "ignore",
"(": "ignore"
}
}
],
"object-curly-newline": "off",
2021-12-14 16:08:54 +01:00
"no-underscore-dangle": "off",
2021-12-03 19:58:25 +01:00
"no-plusplus": "off",
2021-12-19 09:44:08 +01:00
"no-param-reassign": "off",
2022-01-31 14:12:05 +01:00
"max-len": [
1,
300
],
"class-methods-use-this": "off",
2022-01-31 14:12:05 +01:00
"no-console": "off",
2022-12-10 05:56:01 +01:00
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/no-this-alias": "off",
2022-12-10 05:56:01 +01:00
"@typescript-eslint/no-non-null-assertion": "off",
2022-01-31 14:12:05 +01:00
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
2022-12-10 05:56:01 +01:00
"implicit-arrow-linebreak": "off"
},
2023-01-09 04:06:44 +01:00
"settings": {
"import/resolver": {
"node": {
"extensions": [
".js",
".ts"
]
},
"webpack": {
"config": "./webpack.common.js"
}
}
}
2022-12-10 05:56:01 +01:00
}