wisemapping-frontend/packages/mindplot/.eslintrc.json
Gustavo Fuhr 0f4a8ee087 Merged in ray-develop (pull request #51)
Ray develop

* reset zoom and toolbar fixes

* lang fixes

* dialog enhancements

* comments

* tooltip for zoom and fit commented

* merge develop into ray develop

* rules for ignoring some linebreaks in eslint

* comments in .eslintrc

* brackets around ifs

* playground fixes, comments removed, semi-colon at bottom of editor removed, root container size now defined with css


Approved-by: Paulo Veiga
2022-07-09 01:34:52 +00:00

79 lines
1.9 KiB
JSON

{
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"commonjs": true,
"jest": true
},
"extends": [
"airbnb-base",
"plugin:cypress/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"parserOptions": {
"ecmaVersion": 11
},
"globals": {
// designer is a global currently used as a hack. Remove this when fixing the hack.
"designer": true
},
"plugins": [
"@typescript-eslint"
],
"rules": {
// ignore errores 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"
}
}
],
"no-underscore-dangle": "off",
"no-plusplus": "off",
"no-param-reassign": "off",
"max-len": [
1,
300
],
"class-methods-use-this": "off",
"no-console": "off",
// codebase contains many this aliases, fix in the future?
"@typescript-eslint/no-this-alias": "off",
// Remove once migration is completed ...
"@typescript-eslint/no-explicit-any": "warn",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"implicit-arrow-linebreak": "off"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "./webpack.common.js"
},
"node": {
"extensions": [
".js",
".ts"
]
}
}
}
}