29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-07-04 19:13:40 +00:00
cms/.eslintrc
2018-05-15 14:20:17 +02:00

28 lines
848 B
Plaintext

{
// 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
},
// Rule overrides
"rules": {
// Disable no-params-reassign for properties
"no-param-reassign": ["error", { "props": false }],
// 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)
"strict": [0],
// Disable alert rule till we have a CE in place
"no-alert": 0
}
}