mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-25 15:47:55 +01:00
82 lines
2.2 KiB
JSON
82 lines
2.2 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 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",
|
|
"no-underscore-dangle": "off",
|
|
"no-plusplus": "off",
|
|
"no-param-reassign": "off",
|
|
"max-len": [
|
|
1,
|
|
300
|
|
],
|
|
"class-methods-use-this": "off",
|
|
"no-console": "off",
|
|
"@typescript-eslint/no-explicit-any": "error",
|
|
"@typescript-eslint/no-unused-vars": "error",
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
"@typescript-eslint/no-non-null-assertion": "off",
|
|
"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"
|
|
]
|
|
}
|
|
}
|
|
}
|
|
} |