2018-01-17 21:20:52 +00:00
|
|
|
{
|
2018-02-11 22:15:55 +00:00
|
|
|
// Extend the airbnb eslint config
|
|
|
|
"extends": "airbnb-base",
|
|
|
|
// ESLint will not look in parent folders for eslint configs
|
|
|
|
"root": true,
|
|
|
|
// An environment defines global variables that are predefined.
|
|
|
|
"env": {
|
|
|
|
"browser": true,
|
|
|
|
"es6": true,
|
|
|
|
"node": true
|
|
|
|
},
|
|
|
|
// Additional global variables your script accesses during execution
|
|
|
|
"globals": {
|
|
|
|
"Joomla": true
|
2018-02-20 20:07:42 +00:00
|
|
|
},
|
|
|
|
// Rule overrides
|
|
|
|
"rules": {
|
2018-04-02 23:48:22 +00:00
|
|
|
// Disable no-params-reassign for properties
|
|
|
|
"no-param-reassign": ["error", { "props": false }],
|
2018-02-20 20:07:42 +00:00
|
|
|
// Allow usage of dev-dependencies in js files in build directory
|
|
|
|
"import/no-extraneous-dependencies": ["error", {"devDependencies": ["build/**/*.js"]}],
|
|
|
|
// Allow strict mode (we are not dealing with modules)
|
2018-05-15 12:20:17 +00:00
|
|
|
"strict": [0],
|
|
|
|
// Disable alert rule till we have a CE in place
|
|
|
|
"no-alert": 0
|
2018-05-15 09:28:47 +00:00
|
|
|
}
|
2018-01-17 21:20:52 +00:00
|
|
|
}
|