mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-11-22 14:47:56 +01:00
b5fd708971
mindplot lint * fix eqeqeq * fix max-len * fix max-len, guard-for-in * fix import/no-named-as-default-member * misc fixes * fix no-shadow * fix no-param-reassign * fix issues introduced with "fix no-param-reassign" * Merge 'origin/develop' into feature/mindplot-lint * lint and docs fixes after merge Approved-by: Paulo Veiga
37 lines
1.1 KiB
JSON
37 lines
1.1 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"commonjs": true,
|
|
"jest": true
|
|
},
|
|
"extends": [
|
|
"airbnb-base",
|
|
"plugin:cypress/recommended"
|
|
],
|
|
"globals": {
|
|
// Browser is a mootools polyfill. Remove when moving from browser checks to feature detection
|
|
"Browser": true,
|
|
// designer is a global currently used as a hack. Remove this when fixing the hack.
|
|
"designer": true
|
|
},
|
|
"rules": {
|
|
"no-underscore-dangle": "off",
|
|
"no-plusplus": "off",
|
|
"no-param-reassign": "off",
|
|
"max-len": [1,250],
|
|
"class-methods-use-this": "off",
|
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["!cypress/**/*.js"]}],
|
|
"func-names": ["error", "as-needed"],
|
|
"no-unused-vars": ["error", { "args": "none" }],
|
|
"camelcase": ["error", {"allow": ["XML"]}],
|
|
"new-cap": ["error", { "properties": false }]
|
|
},
|
|
"settings": {
|
|
"import/resolver": {
|
|
"webpack": {
|
|
"config": "./webpack.common.js"
|
|
}
|
|
}
|
|
}
|
|
}
|