mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-14 11:17:57 +01:00
53 lines
1.5 KiB
JSON
53 lines
1.5 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": {
|
|
"no-underscore-dangle": "off",
|
|
"no-plusplus": "off",
|
|
"no-param-reassign": "off",
|
|
"max-len": [1,300],
|
|
"class-methods-use-this": "off",
|
|
"no-console" : "off",
|
|
"no-unused-vars": ["error", { "args": "none" }],
|
|
"import/extensions": ["error", {
|
|
"ts": "never"
|
|
}],
|
|
// codebase contains many this aliases, fix in the future?
|
|
"@typescript-eslint/no-this-alias": "off",
|
|
// no-unused-vars already used
|
|
"@typescript-eslint/no-unused-vars": "off",
|
|
"@typescript-eslint/ban-ts-comment": "warn",
|
|
"import/no-extraneous-dependencies": ["warn", {"packageDir": "./", "devDependencies": false, "optionalDependencies": false, "peerDependencies": false}]
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"webpack": {
|
|
"config": "./webpack.common.js"
|
|
},
|
|
"node": {
|
|
"extensions": [".js",".ts"]
|
|
}
|
|
}
|
|
}
|
|
}
|